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

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

_ZN4pcpp6Logger11getInstanceEv:
  367|  32.9M|		{
  368|  32.9M|			static Logger instance;
  369|  32.9M|			return instance;
  370|  32.9M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  319|  2.19k|		{
  320|  2.19k|			m_LogsEnabled = false;
  321|  2.19k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  137|   132k|		    : file(file), function(function), line(line), logModule(logModule)
  138|   132k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  187|   132k|			{
  188|   132k|				m_Source = source;
  189|   132k|				m_Level = level;
  190|   132k|				m_Stream.clear();
  191|   132k|				m_Stream.str({});
  192|   132k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  278|   103k|		{
  279|   103k|			return m_LogModulesArray[module] == LogLevel::Debug;
  280|   103k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  287|  32.8M|		{
  288|  32.8M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (288:11): [True: 32.8M, False: 0]
  |  Branch (288:37): [True: 132k, False: 32.6M]
  ------------------
  289|  32.8M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  198|    170|			{
  199|    170|				m_Stream << value;
  200|    170|				return *this;
  201|    170|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  198|  2.07k|			{
  199|  2.07k|				m_Stream << value;
  200|  2.07k|				return *this;
  201|  2.07k|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  198|  1.92k|			{
  199|  1.92k|				m_Stream << value;
  200|  1.92k|				return *this;
  201|  1.92k|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  198|  1.92k|			{
  199|  1.92k|				m_Stream << value;
  200|  1.92k|				return *this;
  201|  1.92k|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  198|    723|			{
  199|    723|				m_Stream << value;
  200|    723|				return *this;
  201|    723|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  198|    229|			{
  199|    229|				m_Stream << value;
  200|    229|				return *this;
  201|    229|			}
_ZN4pcpp8internal10LogContextlsIjEERS1_RKT_:
  198|  10.5k|			{
  199|  10.5k|				m_Stream << value;
  200|  10.5k|				return *this;
  201|  10.5k|			}
_ZN4pcpp8internal10LogContextlsIA32_cEERS1_RKT_:
  198|    133|			{
  199|    133|				m_Stream << value;
  200|    133|				return *this;
  201|    133|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  198|  1.21k|			{
  199|  1.21k|				m_Stream << value;
  200|  1.21k|				return *this;
  201|  1.21k|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  198|  13.0k|			{
  199|  13.0k|				m_Stream << value;
  200|  13.0k|				return *this;
  201|  13.0k|			}
_ZN4pcpp8internal10LogContextlsIA24_cEERS1_RKT_:
  198|  6.17k|			{
  199|  6.17k|				m_Stream << value;
  200|  6.17k|				return *this;
  201|  6.17k|			}
_ZN4pcpp8internal10LogContextlsIA23_cEERS1_RKT_:
  198|    473|			{
  199|    473|				m_Stream << value;
  200|    473|				return *this;
  201|    473|			}
_ZN4pcpp8internal10LogContextlsIA27_cEERS1_RKT_:
  198|    290|			{
  199|    290|				m_Stream << value;
  200|    290|				return *this;
  201|    290|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  198|  72.7k|			{
  199|  72.7k|				m_Stream << value;
  200|  72.7k|				return *this;
  201|  72.7k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  198|  1.10k|			{
  199|  1.10k|				m_Stream << value;
  200|  1.10k|				return *this;
  201|  1.10k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  198|      4|			{
  199|      4|				m_Stream << value;
  200|      4|				return *this;
  201|      4|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  198|    198|			{
  199|    198|				m_Stream << value;
  200|    198|				return *this;
  201|    198|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  198|  1.41k|			{
  199|  1.41k|				m_Stream << value;
  200|  1.41k|				return *this;
  201|  1.41k|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  198|    209|			{
  199|    209|				m_Stream << value;
  200|    209|				return *this;
  201|    209|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  198|  2.99k|			{
  199|  2.99k|				m_Stream << value;
  200|  2.99k|				return *this;
  201|  2.99k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  198|      6|			{
  199|      6|				m_Stream << value;
  200|      6|				return *this;
  201|      6|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  198|  1.66k|			{
  199|  1.66k|				m_Stream << value;
  200|  1.66k|				return *this;
  201|  1.66k|			}
_ZN4pcpp8internal10LogContextlsIA36_cEERS1_RKT_:
  198|    595|			{
  199|    595|				m_Stream << value;
  200|    595|				return *this;
  201|    595|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  198|    107|			{
  199|    107|				m_Stream << value;
  200|    107|				return *this;
  201|    107|			}
_ZN4pcpp8internal10LogContextlsIA35_cEERS1_RKT_:
  198|     12|			{
  199|     12|				m_Stream << value;
  200|     12|				return *this;
  201|     12|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  198|  78.1k|			{
  199|  78.1k|				m_Stream << value;
  200|  78.1k|				return *this;
  201|  78.1k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  198|    554|			{
  199|    554|				m_Stream << value;
  200|    554|				return *this;
  201|    554|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  198|      3|			{
  199|      3|				m_Stream << value;
  200|      3|				return *this;
  201|      3|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  198|  2.59k|			{
  199|  2.59k|				m_Stream << value;
  200|  2.59k|				return *this;
  201|  2.59k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  198|    637|			{
  199|    637|				m_Stream << value;
  200|    637|				return *this;
  201|    637|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  198|      6|			{
  199|      6|				m_Stream << value;
  200|      6|				return *this;
  201|      6|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  198|    636|			{
  199|    636|				m_Stream << value;
  200|    636|				return *this;
  201|    636|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  198|      9|			{
  199|      9|				m_Stream << value;
  200|      9|				return *this;
  201|      9|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  198|  10.5k|			{
  199|  10.5k|				m_Stream << value;
  200|  10.5k|				return *this;
  201|  10.5k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  198|  11.6k|			{
  199|  11.6k|				m_Stream << value;
  200|  11.6k|				return *this;
  201|  11.6k|			}
_ZN4pcpp8internal10LogContextlsIA64_cEERS1_RKT_:
  198|      5|			{
  199|      5|				m_Stream << value;
  200|      5|				return *this;
  201|      5|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  198|  2.20k|			{
  199|  2.20k|				m_Stream << value;
  200|  2.20k|				return *this;
  201|  2.20k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  198|  72.7k|			{
  199|  72.7k|				m_Stream << value;
  200|  72.7k|				return *this;
  201|  72.7k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  198|  2.99k|			{
  199|  2.99k|				m_Stream << value;
  200|  2.99k|				return *this;
  201|  2.99k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  198|    604|			{
  199|    604|				m_Stream << value;
  200|    604|				return *this;
  201|    604|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  198|    504|			{
  199|    504|				m_Stream << value;
  200|    504|				return *this;
  201|    504|			}
_ZN4pcpp9LogSourceC2Ev:
  124|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  175|      2|			LogContext() = default;

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

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  2.17k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   109k|		{
  217|   109k|			return m_Vector.size();
  218|   109k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|  82.2k|		{
  320|  82.2k|			return m_Vector.at(index);
  321|  82.2k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  81.0k|		{
  217|  81.0k|			return m_Vector.size();
  218|  81.0k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   249k|		{
  320|   249k|			return m_Vector.at(index);
  321|   249k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  2.17k|		{
   79|  2.17k|			freeVectorUnsafe(m_Vector);
   80|  2.17k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  2.17k|		{
  363|  2.17k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 2.17k, False: 2.17k]
  ------------------
  364|  2.17k|			{
  365|  2.17k|				Deleter{}(obj);
  366|  2.17k|			}
  367|  2.17k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  2.17k|		{
  239|  2.17k|			return m_Vector.front();
  240|  2.17k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  2.17k|		{
  148|  2.17k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 2.17k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  2.17k|			try
  154|  2.17k|			{
  155|  2.17k|				m_Vector.push_back(element);
  156|  2.17k|			}
  157|  2.17k|			catch (const std::exception&)
  158|  2.17k|			{
  159|      0|				if (freeElementOnError)
  ------------------
  |  Branch (159:9): [True: 0, False: 0]
  ------------------
  160|      0|				{
  161|      0|					Deleter{}(element);
  162|      0|				}
  163|      0|				throw;
  164|      0|			}
  165|  2.17k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  72.7k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  4.16k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  72.7k|		{
   79|  72.7k|			freeVectorUnsafe(m_Vector);
   80|  72.7k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  72.7k|		{
  363|  72.7k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 363k, False: 72.7k]
  ------------------
  364|   363k|			{
  365|   363k|				Deleter{}(obj);
  366|   363k|			}
  367|  72.7k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   363k|		{
  173|   363k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 363k]
  ------------------
  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|   363k|			m_Vector.push_back(element.get());
  182|   363k|			element.release();
  183|   363k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  4.16k|		{
   79|  4.16k|			freeVectorUnsafe(m_Vector);
   80|  4.16k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  4.16k|		{
  363|  4.16k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 4.62k, False: 4.16k]
  ------------------
  364|  4.62k|			{
  365|  4.62k|				Deleter{}(obj);
  366|  4.62k|			}
  367|  4.16k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  4.62k|		{
  148|  4.62k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 4.62k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  4.62k|			try
  154|  4.62k|			{
  155|  4.62k|				m_Vector.push_back(element);
  156|  4.62k|			}
  157|  4.62k|			catch (const std::exception&)
  158|  4.62k|			{
  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|  4.62k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  94.2k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  94.2k|		{
   79|  94.2k|			freeVectorUnsafe(m_Vector);
   80|  94.2k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  94.2k|		{
  363|  94.2k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 127k, False: 94.2k]
  ------------------
  364|   127k|			{
  365|   127k|				Deleter{}(obj);
  366|   127k|			}
  367|  94.2k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   127k|		{
  148|   127k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 127k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   127k|			try
  154|   127k|			{
  155|   127k|				m_Vector.push_back(element);
  156|   127k|			}
  157|   127k|			catch (const std::exception&)
  158|   127k|			{
  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|   127k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|     80|		{
  363|     80|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 18, False: 80]
  ------------------
  364|     18|			{
  365|     18|				Deleter{}(obj);
  366|     18|			}
  367|     80|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  3.34k|		{
  363|  3.34k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 444, False: 3.34k]
  ------------------
  364|    444|			{
  365|    444|				Deleter{}(obj);
  366|    444|			}
  367|  3.34k|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|    257|		{
  320|    257|			return m_Vector.at(index);
  321|    257|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|      4|		{
  217|      4|			return m_Vector.size();
  218|      4|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|  4.85k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|  4.85k|		{
   79|  4.85k|			freeVectorUnsafe(m_Vector);
   80|  4.85k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  4.85k|		{
  363|  4.85k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 7.91k, False: 4.85k]
  ------------------
  364|  7.91k|			{
  365|  7.91k|				Deleter{}(obj);
  366|  7.91k|			}
  367|  4.85k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|  7.91k|		{
  173|  7.91k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 7.91k]
  ------------------
  174|      0|			{
  175|      0|				throw std::invalid_argument("Element is nullptr");
  176|      0|			}
  177|       |
  178|       |			// Release is called after the raw pointer is already inserted into the vector to prevent
  179|       |			// a memory leak if push_back throws.
  180|       |			// cppcheck-suppress danglingLifetime
  181|  7.91k|			m_Vector.push_back(element.get());
  182|  7.91k|			element.release();
  183|  7.91k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  3.34k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  3.34k|		{
   79|  3.34k|			freeVectorUnsafe(m_Vector);
   80|  3.34k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|    444|		{
  173|    444|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 444]
  ------------------
  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|    444|			m_Vector.push_back(element.get());
  182|    444|			element.release();
  183|    444|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  1.27k|		{
  217|  1.27k|			return m_Vector.size();
  218|  1.27k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|     80|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|     80|		{
   79|     80|			freeVectorUnsafe(m_Vector);
   80|     80|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|     18|		{
  173|     18|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 18]
  ------------------
  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|     18|			m_Vector.push_back(element.get());
  182|     18|			element.release();
  183|     18|		}
_ZNK4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|     32|		{
  217|     32|			return m_Vector.size();
  218|     32|		}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|  43.9k|	{
   18|  43.9k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 3.53k, False: 40.3k]
  ------------------
   19|  3.53k|		{
   20|  3.53k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|  3.53k|		}
   22|       |
   23|  43.9k|		std::stringstream dataStream;
   24|  43.9k|		dataStream << std::hex;
   25|   550k|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 524k, False: 26.1k]
  ------------------
   26|   524k|		{
   27|   524k|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 17.7k, False: 506k]
  ------------------
   28|  17.7k|			{
   29|  17.7k|				break;
   30|  17.7k|			}
   31|       |
   32|   506k|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|   506k|		}
   34|       |
   35|  43.9k|		return dataStream.str();
   36|  43.9k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  32.5k|	{
   57|  32.5k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 32.5k]
  ------------------
   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|  32.5k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   278k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 245k, False: 32.5k]
  ------------------
   65|   245k|		{
   66|   245k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 245k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   245k|			const int firstChar = char2int(hexString[i]);
   72|   245k|			const int secondChar = char2int(hexString[i + 1]);
   73|   245k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 245k]
  |  Branch (73:25): [True: 0, False: 245k]
  ------------------
   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|   245k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   245k|		}
   82|       |
   83|  32.5k|		return hexString.length() / 2;
   84|  32.5k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  86.2k|	{
   88|  86.2k|		char* ptr = const_cast<char*>(haystack);
   89|   287k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 287k, False: 199]
  ------------------
   90|   287k|		{
   91|   287k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 264k, False: 22.6k]
  ------------------
   92|   287k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   264k|			{
   94|       |				// check if there is room to do a memcmp
   95|   264k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 507, False: 263k]
  ------------------
   96|    507|				{
   97|    507|					return nullptr;
   98|    507|				}
   99|       |
  100|   263k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 62.8k, False: 201k]
  ------------------
  101|  62.8k|				{
  102|  62.8k|					return ptr;
  103|  62.8k|				}
  104|   201k|				++ptr;
  105|   201k|			}
  106|  22.6k|			else
  107|  22.6k|			{
  108|  22.6k|				break;
  109|  22.6k|			}
  110|   287k|		}
  111|       |
  112|  22.8k|		return nullptr;
  113|  86.2k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   490k|	{
   40|   490k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 490k, False: 0]
  |  Branch (40:23): [True: 392k, False: 98.4k]
  ------------------
   41|   392k|		{
   42|   392k|			return input - '0';
   43|   392k|		}
   44|  98.4k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 98.4k, False: 0]
  |  Branch (44:23): [True: 0, False: 98.4k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|  98.4k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 98.4k, False: 0]
  |  Branch (48:23): [True: 98.4k, False: 0]
  ------------------
   49|  98.4k|		{
   50|  98.4k|			return input - 'a' + 10;
   51|  98.4k|		}
   52|      0|		return -1;
   53|  98.4k|	}

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

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

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

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

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

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|    165|		{
  165|    165|			return m_TagType;
  166|    165|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|  15.9k|		{
  177|  15.9k|			return m_TotalLength;
  178|  15.9k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|    923|		{
  314|    923|			decodeValueIfNeeded();
  315|    923|			return m_SubRecords;
  316|    923|		};
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  554|    136|		{
  555|    136|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|    136|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EE11decodeValueEPKh:
  554|      5|		{
  555|      5|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  556|      5|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|    981|		{
  189|    981|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|    981|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 108, False: 873]
  ------------------
  191|    108|			{
  192|    108|				throw std::bad_cast();
  193|    108|			}
  194|    873|			return result;
  195|    981|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|     42|		{
  426|     42|			decodeValueIfNeeded();
  427|     42|			return m_Value.getInt<T>();
  428|     42|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  477|     42|			{
  478|     42|				if (!canFit<T>())
  ------------------
  |  Branch (478:9): [True: 0, False: 42]
  ------------------
  479|      0|				{
  480|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  481|      0|				}
  482|       |
  483|     42|				std::stringstream sstream;
  484|     42|				sstream << std::hex << m_Value;
  485|       |
  486|     42|				uint64_t result;
  487|     42|				sstream >> result;
  488|     42|				return static_cast<T>(result);
  489|     42|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  492|     42|			{
  493|     42|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  494|     42|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|     96|		{
  189|     96|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|     96|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 96]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|     96|			return result;
  195|     96|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|  1.41k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|  4.85k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|     65|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|  1.61k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|  2.24k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  527|    699|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  594|    840|		Asn1OctetStringRecord() = default;
_ZN4pcpp20Asn1UTF8StringRecordC2Ev:
  612|      5|		Asn1UTF8StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EEC2Ev:
  544|      5|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|      5|		{}
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  628|      5|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  544|      5|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|      5|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  672|     42|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  925|     15|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  780|    574|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  840|      5|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  809|      5|		Asn1TimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  1.61k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|  9.56k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|  9.56k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|  1.61k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  747|    574|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  904|     15|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  1.61k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  544|    840|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  545|    840|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|     42|		{
  189|     42|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|     42|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 42]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|     42|			return result;
  195|     42|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  265|  24.7k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  266|  24.7k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   254k|		{
   67|   254k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 4.64k, False: 249k]
  |  Branch (67:29): [True: 27.2k, False: 222k]
  ------------------
   68|   254k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  7.33k|		{
   93|  7.33k|			return OsiModelApplicationLayer;
   94|  7.33k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|  47.7k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|  47.7k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|   464k|		{
  112|   464k|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|   464k|		}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  172|  8.27k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  173|  8.27k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  194|  14.0k|		{
  195|  14.0k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  196|  14.0k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  234|  5.79k|		{
  235|  5.79k|			return BgpLayer::Open;
  236|  5.79k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  259|  5.99k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  260|  5.99k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  285|  14.5k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  302|  34.8k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  303|  34.8k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  397|  19.9k|		{
  398|  19.9k|			return BgpLayer::Update;
  399|  19.9k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  434|    514|		    : BgpLayer(data, dataLen, prevLayer, packet)
  435|    514|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  499|    408|		{
  500|    408|			return BgpLayer::Notification;
  501|    408|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  523|  3.51k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  524|  3.51k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  540|  2.72k|		{
  541|  2.72k|			return BgpLayer::Keepalive;
  542|  2.72k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  570|    560|		    : BgpLayer(data, dataLen, prevLayer, packet)
  571|    560|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  589|    448|		{
  590|    448|			return BgpLayer::RouteRefresh;
  591|    448|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  157|  5.38k|			optional_parameter() = default;

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

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  3.10k|		{
  610|  3.10k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  3.10k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  24.8k|		{
  604|  24.8k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  24.8k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  3.10k|		{
  617|  3.10k|			return getDhcpHeader()->clientIpAddress;
  618|  3.10k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  3.10k|		{
  644|  3.10k|			return getDhcpHeader()->yourIpAddress;
  645|  3.10k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  3.10k|		{
  631|  3.10k|			return getDhcpHeader()->serverIpAddress;
  632|  3.10k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  3.10k|		{
  658|  3.10k|			return getDhcpHeader()->gatewayIpAddress;
  659|  3.10k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  3.04k|		{
  401|  3.04k|			return getValueAs<uint32_t>();
  402|  3.04k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  3.04k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  3.04k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 3.04k]
  |  Branch (423:29): [True: 893, False: 2.15k]
  ------------------
  424|    893|				return "";
  425|       |
  426|  2.15k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.15k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  3.04k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  3.48M|		{
  472|  3.48M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 3.48M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  3.48M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 75.1k, False: 3.40M]
  ------------------
  476|  3.40M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 3.06M, False: 347k]
  ------------------
  477|  3.13M|				return sizeof(uint8_t);
  478|       |
  479|   347k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  3.48M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  13.6k|		{
  484|  13.6k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 13.6k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  13.6k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 1.04k, False: 12.5k]
  ------------------
  488|  12.5k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 736, False: 11.8k]
  ------------------
  489|  1.77k|				return 0;
  490|       |
  491|  11.8k|			return m_Data->recordLen;
  492|  13.6k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   712k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   712k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   712k|		{
  454|   712k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   712k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 712k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   712k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 5.29k, False: 707k]
  ------------------
  459|  5.29k|				return false;
  460|       |
  461|   707k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 15.5k, False: 691k]
  ------------------
  462|   691k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 613k, False: 78.1k]
  ------------------
  463|   628k|				return true;
  464|       |
  465|  78.1k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   707k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  17.6k|		{
  596|  17.6k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  17.6k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  17.4k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   436k|		{
  749|   436k|			return m_DataLen;
  750|   436k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  765|  3.10k|		{
  766|  3.10k|			return OsiModelApplicationLayer;
  767|  3.10k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  771|   433k|		{
  772|   433k|			return m_Data + sizeof(dhcp_header);
  773|   433k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  785|   263k|	{
  786|   263k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (786:12): [True: 12.8k, False: 250k]
  |  Branch (786:29): [True: 12.7k, False: 185]
  |  Branch (786:48): [True: 4.97k, False: 245k]
  |  Branch (786:65): [True: 2.08k, False: 2.88k]
  ------------------
  787|   248k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (787:12): [True: 2.88k, False: 245k]
  |  Branch (787:29): [True: 2.83k, False: 52]
  ------------------
  788|   263k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  17.4k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  16.6k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  16.6k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  3.91k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  14.3k|		{
  358|  14.3k|			return m_DataLen;
  359|  14.3k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|    752|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  368|    752|		{
  369|    752|			return OsiModelApplicationLayer;
  370|    752|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  374|  13.6k|		{
  375|  13.6k|			return m_Data + sizeof(dhcpv6_header);
  376|  13.6k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  378|  2.25k|		{
  379|  2.25k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  380|  2.25k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  389|   238k|	{
  390|   238k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (390:10): [True: 2.01k, False: 236k]
  |  Branch (390:27): [True: 1.89k, False: 234k]
  ------------------
  391|   238k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  394|  3.91k|	{
  395|  3.91k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (395:10): [True: 3.91k, False: 0]
  |  Branch (395:18): [True: 3.91k, False: 0]
  ------------------
  396|  3.91k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  51.6k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   124k|		{
  360|   124k|			return m_DataLen;
  361|   124k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  9.46k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  10.4k|		{
  371|  10.4k|			return OsiModelApplicationLayer;
  372|  10.4k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  4.92k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  4.92k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   748k|	{
  470|   748k|		switch (port)
  471|   748k|		{
  472|  39.3k|		case 53:
  ------------------
  |  Branch (472:3): [True: 39.3k, False: 708k]
  ------------------
  473|  47.6k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 8.28k, False: 740k]
  ------------------
  474|  51.6k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 3.99k, False: 744k]
  ------------------
  475|  51.6k|			return true;
  476|   696k|		default:
  ------------------
  |  Branch (476:3): [True: 696k, False: 51.6k]
  ------------------
  477|   696k|			return false;
  478|   748k|		}
  479|   748k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   446k|	{
  483|   446k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 207k, False: 238k]
  ------------------
  484|   446k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 446k, False: 0]
  |  Branch (484:18): [True: 394k, False: 52.1k]
  ------------------
  485|   446k|	}

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

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

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

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

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

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

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

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  15.4k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  15.4k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|  67.7k|		{
  323|  67.7k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|  67.7k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   266k|		{
  388|   266k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 17.3k, False: 248k]
  |  Branch (388:39): [True: 8.41k, False: 240k]
  ------------------
  389|   266k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  2.39k|		{
  410|  2.39k|			return OsiModelTransportLayer;
  411|  2.39k|		}
_ZN4pcpp16GtpV2MessageTypeC2ENS0_5ValueE:
  595|  9.75k|		constexpr GtpV2MessageType(Value value) : m_Value(value)
  596|  9.75k|		{}
_ZNK4pcpp16GtpV2MessageTypecvNS0_5ValueEEv:
  609|  5.00k|		{
  610|  5.00k|			return m_Value;
  611|  5.00k|		}
_ZN4pcpp10GtpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  980|  14.4k|		    : Layer(data, dataLen, prevLayer, packet, GTPv2)
  981|  14.4k|		{}
_ZN4pcpp10GtpV2Layer11isGTPv2PortEt:
  997|   542k|		{
  998|   542k|			return port == 2123;
  999|   542k|		}
_ZNK4pcpp10GtpV2Layer16getOsiModelLayerEv:
 1113|  2.40k|		{
 1114|  2.40k|			return OsiModelTransportLayer;
 1115|  2.40k|		}
_ZNK4pcpp10GtpV2Layer9getHeaderEv:
 1134|  30.9k|		{
 1135|  30.9k|			return reinterpret_cast<gtpv2_basic_header*>(m_Data);
 1136|  30.9k|		}
_ZN4pcpp10GtpV2LayerD2Ev:
  972|  14.4k|		~GtpV2Layer() override = default;

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|  1.05M|		{
   76|  1.05M|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 36.4k, False: 1.02M]
  |  Branch (76:25): [True: 85.4k, False: 934k]
  ------------------
   77|  1.05M|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  15.4k|		{
  455|  15.4k|			return m_Value > 599;
  456|  15.4k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  17.7k|		{
   89|  17.7k|			return OsiModelApplicationLayer;
   90|  17.7k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|  93.5k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|  93.5k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|  93.5k|		{
  109|  93.5k|			return ':';
  110|  93.5k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|  93.5k|		{
  113|  93.5k|			return true;
  114|  93.5k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    439|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    439|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  30.6k|		{
  432|  30.6k|			return m_Value;
  433|  30.6k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|   108k|		{
  614|   108k|			return m_FirstLineEndOffset;
  615|   108k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  78.2k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  20.4k|		{
  734|  20.4k|			return m_FirstLineEndOffset;
  735|  20.4k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  15.2k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  15.2k|		HttpResponseStatusCode() = default;

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

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

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  448|  6.15M|		{
  449|  6.15M|			return reinterpret_cast<iphdr*>(m_Data);
  450|  6.15M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  456|  2.38k|		{
  457|  2.38k|			return getSrcIPv4Address();
  458|  2.38k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  463|   449k|		{
  464|   449k|			return getIPv4Header()->ipSrc;
  465|   449k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  478|  2.38k|		{
  479|  2.38k|			return getDstIPv4Address();
  480|  2.38k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  485|   449k|		{
  486|   449k|			return getIPv4Header()->ipDst;
  487|   449k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  582|  1.18M|		{
  583|  1.18M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  584|  1.18M|			       m_TempHeaderExtension;
  585|  1.18M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  598|   155k|		{
  599|   155k|			return OsiModelNetworkLayer;
  600|   155k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  627|   821k|	{
  628|   821k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  629|   821k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (629:10): [True: 820k, False: 1.51k]
  |  Branch (629:52): [True: 817k, False: 2.59k]
  |  Branch (629:75): [True: 817k, False: 276]
  ------------------
  630|   821k|	}

_ZNK4pcpp13IPv6Extension15getExtensionLenEv:
   41|  7.22k|		{
   42|  7.22k|			return 8 * (getBaseHeader()->headerLen + 1);
   43|  7.22k|		}
_ZNK4pcpp13IPv6Extension16getExtensionTypeEv:
   47|  6.89k|		{
   48|  6.89k|			return m_ExtType;
   49|  6.89k|		}
_ZNK4pcpp13IPv6Extension13getNextHeaderEv:
   56|  8.46k|		{
   57|  8.46k|			return m_NextHeader;
   58|  8.46k|		}
_ZN4pcpp13IPv6ExtensionC2EPNS_14IDataContainerEm:
   69|  5.20k|		    : m_NextHeader(nullptr), m_ExtType(IPv6ExtensionUnknown), m_DataContainer(dataContainer), m_Offset(offset),
   70|  5.20k|		      m_ShadowData(nullptr)
   71|  5.20k|		{}
_ZNK4pcpp13IPv6Extension13getBaseHeaderEv:
   87|  19.6k|		{
   88|  19.6k|			return (ipv6_ext_base_header*)getDataPtr();
   89|  19.6k|		}
_ZN4pcpp13IPv6Extension13setNextHeaderEPS0_:
   92|    549|		{
   93|    549|			m_NextHeader = nextHeader;
   94|    549|		}
_ZN4pcpp23IPv6FragmentationHeaderC2EPNS_14IDataContainerEm:
  155|    897|		IPv6FragmentationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  156|    897|		{
  157|    897|			m_ExtType = IPv6Fragmentation;
  158|    897|		}
_ZN4pcpp18IPv6HopByHopHeaderC2EPNS_14IDataContainerEm:
  326|  2.71k|		IPv6HopByHopHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  327|  2.71k|		{
  328|  2.71k|			m_ExtType = IPv6HopByHop;
  329|  2.71k|		}
_ZNK4pcpp24IPv6AuthenticationHeader15getExtensionLenEv:
  481|  3.17k|		{
  482|  3.17k|			return 4 * (getBaseHeader()->headerLen + 2);
  483|  3.17k|		}
_ZN4pcpp24IPv6AuthenticationHeaderC2EPNS_14IDataContainerEm:
  486|  1.58k|		IPv6AuthenticationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  487|  1.58k|		{
  488|  1.58k|			m_ExtType = IPv6AuthenticationHdr;
  489|  1.58k|		}

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

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  25.6k|		{
  370|  25.6k|			return getMessageType() == type;
  371|  25.6k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  16.8k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  16.8k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|  91.9k|		{
  360|  91.9k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|  91.9k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  3.01k|		{
  613|  3.01k|			return OsiModelNetworkLayer;
  614|  3.01k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  620|  17.1k|	{
  621|  17.1k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (621:7): [True: 0, False: 17.1k]
  ------------------
  622|      0|			return false;
  623|       |
  624|  17.1k|		uint8_t type = data[0];
  625|       |
  626|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL, ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  627|  17.1k|		if (type == 8 || type == 0 || type == 10 || type == 15 || type == 16)
  ------------------
  |  Branch (627:7): [True: 5.69k, False: 11.4k]
  |  Branch (627:20): [True: 4.03k, False: 7.44k]
  |  Branch (627:33): [True: 8, False: 7.43k]
  |  Branch (627:47): [True: 0, False: 7.43k]
  |  Branch (627:61): [True: 0, False: 7.43k]
  ------------------
  628|  9.73k|			return true;
  629|       |
  630|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  631|  7.43k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (631:7): [True: 256, False: 7.18k]
  |  Branch (631:21): [True: 392, False: 6.78k]
  ------------------
  632|    648|			return dataLen >= sizeof(icmp_timestamp_request);
  633|       |
  634|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  635|  6.78k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (635:7): [True: 5, False: 6.78k]
  |  Branch (635:21): [True: 1.96k, False: 4.81k]
  ------------------
  636|  1.96k|			return dataLen >= sizeof(icmp_address_mask_request);
  637|       |
  638|       |		// ICMP_DEST_UNREACHABLE
  639|  4.81k|		if (type == 3)
  ------------------
  |  Branch (639:7): [True: 2.94k, False: 1.87k]
  ------------------
  640|  2.94k|			return dataLen >= sizeof(icmp_destination_unreachable);
  641|       |
  642|       |		// ICMP_REDIRECT
  643|  1.87k|		if (type == 5)
  ------------------
  |  Branch (643:7): [True: 0, False: 1.87k]
  ------------------
  644|      0|			return dataLen >= sizeof(icmp_redirect);
  645|       |
  646|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  647|  1.87k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (647:7): [True: 8, False: 1.86k]
  |  Branch (647:20): [True: 708, False: 1.16k]
  ------------------
  648|    716|			return dataLen >= sizeof(icmp_time_exceeded);
  649|       |
  650|       |		// ICMP_PARAM_PROBLEM
  651|  1.16k|		if (type == 12)
  ------------------
  |  Branch (651:7): [True: 256, False: 905]
  ------------------
  652|    256|			return dataLen >= sizeof(icmp_param_problem);
  653|       |
  654|       |		// ICMP_ROUTER_ADV
  655|    905|		if (type == 9)
  ------------------
  |  Branch (655:7): [True: 540, False: 365]
  ------------------
  656|    540|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  657|       |
  658|    365|		return false;
  659|    905|	}

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

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

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

_ZNK4pcpp5Layer12getNextLayerEv:
  126|  83.8M|		{
  127|  83.8M|			return m_NextLayer;
  128|  83.8M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  132|  1.37M|		{
  133|  1.37M|			return m_PrevLayer;
  134|  1.37M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  138|  60.2M|		{
  139|  60.2M|			return m_Protocol;
  140|  60.2M|		}
_ZNK4pcpp5Layer7getDataEv:
  149|   256k|		{
  150|   256k|			return m_Data;
  151|   256k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  155|  2.62M|		{
  156|  2.62M|			return m_DataLen;
  157|  2.62M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  167|  27.2k|		{
  168|  27.2k|			return m_DataLen - getHeaderLen();
  169|  27.2k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  181|  4.53M|		{
  182|  4.53M|			return m_AllocationInfo.attachedPacket != nullptr;
  183|  4.53M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  211|   112k|		{
  212|   112k|			return static_cast<uint8_t*>(m_Data + offset);
  213|   112k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  248|  4.39M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  249|  4.39M|		      m_AllocationInfo{ packet, false }
  250|  4.39M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  259|  3.92M|		{
  260|  3.92M|			return m_AllocationInfo.attachedPacket;
  261|  3.92M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  266|  8.21k|		{
  267|  8.21k|			return m_AllocationInfo.attachedPacket;
  268|  8.21k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  271|  3.42M|		{
  272|  3.42M|			m_NextLayer = nextLayer;
  273|  3.42M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  299|  6.31M|		{
  300|  6.31M|			return m_NextLayer != nullptr;
  301|  6.31M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  559|  11.6k|		{
  560|  11.6k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 11.6k, False: 0]
  |  Branch (560:30): [True: 11.6k, False: 0]
  ------------------
  561|  11.6k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  559|   821k|		{
  560|   821k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 821k, False: 0]
  |  Branch (560:30): [True: 820k, False: 1.51k]
  ------------------
  561|   821k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  559|  17.6k|		{
  560|  17.6k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 17.6k, False: 0]
  |  Branch (560:30): [True: 17.4k, False: 138]
  ------------------
  561|  17.6k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  559|  18.2k|		{
  560|  18.2k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 18.2k, False: 0]
  |  Branch (560:30): [True: 18.2k, False: 0]
  ------------------
  561|  18.2k|		}
_ZN4pcpp14IDataContainerD2Ev:
   29|  4.53M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|  34.3k|		{
  360|  34.3k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  34.3k|			                                               std::forward<Args>(extraArgs)...);
  362|  34.3k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  66.2k|		{
  384|  66.2k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 66.2k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  66.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  66.2k|			setNextLayer(newLayer);
  392|  66.2k|			return newLayer;
  393|  66.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|   784k|		{
  455|   784k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|   784k|			                                                       std::forward<Args>(extraArgs)...);
  457|   784k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   784k|		{
  477|   784k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 780k, False: 3.67k]
  ------------------
  478|   780k|			{
  479|   780k|				return m_NextLayer;
  480|   780k|			}
  481|       |
  482|  3.67k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   784k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   784k|		{
  429|   784k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 780k, False: 3.67k]
  ------------------
  430|   780k|			{
  431|   780k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   780k|			}
  433|  3.67k|			return nullptr;
  434|   784k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   780k|		{
  330|   780k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 780k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   780k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   780k|			setNextLayer(newLayer);
  337|   780k|			return newLayer;
  338|   780k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   320k|		{
  330|   320k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 320k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   320k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   320k|			setNextLayer(newLayer);
  337|   320k|			return newLayer;
  338|   320k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|   201k|		{
  455|   201k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|   201k|			                                                       std::forward<Args>(extraArgs)...);
  457|   201k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   207k|		{
  477|   207k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 207k, False: 65]
  ------------------
  478|   207k|			{
  479|   207k|				return m_NextLayer;
  480|   207k|			}
  481|       |
  482|     65|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   207k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   207k|		{
  429|   207k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 207k, False: 65]
  ------------------
  430|   207k|			{
  431|   207k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   207k|			}
  433|     65|			return nullptr;
  434|   207k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  559|   210k|		{
  560|   210k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 210k, False: 0]
  |  Branch (560:30): [True: 210k, False: 0]
  ------------------
  561|   210k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   207k|		{
  330|   207k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 207k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   207k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   207k|			setNextLayer(newLayer);
  337|   207k|			return newLayer;
  338|   207k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmDpOT0_:
  315|  20.0k|		{
  316|  20.0k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  20.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  57.4k|		{
  330|  57.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 57.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  57.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  57.4k|			setNextLayer(newLayer);
  337|  57.4k|			return newLayer;
  338|  57.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmDpOT0_:
  315|  83.1k|		{
  316|  83.1k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  83.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  85.4k|		{
  330|  85.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 85.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  85.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  85.4k|			setNextLayer(newLayer);
  337|  85.4k|			return newLayer;
  338|  85.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  7.02k|		{
  455|  7.02k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  7.02k|			                                                       std::forward<Args>(extraArgs)...);
  457|  7.02k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  7.02k|		{
  477|  7.02k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 6.63k, False: 392]
  ------------------
  478|  6.63k|			{
  479|  6.63k|				return m_NextLayer;
  480|  6.63k|			}
  481|       |
  482|    392|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  7.02k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  7.02k|		{
  429|  7.02k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 6.63k, False: 392]
  ------------------
  430|  6.63k|			{
  431|  6.63k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  6.63k|			}
  433|    392|			return nullptr;
  434|  7.02k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  6.63k|		{
  330|  6.63k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 6.63k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  6.63k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  6.63k|			setNextLayer(newLayer);
  337|  6.63k|			return newLayer;
  338|  6.63k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  6.85k|		{
  330|  6.85k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 6.85k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  6.85k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  6.85k|			setNextLayer(newLayer);
  337|  6.85k|			return newLayer;
  338|  6.85k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  315|  88.9k|		{
  316|  88.9k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  88.9k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  559|  37.5k|		{
  560|  37.5k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 37.5k, False: 0]
  |  Branch (560:30): [True: 37.4k, False: 129]
  ------------------
  561|  37.5k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_9MplsLayer11mpls_headerEEEbPKhm:
  559|  2.27k|		{
  560|  2.27k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 2.27k, False: 0]
  |  Branch (560:30): [True: 2.27k, False: 0]
  ------------------
  561|  2.27k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  7.94k|		{
  455|  7.94k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  7.94k|			                                                       std::forward<Args>(extraArgs)...);
  457|  7.94k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  7.94k|		{
  477|  7.94k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 6.54k, False: 1.40k]
  ------------------
  478|  6.54k|			{
  479|  6.54k|				return m_NextLayer;
  480|  6.54k|			}
  481|       |
  482|  1.40k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  7.94k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  7.94k|		{
  429|  7.94k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 6.54k, False: 1.40k]
  ------------------
  430|  6.54k|			{
  431|  6.54k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  6.54k|			}
  433|  1.40k|			return nullptr;
  434|  7.94k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  14.4k|		{
  330|  14.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 14.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  14.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  14.4k|			setNextLayer(newLayer);
  337|  14.4k|			return newLayer;
  338|  14.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   263k|		{
  477|   263k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 263k, False: 80]
  ------------------
  478|   263k|			{
  479|   263k|				return m_NextLayer;
  480|   263k|			}
  481|       |
  482|     80|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   263k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   263k|		{
  429|   263k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 263k, False: 80]
  ------------------
  430|   263k|			{
  431|   263k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   263k|			}
  433|     80|			return nullptr;
  434|   263k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   263k|		{
  330|   263k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 263k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   263k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   263k|			setNextLayer(newLayer);
  337|   263k|			return newLayer;
  338|   263k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|   638k|		{
  477|   638k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 635k, False: 2.96k]
  ------------------
  478|   635k|			{
  479|   635k|				return m_NextLayer;
  480|   635k|			}
  481|       |
  482|  2.96k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|   638k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|   638k|		{
  429|   638k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 635k, False: 2.96k]
  ------------------
  430|   635k|			{
  431|   635k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|   635k|			}
  433|  2.96k|			return nullptr;
  434|   638k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|   635k|		{
  330|   635k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 635k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|   635k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|   635k|			setNextLayer(newLayer);
  337|   635k|			return newLayer;
  338|   635k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  17.1k|		{
  477|  17.1k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 16.8k, False: 370]
  ------------------
  478|  16.8k|			{
  479|  16.8k|				return m_NextLayer;
  480|  16.8k|			}
  481|       |
  482|    370|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  17.1k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  17.1k|		{
  429|  17.1k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 16.8k, False: 370]
  ------------------
  430|  16.8k|			{
  431|  16.8k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  16.8k|			}
  433|    370|			return nullptr;
  434|  17.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  16.8k|		{
  330|  16.8k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 16.8k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  16.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  16.8k|			setNextLayer(newLayer);
  337|  16.8k|			return newLayer;
  338|  16.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  16.6k|		{
  477|  16.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 16.6k, False: 0]
  ------------------
  478|  16.6k|			{
  479|  16.6k|				return m_NextLayer;
  480|  16.6k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  16.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  16.6k|		{
  429|  16.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 16.6k, False: 0]
  ------------------
  430|  16.6k|			{
  431|  16.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  16.6k|			}
  433|      0|			return nullptr;
  434|  16.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  16.6k|		{
  330|  16.6k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 16.6k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  16.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  16.6k|			setNextLayer(newLayer);
  337|  16.6k|			return newLayer;
  338|  16.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  20.3k|		{
  477|  20.3k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 20.3k, False: 0]
  ------------------
  478|  20.3k|			{
  479|  20.3k|				return m_NextLayer;
  480|  20.3k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  20.3k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  20.3k|		{
  429|  20.3k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 20.3k, False: 0]
  ------------------
  430|  20.3k|			{
  431|  20.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  20.3k|			}
  433|      0|			return nullptr;
  434|  20.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  20.3k|		{
  330|  20.3k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 20.3k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  20.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  20.3k|			setNextLayer(newLayer);
  337|  20.3k|			return newLayer;
  338|  20.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  2.19k|		{
  477|  2.19k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 2.19k, False: 0]
  ------------------
  478|  2.19k|			{
  479|  2.19k|				return m_NextLayer;
  480|  2.19k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  2.19k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  2.19k|		{
  429|  2.19k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 2.19k, False: 0]
  ------------------
  430|  2.19k|			{
  431|  2.19k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  2.19k|			}
  433|      0|			return nullptr;
  434|  2.19k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  559|  5.16k|		{
  560|  5.16k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 5.16k, False: 0]
  |  Branch (560:30): [True: 5.16k, False: 0]
  ------------------
  561|  5.16k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  2.19k|		{
  330|  2.19k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 2.19k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  2.19k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  2.19k|			setNextLayer(newLayer);
  337|  2.19k|			return newLayer;
  338|  2.19k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  2.96k|		{
  477|  2.96k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 2.96k, False: 0]
  ------------------
  478|  2.96k|			{
  479|  2.96k|				return m_NextLayer;
  480|  2.96k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  2.96k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  2.96k|		{
  429|  2.96k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 2.96k, False: 0]
  ------------------
  430|  2.96k|			{
  431|  2.96k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  2.96k|			}
  433|      0|			return nullptr;
  434|  2.96k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  2.96k|		{
  330|  2.96k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 2.96k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  2.96k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  2.96k|			setNextLayer(newLayer);
  337|  2.96k|			return newLayer;
  338|  2.96k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|     20|		{
  477|     20|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 20, False: 0]
  ------------------
  478|     20|			{
  479|     20|				return m_NextLayer;
  480|     20|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|     20|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|     20|		{
  429|     20|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 20, False: 0]
  ------------------
  430|     20|			{
  431|     20|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|     20|			}
  433|      0|			return nullptr;
  434|     20|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  559|     20|		{
  560|     20|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 20, False: 0]
  |  Branch (560:30): [True: 20, False: 0]
  ------------------
  561|     20|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|     20|		{
  330|     20|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 20]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|     20|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|     20|			setNextLayer(newLayer);
  337|     20|			return newLayer;
  338|     20|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  1.58k|		{
  477|  1.58k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 1.58k, False: 0]
  ------------------
  478|  1.58k|			{
  479|  1.58k|				return m_NextLayer;
  480|  1.58k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  1.58k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  1.58k|		{
  429|  1.58k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 1.58k, False: 0]
  ------------------
  430|  1.58k|			{
  431|  1.58k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  1.58k|			}
  433|      0|			return nullptr;
  434|  1.58k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  559|  1.58k|		{
  560|  1.58k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 1.58k, False: 0]
  |  Branch (560:30): [True: 1.58k, False: 0]
  ------------------
  561|  1.58k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.58k|		{
  330|  1.58k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.58k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.58k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.58k|			setNextLayer(newLayer);
  337|  1.58k|			return newLayer;
  338|  1.58k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|      5|		{
  477|      5|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 5, False: 0]
  ------------------
  478|      5|			{
  479|      5|				return m_NextLayer;
  480|      5|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|      5|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|      5|		{
  429|      5|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 5, False: 0]
  ------------------
  430|      5|			{
  431|      5|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|      5|			}
  433|      0|			return nullptr;
  434|      5|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|      5|		{
  330|      5|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 5]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|      5|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|      5|			setNextLayer(newLayer);
  337|      5|			return newLayer;
  338|      5|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|     45|		{
  477|     45|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 45, False: 0]
  ------------------
  478|     45|			{
  479|     45|				return m_NextLayer;
  480|     45|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|     45|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|     45|		{
  429|     45|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 45, False: 0]
  ------------------
  430|     45|			{
  431|     45|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|     45|			}
  433|      0|			return nullptr;
  434|     45|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|     45|		{
  330|     45|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 45]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|     45|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|     45|			setNextLayer(newLayer);
  337|     45|			return newLayer;
  338|     45|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  12.5k|		{
  477|  12.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 12.5k, False: 0]
  ------------------
  478|  12.5k|			{
  479|  12.5k|				return m_NextLayer;
  480|  12.5k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  12.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  12.5k|		{
  429|  12.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 12.5k, False: 0]
  ------------------
  430|  12.5k|			{
  431|  12.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  12.5k|			}
  433|      0|			return nullptr;
  434|  12.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  12.5k|		{
  330|  12.5k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 12.5k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  12.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  12.5k|			setNextLayer(newLayer);
  337|  12.5k|			return newLayer;
  338|  12.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  5.75k|		{
  477|  5.75k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 5.75k, False: 0]
  ------------------
  478|  5.75k|			{
  479|  5.75k|				return m_NextLayer;
  480|  5.75k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  5.75k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  5.75k|		{
  429|  5.75k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 5.75k, False: 0]
  ------------------
  430|  5.75k|			{
  431|  5.75k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  5.75k|			}
  433|      0|			return nullptr;
  434|  5.75k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  17.4k|		{
  330|  17.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 17.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  17.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  17.4k|			setNextLayer(newLayer);
  337|  17.4k|			return newLayer;
  338|  17.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  7.89k|		{
  455|  7.89k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  7.89k|			                                                       std::forward<Args>(extraArgs)...);
  457|  7.89k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|   176k|		{
  455|   176k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|   176k|			                                                       std::forward<Args>(extraArgs)...);
  457|   176k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  2.97k|		{
  455|  2.97k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  2.97k|			                                                       std::forward<Args>(extraArgs)...);
  457|  2.97k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|      7|		{
  455|      7|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|      7|			                                                       std::forward<Args>(extraArgs)...);
  457|      7|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|     40|		{
  455|     40|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|     40|			                                                       std::forward<Args>(extraArgs)...);
  457|     40|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  359|  63.7k|		{
  360|  63.7k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  63.7k|			                                               std::forward<Args>(extraArgs)...);
  362|  63.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  383|  63.7k|		{
  384|  63.7k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 63.7k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  63.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  63.7k|			setNextLayer(newLayer);
  392|  63.7k|			return newLayer;
  393|  63.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  315|  11.6k|		{
  316|  11.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  11.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmDpOT0_:
  315|  5.89k|		{
  316|  5.89k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  5.89k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  17.5k|		{
  330|  17.5k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 17.5k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  17.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  17.5k|			setNextLayer(newLayer);
  337|  17.5k|			return newLayer;
  338|  17.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  29.7k|		{
  455|  29.7k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  29.7k|			                                                       std::forward<Args>(extraArgs)...);
  457|  29.7k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  29.7k|		{
  477|  29.7k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 29.5k, False: 128]
  ------------------
  478|  29.5k|			{
  479|  29.5k|				return m_NextLayer;
  480|  29.5k|			}
  481|       |
  482|    128|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  29.7k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  29.7k|		{
  429|  29.7k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 29.5k, False: 128]
  ------------------
  430|  29.5k|			{
  431|  29.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  29.5k|			}
  433|    128|			return nullptr;
  434|  29.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  29.5k|		{
  330|  29.5k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 29.5k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  29.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  29.5k|			setNextLayer(newLayer);
  337|  29.5k|			return newLayer;
  338|  29.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  1.70k|		{
  455|  1.70k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  1.70k|			                                                       std::forward<Args>(extraArgs)...);
  457|  1.70k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  1.70k|		{
  477|  1.70k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 1.70k, False: 0]
  ------------------
  478|  1.70k|			{
  479|  1.70k|				return m_NextLayer;
  480|  1.70k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  1.70k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  1.70k|		{
  429|  1.70k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 1.70k, False: 0]
  ------------------
  430|  1.70k|			{
  431|  1.70k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  1.70k|			}
  433|      0|			return nullptr;
  434|  1.70k|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.70k|		{
  330|  1.70k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.70k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.70k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.70k|			setNextLayer(newLayer);
  337|  1.70k|			return newLayer;
  338|  1.70k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  13.5k|		{
  455|  13.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  13.5k|			                                                       std::forward<Args>(extraArgs)...);
  457|  13.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  13.5k|		{
  477|  13.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 12.8k, False: 764]
  ------------------
  478|  12.8k|			{
  479|  12.8k|				return m_NextLayer;
  480|  12.8k|			}
  481|       |
  482|    764|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  13.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  13.5k|		{
  429|  13.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 12.8k, False: 764]
  ------------------
  430|  12.8k|			{
  431|  12.8k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  12.8k|			}
  433|    764|			return nullptr;
  434|  13.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  12.8k|		{
  330|  12.8k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 12.8k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  12.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  12.8k|			setNextLayer(newLayer);
  337|  12.8k|			return newLayer;
  338|  12.8k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  559|   328k|		{
  560|   328k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 328k, False: 0]
  |  Branch (560:30): [True: 328k, False: 0]
  ------------------
  561|   328k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|   328k|		{
  360|   328k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|   328k|			                                               std::forward<Args>(extraArgs)...);
  362|   328k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|   328k|		{
  384|   328k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 328k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|   328k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|   328k|			setNextLayer(newLayer);
  392|   328k|			return newLayer;
  393|   328k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  559|   175k|		{
  560|   175k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 175k, False: 0]
  |  Branch (560:30): [True: 162k, False: 12.6k]
  ------------------
  561|   175k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  78.2k|		{
  330|  78.2k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 78.2k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  78.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  78.2k|			setNextLayer(newLayer);
  337|  78.2k|			return newLayer;
  338|  78.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  15.2k|		{
  330|  15.2k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 15.2k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  15.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  15.2k|			setNextLayer(newLayer);
  337|  15.2k|			return newLayer;
  338|  15.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SipResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.48k|		{
  330|  1.48k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.48k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.48k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.48k|			setNextLayer(newLayer);
  337|  1.48k|			return newLayer;
  338|  1.48k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  31.8k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  31.8k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  31.8k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  31.8k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  31.8k|		{
  539|  31.8k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  31.8k|			                                                         std::forward<Args>(extraArgs)...);
  541|  31.8k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 30.3k, False: 1.51k]
  ------------------
  542|  30.3k|			{
  543|  30.3k|				return nextLayer;
  544|  30.3k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  1.51k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  31.8k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|  14.9k|		{
  360|  14.9k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  14.9k|			                                               std::forward<Args>(extraArgs)...);
  362|  14.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  14.9k|		{
  384|  14.9k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 14.9k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  14.9k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  14.9k|			setNextLayer(newLayer);
  392|  14.9k|			return newLayer;
  393|  14.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  4.92k|		{
  330|  4.92k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 4.92k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  4.92k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  4.92k|			setNextLayer(newLayer);
  337|  4.92k|			return newLayer;
  338|  4.92k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  8.93k|		{
  330|  8.93k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 8.93k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  8.93k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  8.93k|			setNextLayer(newLayer);
  337|  8.93k|			return newLayer;
  338|  8.93k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  11.3k|		{
  330|  11.3k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 11.3k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  11.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  11.3k|			setNextLayer(newLayer);
  337|  11.3k|			return newLayer;
  338|  11.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15FtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  5.62k|		{
  330|  5.62k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 5.62k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  5.62k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  5.62k|			setNextLayer(newLayer);
  337|  5.62k|			return newLayer;
  338|  5.62k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.38k|		{
  330|  1.38k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.38k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.38k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.38k|			setNextLayer(newLayer);
  337|  1.38k|			return newLayer;
  338|  1.38k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  12.2k|		{
  330|  12.2k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 12.2k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  12.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  12.2k|			setNextLayer(newLayer);
  337|  12.2k|			return newLayer;
  338|  12.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  3.36k|		{
  330|  3.36k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 3.36k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  3.36k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  3.36k|			setNextLayer(newLayer);
  337|  3.36k|			return newLayer;
  338|  3.36k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  8.15k|		{
  330|  8.15k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 8.15k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  8.15k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  8.15k|			setNextLayer(newLayer);
  337|  8.15k|			return newLayer;
  338|  8.15k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|    905|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|    905|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|    905|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|    905|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|    905|		{
  539|    905|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|    905|			                                                         std::forward<Args>(extraArgs)...);
  541|    905|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 115, False: 790]
  ------------------
  542|    115|			{
  543|    115|				return nextLayer;
  544|    115|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|    790|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|    905|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|    960|		{
  384|    960|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 960]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|    960|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|    960|			setNextLayer(newLayer);
  392|    960|			return newLayer;
  393|    960|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|     80|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|     80|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|     80|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|     80|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|     80|		{
  539|     80|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|     80|			                                                         std::forward<Args>(extraArgs)...);
  541|     80|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 80, False: 0]
  ------------------
  542|     80|			{
  543|     80|				return nextLayer;
  544|     80|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|     80|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|     80|		{
  384|     80|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 80]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|     80|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|     80|			setNextLayer(newLayer);
  392|     80|			return newLayer;
  393|     80|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  3.34k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  3.34k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  3.34k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  3.34k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  3.34k|		{
  539|  3.34k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  3.34k|			                                                         std::forward<Args>(extraArgs)...);
  541|  3.34k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 3.34k, False: 0]
  ------------------
  542|  3.34k|			{
  543|  3.34k|				return nextLayer;
  544|  3.34k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  3.34k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  3.34k|		{
  384|  3.34k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 3.34k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  3.34k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  3.34k|			setNextLayer(newLayer);
  392|  3.34k|			return newLayer;
  393|  3.34k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11ModbusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  1.80k|		{
  330|  1.80k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 1.80k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  1.80k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  1.80k|			setNextLayer(newLayer);
  337|  1.80k|			return newLayer;
  338|  1.80k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  12.1k|		{
  455|  12.1k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  12.1k|			                                                       std::forward<Args>(extraArgs)...);
  457|  12.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  12.1k|		{
  477|  12.1k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 10.5k, False: 1.65k]
  ------------------
  478|  10.5k|			{
  479|  10.5k|				return m_NextLayer;
  480|  10.5k|			}
  481|       |
  482|  1.65k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  12.1k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  12.1k|		{
  429|  12.1k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 10.5k, False: 1.65k]
  ------------------
  430|  10.5k|			{
  431|  10.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  10.5k|			}
  433|  1.65k|			return nullptr;
  434|  12.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  10.5k|		{
  330|  10.5k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 10.5k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  10.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  10.5k|			setNextLayer(newLayer);
  337|  10.5k|			return newLayer;
  338|  10.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  17.6k|		{
  455|  17.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  17.6k|			                                                       std::forward<Args>(extraArgs)...);
  457|  17.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  17.6k|		{
  477|  17.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 17.4k, False: 138]
  ------------------
  478|  17.4k|			{
  479|  17.4k|				return m_NextLayer;
  480|  17.4k|			}
  481|       |
  482|    138|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  17.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  17.6k|		{
  429|  17.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 17.4k, False: 138]
  ------------------
  430|  17.4k|			{
  431|  17.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  17.4k|			}
  433|    138|			return nullptr;
  434|  17.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  17.4k|		{
  330|  17.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 17.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  17.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  17.4k|			setNextLayer(newLayer);
  337|  17.4k|			return newLayer;
  338|  17.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  6.85k|		{
  455|  6.85k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  6.85k|			                                                       std::forward<Args>(extraArgs)...);
  457|  6.85k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  6.85k|		{
  477|  6.85k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 6.85k, False: 0]
  ------------------
  478|  6.85k|			{
  479|  6.85k|				return m_NextLayer;
  480|  6.85k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  6.85k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  6.85k|		{
  429|  6.85k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 6.85k, False: 0]
  ------------------
  430|  6.85k|			{
  431|  6.85k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  6.85k|			}
  433|      0|			return nullptr;
  434|  6.85k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  559|  6.85k|		{
  560|  6.85k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 6.85k, False: 0]
  |  Branch (560:30): [True: 6.85k, False: 0]
  ------------------
  561|  6.85k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  6.85k|		{
  330|  6.85k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 6.85k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  6.85k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  6.85k|			setNextLayer(newLayer);
  337|  6.85k|			return newLayer;
  338|  6.85k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  315|  46.7k|		{
  316|  46.7k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  46.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  46.7k|		{
  330|  46.7k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 46.7k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  46.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  46.7k|			setNextLayer(newLayer);
  337|  46.7k|			return newLayer;
  338|  46.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  509|  25.3k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  25.3k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  25.3k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  25.3k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  538|  25.3k|		{
  539|  25.3k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  25.3k|			                                                         std::forward<Args>(extraArgs)...);
  541|  25.3k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 23.9k, False: 1.39k]
  ------------------
  542|  23.9k|			{
  543|  23.9k|				return nextLayer;
  544|  23.9k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  1.39k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  25.3k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  383|  25.3k|		{
  384|  25.3k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 25.3k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  25.3k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  25.3k|			setNextLayer(newLayer);
  392|  25.3k|			return newLayer;
  393|  25.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  315|  22.8k|		{
  316|  22.8k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  22.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  22.8k|		{
  330|  22.8k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 22.8k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  22.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  22.8k|			setNextLayer(newLayer);
  337|  22.8k|			return newLayer;
  338|  22.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  315|  15.4k|		{
  316|  15.4k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  15.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  15.4k|		{
  330|  15.4k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 15.4k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  15.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  15.4k|			setNextLayer(newLayer);
  337|  15.4k|			return newLayer;
  338|  15.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmDpOT0_:
  315|  7.90k|		{
  316|  7.90k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  7.90k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  315|  3.91k|		{
  316|  3.91k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  3.91k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  3.91k|		{
  330|  3.91k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 3.91k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  3.91k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  3.91k|			setNextLayer(newLayer);
  337|  3.91k|			return newLayer;
  338|  3.91k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  315|  8.00k|		{
  316|  8.00k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  8.00k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  8.00k|		{
  330|  8.00k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 8.00k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  8.00k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  8.00k|			setNextLayer(newLayer);
  337|  8.00k|			return newLayer;
  338|  8.00k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  315|    375|		{
  316|    375|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|    375|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|    438|		{
  330|    438|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 438]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|    438|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|    438|			setNextLayer(newLayer);
  337|    438|			return newLayer;
  338|    438|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  1.43k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  1.43k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  1.43k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  1.43k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  1.43k|		{
  539|  1.43k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  1.43k|			                                                         std::forward<Args>(extraArgs)...);
  541|  1.43k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 1.43k, False: 0]
  ------------------
  542|  1.43k|			{
  543|  1.43k|				return nextLayer;
  544|  1.43k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  1.43k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  1.43k|		{
  384|  1.43k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 1.43k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  1.43k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  1.43k|			setNextLayer(newLayer);
  392|  1.43k|			return newLayer;
  393|  1.43k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  509|  53.9k|		{
  510|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  511|  53.9k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  512|  53.9k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  513|  53.9k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  538|  53.9k|		{
  539|  53.9k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  540|  53.9k|			                                                         std::forward<Args>(extraArgs)...);
  541|  53.9k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (541:8): [True: 1.81k, False: 52.1k]
  ------------------
  542|  1.81k|			{
  543|  1.81k|				return nextLayer;
  544|  1.81k|			}
  545|       |
  546|       |			// factory failed, construct fallback layer
  547|  52.1k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  548|  53.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  53.9k|		{
  384|  53.9k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 53.9k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  53.9k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  53.9k|			setNextLayer(newLayer);
  392|  53.9k|			return newLayer;
  393|  53.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmDpOT0_:
  315|  6.85k|		{
  316|  6.85k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  6.85k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  8.45k|		{
  455|  8.45k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  8.45k|			                                                       std::forward<Args>(extraArgs)...);
  457|  8.45k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  8.45k|		{
  477|  8.45k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 7.24k, False: 1.21k]
  ------------------
  478|  7.24k|			{
  479|  7.24k|				return m_NextLayer;
  480|  7.24k|			}
  481|       |
  482|  1.21k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  8.45k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  8.45k|		{
  429|  8.45k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 7.24k, False: 1.21k]
  ------------------
  430|  7.24k|			{
  431|  7.24k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  7.24k|			}
  433|  1.21k|			return nullptr;
  434|  8.45k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  7.24k|		{
  330|  7.24k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 7.24k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  7.24k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  7.24k|			setNextLayer(newLayer);
  337|  7.24k|			return newLayer;
  338|  7.24k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  11.6k|		{
  455|  11.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  11.6k|			                                                       std::forward<Args>(extraArgs)...);
  457|  11.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  11.6k|		{
  477|  11.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 11.6k, False: 0]
  ------------------
  478|  11.6k|			{
  479|  11.6k|				return m_NextLayer;
  480|  11.6k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  11.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  11.6k|		{
  429|  11.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 11.6k, False: 0]
  ------------------
  430|  11.6k|			{
  431|  11.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  11.6k|			}
  433|      0|			return nullptr;
  434|  11.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  37.5k|		{
  455|  37.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  37.5k|			                                                       std::forward<Args>(extraArgs)...);
  457|  37.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  37.5k|		{
  477|  37.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 37.4k, False: 129]
  ------------------
  478|  37.4k|			{
  479|  37.4k|				return m_NextLayer;
  480|  37.4k|			}
  481|       |
  482|    129|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  37.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  37.5k|		{
  429|  37.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 37.4k, False: 129]
  ------------------
  430|  37.4k|			{
  431|  37.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  37.4k|			}
  433|    129|			return nullptr;
  434|  37.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|  2.27k|		{
  455|  2.27k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|  2.27k|			                                                       std::forward<Args>(extraArgs)...);
  457|  2.27k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|  2.27k|		{
  477|  2.27k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 2.27k, False: 0]
  ------------------
  478|  2.27k|			{
  479|  2.27k|				return m_NextLayer;
  480|  2.27k|			}
  481|       |
  482|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|  2.27k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|  2.27k|		{
  429|  2.27k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 2.27k, False: 0]
  ------------------
  430|  2.27k|			{
  431|  2.27k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|  2.27k|			}
  433|      0|			return nullptr;
  434|  2.27k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  454|    348|		{
  455|    348|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  456|    348|			                                                       std::forward<Args>(extraArgs)...);
  457|    348|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  476|    348|		{
  477|    348|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (477:8): [True: 63, False: 285]
  ------------------
  478|     63|			{
  479|     63|				return m_NextLayer;
  480|     63|			}
  481|       |
  482|    285|			return constructNextLayer<TFallback>(data, dataLen, packet);
  483|    348|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  428|    348|		{
  429|    348|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (429:8): [True: 63, False: 285]
  ------------------
  430|     63|			{
  431|     63|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  432|     63|			}
  433|    285|			return nullptr;
  434|    348|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|     55|		{
  360|     55|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|     55|			                                               std::forward<Args>(extraArgs)...);
  362|     55|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  359|  5.46k|		{
  360|  5.46k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  361|  5.46k|			                                               std::forward<Args>(extraArgs)...);
  362|  5.46k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  383|  5.46k|		{
  384|  5.46k|			if (hasNextLayer())
  ------------------
  |  Branch (384:8): [True: 0, False: 5.46k]
  ------------------
  385|      0|			{
  386|      0|				throw std::runtime_error("Next layer already exists");
  387|      0|			}
  388|       |
  389|       |			// cppcheck-suppress redundantInitialization
  390|  5.46k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  391|  5.46k|			setNextLayer(newLayer);
  392|  5.46k|			return newLayer;
  393|  5.46k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12stp_tcn_bpduEEEbPKhm:
  559|  1.97k|		{
  560|  1.97k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 1.97k, False: 0]
  |  Branch (560:30): [True: 1.97k, False: 0]
  ------------------
  561|  1.97k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_13stp_conf_bpduEEEbPKhm:
  559|  2.16k|		{
  560|  2.16k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 2.16k, False: 0]
  |  Branch (560:30): [True: 2.16k, False: 0]
  ------------------
  561|  2.16k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_14rstp_conf_bpduEEEbPKhm:
  559|  1.11k|		{
  560|  1.11k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 1.11k, False: 0]
  |  Branch (560:30): [True: 1.11k, False: 0]
  ------------------
  561|  1.11k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_14mstp_conf_bpduEEEbPKhm:
  559|     68|		{
  560|     68|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (560:11): [True: 68, False: 0]
  |  Branch (560:30): [True: 64, False: 4]
  ------------------
  561|     68|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  315|  15.8k|		{
  316|  15.8k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  317|  15.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  329|  15.8k|		{
  330|  15.8k|			if (hasNextLayer())
  ------------------
  |  Branch (330:8): [True: 0, False: 15.8k]
  ------------------
  331|      0|			{
  332|      0|				throw std::runtime_error("Next layer already exists");
  333|      0|			}
  334|       |
  335|  15.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  336|  15.8k|			setNextLayer(newLayer);
  337|  15.8k|			return newLayer;
  338|  15.8k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   303k|		{
  348|   303k|			return port == 389;
  349|   303k|		}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|    115|		{
   89|    115|			return m_Value;
   90|    115|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|    138|		{
  367|    138|			return m_Asn1Record->getTotalLength();
  368|    138|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|     23|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|     23|		{
  375|     23|			return OsiModelApplicationLayer;
  376|     23|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|    105|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|    105|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|     10|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|     10|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|     65|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|     65|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|     10|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|     10|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|      5|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|      5|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|      5|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|      5|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|     15|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|     15|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|      5|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|      5|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|    115|		~LdapLayer() override = default;

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

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

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

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

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

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

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

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

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

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

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

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

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

_ZN4pcpp11RadiusLayer12isRadiusPortEt:
  274|   317k|	{
  275|   317k|		switch (port)
  276|   317k|		{
  277|  18.3k|		case 1812:
  ------------------
  |  Branch (277:3): [True: 18.3k, False: 299k]
  ------------------
  278|  19.4k|		case 1813:
  ------------------
  |  Branch (278:3): [True: 1.10k, False: 316k]
  ------------------
  279|  29.9k|		case 3799:
  ------------------
  |  Branch (279:3): [True: 10.4k, False: 307k]
  ------------------
  280|  29.9k|			return true;
  281|   288k|		default:
  ------------------
  |  Branch (281:3): [True: 288k, False: 29.9k]
  ------------------
  282|   288k|			return false;
  283|   317k|		}
  284|   317k|	}  // isRadiusPort
_ZN4pcpp11RadiusLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  152|  22.8k|		    : Layer(data, dataLen, prevLayer, packet, Radius)
  153|  22.8k|		{}
_ZNK4pcpp11RadiusLayer15getRadiusHeaderEv:
  181|  45.7k|		{
  182|  45.7k|			return reinterpret_cast<radius_header*>(m_Data);
  183|  45.7k|		}
_ZN4pcpp11RadiusLayer14parseNextLayerEv:
  258|  22.8k|		{}
_ZNK4pcpp11RadiusLayer16getOsiModelLayerEv:
  266|  4.57k|		{
  267|  4.57k|			return OsiModelApplicationLayer;
  268|  4.57k|		}
_ZN4pcpp11RadiusLayerD2Ev:
  175|  22.8k|		~RadiusLayer() override = default;

_ZNK4pcpp9RawPacket10getRawDataEv:
  462|  2.08M|		{
  463|  2.08M|			return m_RawData;
  464|  2.08M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  469|  1.04M|		{
  470|  1.04M|			return m_LinkLayerType;
  471|  1.04M|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  481|  2.32M|		{
  482|  2.32M|			return m_RawDataLen;
  483|  2.32M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  494|   208k|		{
  495|   208k|			return m_TimeStamp;
  496|   208k|		}
_ZN4pcpp9RawPacketC2Ev:
  312|  2.17k|		RawPacket() = default;

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

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   222k|		{
   94|   222k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 3.20k, False: 219k]
  |  Branch (94:28): [True: 11.0k, False: 207k]
  ------------------
   95|   222k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  2.89k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  2.89k|		{
  109|  2.89k|			return OsiModelApplicationLayer;
  110|  2.89k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  14.9k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  14.9k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  1.37k|		{
  150|  1.37k|			return m_DataLen;
  151|  1.37k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  1.14k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  1.14k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  2.17k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  2.17k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  3.36k|		{
  266|  3.36k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  3.36k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  11.6k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  11.6k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  13.9k|		{
  403|  13.9k|			return m_DataLen;
  404|  13.9k|		}

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

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  6.78k|	{
  947|  6.78k|		size_t vecSize = m_ExtensionList.size();
  948|  13.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 12.1k, False: 1.21k]
  ------------------
  949|  12.1k|		{
  950|  12.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  12.1k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 5.57k, False: 6.56k]
  ------------------
  952|  5.57k|				return static_cast<TExtension*>(curElem);
  953|  12.1k|		}
  954|       |
  955|  1.21k|		return nullptr;
  956|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  6.78k|	{
  947|  6.78k|		size_t vecSize = m_ExtensionList.size();
  948|  54.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 49.1k, False: 4.86k]
  ------------------
  949|  49.1k|		{
  950|  49.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  49.1k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 1.91k, False: 47.2k]
  ------------------
  952|  1.91k|				return static_cast<TExtension*>(curElem);
  953|  49.1k|		}
  954|       |
  955|  4.86k|		return nullptr;
  956|  6.78k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.44k|	{
  960|  4.44k|		size_t vecSize = m_ExtensionList.size();
  961|  7.56k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 3.71k, False: 3.85k]
  ------------------
  962|  3.71k|		{
  963|  3.71k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  3.71k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 586, False: 3.12k]
  ------------------
  965|    586|				return static_cast<TExtension*>(curElem);
  966|  3.71k|		}
  967|       |
  968|  3.85k|		return nullptr;
  969|  4.44k|	}
_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|   885k|		{
  188|   885k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   885k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  4.62k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  4.62k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  13.5k|		{
  403|  13.5k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  13.5k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  6.98k|		{
  539|  6.98k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  6.98k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  8.37k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  8.37k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|     41|		    : SSLHandshakeMessage(data, dataLen, container)
  700|     41|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  5.95k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  5.95k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  11.8k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  11.8k|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|  1.93k|		    : SSLHandshakeMessage(data, dataLen, container)
  861|  1.93k|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|    638|		    : SSLHandshakeMessage(data, dataLen, container)
  894|    638|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  21.6k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  21.6k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   127k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  37.2k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  35.5k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  4.16k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|     10|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  48.7k|		{
  153|  48.7k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 48.7k]
  |  Branch (153:27): [True: 0, False: 48.7k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  48.7k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  48.7k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 1.28k, False: 47.4k]
  ------------------
  160|  1.28k|			{
  161|  1.28k|				return nullptr;
  162|  1.28k|			}
  163|       |
  164|  47.4k|			return std::make_unique<T>(data, dataLen);
  165|  48.7k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   363k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  16.6k|		{
  153|  16.6k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 16.6k]
  |  Branch (153:27): [True: 0, False: 16.6k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  16.6k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  16.6k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 31, False: 16.5k]
  ------------------
  160|     31|			{
  161|     31|				return nullptr;
  162|     31|			}
  163|       |
  164|  16.5k|			return std::make_unique<T>(data, dataLen);
  165|  16.6k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  23.1k|		{
  153|  23.1k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 23.1k]
  |  Branch (153:27): [True: 0, False: 23.1k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  23.1k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  23.1k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 20, False: 23.1k]
  ------------------
  160|     20|			{
  161|     20|				return nullptr;
  162|     20|			}
  163|       |
  164|  23.1k|			return std::make_unique<T>(data, dataLen);
  165|  23.1k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  16.2k|		{
  153|  16.2k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 16.2k]
  |  Branch (153:27): [True: 0, False: 16.2k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  16.2k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  16.2k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 40, False: 16.1k]
  ------------------
  160|     40|			{
  161|     40|				return nullptr;
  162|     40|			}
  163|       |
  164|  16.1k|			return std::make_unique<T>(data, dataLen);
  165|  16.2k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   273k|		{
  153|   273k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 273k]
  |  Branch (153:27): [True: 0, False: 273k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   273k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   273k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 13.3k, False: 259k]
  ------------------
  160|  13.3k|			{
  161|  13.3k|				return nullptr;
  162|  13.3k|			}
  163|       |
  164|   259k|			return std::make_unique<T>(data, dataLen);
  165|   273k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  6.78k|	{
  947|  6.78k|		size_t vecSize = m_ExtensionList.size();
  948|  39.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 37.6k, False: 2.15k]
  ------------------
  949|  37.6k|		{
  950|  37.6k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  37.6k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 4.62k, False: 33.0k]
  ------------------
  952|  4.62k|				return static_cast<TExtension*>(curElem);
  953|  37.6k|		}
  954|       |
  955|  2.15k|		return nullptr;
  956|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  6.78k|	{
  947|  6.78k|		size_t vecSize = m_ExtensionList.size();
  948|  43.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 38.7k, False: 4.34k]
  ------------------
  949|  38.7k|		{
  950|  38.7k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  38.7k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.44k, False: 36.2k]
  ------------------
  952|  2.44k|				return static_cast<TExtension*>(curElem);
  953|  38.7k|		}
  954|       |
  955|  4.34k|		return nullptr;
  956|  6.78k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  8.88k|	{
  960|  8.88k|		size_t vecSize = m_ExtensionList.size();
  961|  20.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 13.2k, False: 6.95k]
  ------------------
  962|  13.2k|		{
  963|  13.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  13.2k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 1.92k, False: 11.2k]
  ------------------
  965|  1.92k|				return static_cast<TExtension*>(curElem);
  966|  13.2k|		}
  967|       |
  968|  6.95k|		return nullptr;
  969|  8.88k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  444|  14.5k|	{
  445|  14.5k|		size_t vecSize = m_MessageList.size();
  446|  25.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 17.6k, False: 7.80k]
  ------------------
  447|  17.6k|		{
  448|  17.6k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  17.6k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 6.78k, False: 10.8k]
  ------------------
  450|  6.78k|				return (THandshakeMessage*)curElem;
  451|  17.6k|		}
  452|       |
  453|       |		// element not found
  454|  7.80k|		return nullptr;
  455|  14.5k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  444|  14.5k|	{
  445|  14.5k|		size_t vecSize = m_MessageList.size();
  446|  24.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 14.2k, False: 10.1k]
  ------------------
  447|  14.2k|		{
  448|  14.2k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  14.2k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 4.44k, False: 9.78k]
  ------------------
  450|  4.44k|				return (THandshakeMessage*)curElem;
  451|  14.2k|		}
  452|       |
  453|       |		// element not found
  454|  10.1k|		return nullptr;
  455|  14.5k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  444|  14.5k|	{
  445|  14.5k|		size_t vecSize = m_MessageList.size();
  446|  14.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 13.8k, False: 706]
  ------------------
  447|  13.8k|		{
  448|  13.8k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  13.8k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 13.8k, False: 0]
  ------------------
  450|  13.8k|				return (THandshakeMessage*)curElem;
  451|  13.8k|		}
  452|       |
  453|       |		// element not found
  454|    706|		return nullptr;
  455|  14.5k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   588k|		{
  228|   588k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   588k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  55.0k|		{
  248|  55.0k|			return OsiModelPresentationLayer;
  249|  55.0k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   328k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   328k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  14.5k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  31.3k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  31.3k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  4.53k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  8.79k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  8.79k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  407|  1.21k|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|   194k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  423|   194k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  440|  34.7k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  489|   802k|	{
  490|   802k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (490:7): [True: 248k, False: 553k]
  ------------------
  491|   248k|			return true;
  492|       |
  493|   553k|		switch (port)
  494|   553k|		{
  495|  12.0k|		case 261:  // NSIIOPS
  ------------------
  |  Branch (495:3): [True: 12.0k, False: 541k]
  ------------------
  496|  12.2k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (496:3): [True: 260, False: 553k]
  ------------------
  497|  13.1k|		case 465:  // SMTPS
  ------------------
  |  Branch (497:3): [True: 841, False: 552k]
  ------------------
  498|  13.1k|		case 563:  // NNTPS
  ------------------
  |  Branch (498:3): [True: 20, False: 553k]
  ------------------
  499|  13.5k|		case 614:  // SSHELL
  ------------------
  |  Branch (499:3): [True: 424, False: 552k]
  ------------------
  500|  13.5k|		case 636:  // LDAPS
  ------------------
  |  Branch (500:3): [True: 5, False: 553k]
  ------------------
  501|  13.5k|		case 989:  // FTPS - data
  ------------------
  |  Branch (501:3): [True: 0, False: 553k]
  ------------------
  502|  13.6k|		case 990:  // FTPS - control
  ------------------
  |  Branch (502:3): [True: 85, False: 553k]
  ------------------
  503|  13.6k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (503:3): [True: 10, False: 553k]
  ------------------
  504|  13.7k|		case 993:  // IMAPS
  ------------------
  |  Branch (504:3): [True: 60, False: 553k]
  ------------------
  505|  13.7k|		case 994:  // IRCS
  ------------------
  |  Branch (505:3): [True: 0, False: 553k]
  ------------------
  506|  13.9k|		case 995:  // POP3S
  ------------------
  |  Branch (506:3): [True: 242, False: 553k]
  ------------------
  507|  13.9k|			return true;
  508|   539k|		default:
  ------------------
  |  Branch (508:3): [True: 539k, False: 13.9k]
  ------------------
  509|   539k|			return false;
  510|   553k|		}
  511|   553k|	}  // isSSLPort

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

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

_ZN4pcpp8SipLayer9isSipPortEt:
  113|   900k|		{
  114|   900k|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 39.4k, False: 861k]
  |  Branch (114:27): [True: 12.7k, False: 848k]
  ------------------
  115|   900k|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  4.50k|		{
   98|  4.50k|			return OsiModelSesionLayer;
   99|  4.50k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  27.2k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  27.2k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  27.2k|		{
  156|  27.2k|			return ':';
  157|  27.2k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  27.2k|		{
  160|  27.2k|			return true;
  161|  27.2k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  11.0k|		{
  585|  11.0k|			return m_FirstLineEndOffset;
  586|  11.0k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  7.95k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  25.1k|		{
  710|  25.1k|			return m_FirstLineEndOffset;
  711|  25.1k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  19.3k|			{}

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

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

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   322k|		{
   29|   322k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 7.95k, False: 314k]
  |  Branch (29:25): [True: 7.45k, False: 307k]
  ------------------
   30|   322k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|  3.36k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|  11.5k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|  11.5k|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|  2.28k|		{
   41|  2.28k|			return m_DataLen;
   42|  2.28k|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|  2.28k|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|  2.28k|		{
   51|  2.28k|			return OsiModelApplicationLayer;
   52|  2.28k|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|  8.15k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

_ZN4pcpp11SomeIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   85|  51.9k|		    : Layer(data, dataLen, prevLayer, packet, SomeIP)
   86|  51.9k|		{}
_ZNK4pcpp11SomeIpLayer15getSomeIpHeaderEv:
  120|  77.5k|		{
  121|  77.5k|			return reinterpret_cast<someiphdr*>(m_Data);
  122|  77.5k|		}
_ZNK4pcpp11SomeIpLayer12getHeaderLenEv:
  252|  62.2k|		{
  253|  62.2k|			return sizeof(uint32_t) * 2 + getLengthField();
  254|  62.2k|		}
_ZN4pcpp11SomeIpLayer22computeCalculateFieldsEv:
  258|  2.53k|		{}
_ZNK4pcpp11SomeIpLayer16getOsiModelLayerEv:
  268|  10.3k|		{
  269|  10.3k|			return OsiModelApplicationLayer;
  270|  10.3k|		}

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

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

_ZN4pcpp9TLVRecordIhhED2Ev:
   53|  1.24M|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  222|   758k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   48|  5.33k|		{
   49|  5.33k|			m_Data = other.m_Data;
   50|  5.33k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   53|  20.5k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   77|  14.4k|		{
   78|  14.4k|			m_Data = other.m_Data;
   79|  14.4k|			return *this;
   80|  14.4k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  162|  3.04k|		{
  163|  3.04k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 2.97k, False: 68]
  ------------------
  164|  2.97k|				return 0;
  165|       |
  166|     68|			T result;
  167|     68|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|     68|			return result;
  169|  3.04k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   48|   396k|		{
   49|   396k|			m_Data = other.m_Data;
   50|   396k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  195|  7.35k|		{
  196|  7.35k|			return 0;
  197|  7.35k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   77|   912k|		{
   78|   912k|			m_Data = other.m_Data;
   79|   912k|			return *this;
   80|   912k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   58|  2.35M|		{
   59|  2.35M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  2.35M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   67|   166k|		{
   68|   166k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 166k, False: 0]
  ------------------
   69|   166k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 164k, False: 2.07k]
  ------------------
   70|   166k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   58|  34.0k|		{
   59|  34.0k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  34.0k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   40|  1.28M|		{
   41|  1.28M|			assign(recordRawData);
   42|  1.28M|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  222|  17.4k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  211|  17.4k|		{
  212|  17.4k|			m_RecordCount = static_cast<size_t>(-1);
  213|  17.4k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  128|  3.02M|		{
  129|  3.02M|			return (m_Data == nullptr);
  130|  3.02M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  162|  7.52k|		{
  163|  7.52k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 243, False: 7.28k]
  ------------------
  164|    243|				return 0;
  165|       |
  166|  7.28k|			T result;
  167|  7.28k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|  7.28k|			return result;
  169|  7.52k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  298|  12.4k|		{
  299|  12.4k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   294k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 290k, False: 4.53k]
  ------------------
  301|   290k|			{
  302|   290k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 7.89k, False: 282k]
  ------------------
  303|  7.89k|				{
  304|  7.89k|					return curRec;
  305|  7.89k|				}
  306|       |
  307|   282k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|   282k|			}
  309|       |
  310|  4.53k|			curRec.assign(nullptr);
  311|  4.53k|			return curRec;  // for NRVO optimization
  312|  12.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  239|  18.5k|		{
  240|  18.5k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  18.5k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 20, False: 18.5k]
  ------------------
  242|     20|				return resRec;
  243|       |
  244|  18.5k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  18.5k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 290, False: 18.2k]
  ------------------
  247|    290|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  18.5k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 18.2k, False: 290]
  |  Branch (250:29): [True: 0, False: 18.2k]
  |  Branch (250:48): [True: 0, False: 18.2k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  18.5k|			return resRec;
  254|  18.5k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   693k|		{
  265|   693k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   693k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 693k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   693k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 6.88k, False: 686k]
  ------------------
  271|   693k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   693k|			                                  record.getTotalSize()))
  273|  6.88k|				return resRec;
  274|       |
  275|   686k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   686k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 686k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   686k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 686k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   686k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 686k, False: 0]
  |  Branch (285:28): [True: 3.49k, False: 683k]
  ------------------
  286|  3.49k|				resRec.assign(nullptr);
  287|       |
  288|   686k|			return resRec;
  289|   693k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  322|   211k|		{
  323|   211k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 208k, False: 3.10k]
  ------------------
  324|   208k|				return m_RecordCount;
  325|       |
  326|  3.10k|			m_RecordCount = 0;
  327|  3.10k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|   208k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 205k, False: 3.10k]
  ------------------
  329|   205k|			{
  330|   205k|				m_RecordCount++;
  331|   205k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|   205k|			}
  333|       |
  334|  3.10k|			return m_RecordCount;
  335|   211k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  110|   510k|		{
  111|   510k|			if (m_Data == nullptr)
  ------------------
  |  Branch (111:8): [True: 0, False: 510k]
  ------------------
  112|      0|				return 0;
  113|       |
  114|   510k|			return m_Data->recordType;
  115|   510k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  146|  50.6k|		{
  147|  50.6k|			if (!isNull())
  ------------------
  |  Branch (147:8): [True: 50.6k, False: 0]
  ------------------
  148|  50.6k|			{
  149|  50.6k|				delete[] m_Data;
  150|  50.6k|				m_Data = nullptr;
  151|  50.6k|			}
  152|  50.6k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  140|  4.61M|		{
  141|  4.61M|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  4.61M|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   40|  16.6k|		{
   41|  16.6k|			assign(recordRawData);
   42|  16.6k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  222|  3.91k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  211|  3.91k|		{
  212|  3.91k|			m_RecordCount = static_cast<size_t>(-1);
  213|  3.91k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  239|  2.23k|		{
  240|  2.23k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  2.23k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 2.23k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  2.23k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  2.23k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 13, False: 2.21k]
  ------------------
  247|     13|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  2.23k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 2.21k, False: 13]
  |  Branch (250:29): [True: 0, False: 2.21k]
  |  Branch (250:48): [True: 0, False: 2.21k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  2.23k|			return resRec;
  254|  2.23k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   67|  16.6k|		{
   68|  16.6k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 16.6k, False: 0]
  ------------------
   69|  16.6k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 15.7k, False: 922]
  ------------------
   70|  16.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  264|  14.4k|		{
  265|  14.4k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  14.4k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 14.4k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  14.4k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 922, False: 13.5k]
  ------------------
  271|  14.4k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  14.4k|			                                  record.getTotalSize()))
  273|    922|				return resRec;
  274|       |
  275|  13.5k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  13.5k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 13.5k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  13.5k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 13.5k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  13.5k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 13.5k, False: 0]
  |  Branch (285:28): [True: 1.05k, False: 12.4k]
  ------------------
  286|  1.05k|				resRec.assign(nullptr);
  287|       |
  288|  13.5k|			return resRec;
  289|  14.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  298|    739|		{
  299|    739|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  4.52k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 4.03k, False: 494]
  ------------------
  301|  4.03k|			{
  302|  4.03k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 245, False: 3.78k]
  ------------------
  303|    245|				{
  304|    245|					return curRec;
  305|    245|				}
  306|       |
  307|  3.78k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  3.78k|			}
  309|       |
  310|    494|			curRec.assign(nullptr);
  311|    494|			return curRec;  // for NRVO optimization
  312|    739|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  322|  6.82k|		{
  323|  6.82k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 6.07k, False: 752]
  ------------------
  324|  6.07k|				return m_RecordCount;
  325|       |
  326|    752|			m_RecordCount = 0;
  327|    752|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  6.09k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 5.33k, False: 752]
  ------------------
  329|  5.33k|			{
  330|  5.33k|				m_RecordCount++;
  331|  5.33k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  5.33k|			}
  333|       |
  334|    752|			return m_RecordCount;
  335|  6.82k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  128|  40.8k|		{
  129|  40.8k|			return (m_Data == nullptr);
  130|  40.8k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  140|  71.7k|		{
  141|  71.7k|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  71.7k|		}
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEED2Ev:
  222|  14.4k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEEC2Ev:
  211|  14.4k|		{
  212|  14.4k|			m_RecordCount = static_cast<size_t>(-1);
  213|  14.4k|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  222|   817k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  211|   817k|		{
  212|   817k|			m_RecordCount = static_cast<size_t>(-1);
  213|   817k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  222|  2.71k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  211|  1.72k|		{
  212|  1.72k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.72k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  222|  1.72k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  211|  1.70k|		{
  212|  1.70k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.70k|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  222|  1.70k|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  298|   123k|		{
  299|   123k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   151k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 78.7k, False: 72.7k]
  ------------------
  301|  78.7k|			{
  302|  78.7k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 50.6k, False: 28.1k]
  ------------------
  303|  50.6k|				{
  304|  50.6k|					return curRec;
  305|  50.6k|				}
  306|       |
  307|  28.1k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  28.1k|			}
  309|       |
  310|  72.7k|			curRec.assign(nullptr);
  311|  72.7k|			return curRec;  // for NRVO optimization
  312|   123k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  239|   173k|		{
  240|   173k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|   173k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 62.9k, False: 111k]
  ------------------
  242|  62.9k|				return resRec;
  243|       |
  244|   111k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|   111k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 1.84k, False: 109k]
  ------------------
  247|  1.84k|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|   111k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 109k, False: 1.84k]
  |  Branch (250:29): [True: 0, False: 109k]
  |  Branch (250:48): [True: 107, False: 109k]
  ------------------
  251|    107|				resRec.assign(nullptr);
  252|       |
  253|   111k|			return resRec;
  254|   173k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   218k|		{
  265|   218k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   218k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 218k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   218k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 54.0k, False: 164k]
  ------------------
  271|   218k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   218k|			                                  record.getTotalSize()))
  273|  54.0k|				return resRec;
  274|       |
  275|   164k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   164k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 797, False: 163k]
  ------------------
  278|    797|				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: 797, False: 163k]
  ------------------
  282|    797|				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: 163k, False: 797]
  |  Branch (285:28): [True: 3.57k, False: 160k]
  ------------------
  286|  3.57k|				resRec.assign(nullptr);
  287|       |
  288|   164k|			return resRec;
  289|   218k|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  134|   190k|		{
  135|   190k|			return (m_Data != nullptr);
  136|   190k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  343|  50.6k|		{
  344|  50.6k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (344:8): [True: 0, False: 50.6k]
  ------------------
  345|      0|				m_RecordCount += changedBy;
  346|  50.6k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  211|   758k|		{
  212|   758k|			m_RecordCount = static_cast<size_t>(-1);
  213|   758k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  227|   123k|		{
  228|   123k|			m_RecordCount = other.m_RecordCount;
  229|   123k|			return *this;
  230|   123k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  211|  22.8k|		{
  212|  22.8k|			m_RecordCount = static_cast<size_t>(-1);
  213|  22.8k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  222|  22.8k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  211|  2.60k|		{
  212|  2.60k|			m_RecordCount = static_cast<size_t>(-1);
  213|  2.60k|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  222|  2.60k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  211|  2.71k|		{
  212|  2.71k|			m_RecordCount = static_cast<size_t>(-1);
  213|  2.71k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  239|  1.81k|		{
  240|  1.81k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  1.81k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 200, False: 1.61k]
  ------------------
  242|    200|				return resRec;
  243|       |
  244|  1.61k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  1.61k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 24, False: 1.58k]
  ------------------
  247|     24|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  1.61k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 1.58k, False: 24]
  |  Branch (250:29): [True: 0, False: 1.58k]
  |  Branch (250:48): [True: 382, False: 1.20k]
  ------------------
  251|    382|				resRec.assign(nullptr);
  252|       |
  253|  1.61k|			return resRec;
  254|  1.81k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE16getNextTLVRecordERS1_PKhm:
  264|    260|		{
  265|    260|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|    260|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 260]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|    260|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 0, False: 260]
  ------------------
  271|    260|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|    260|			                                  record.getTotalSize()))
  273|      0|				return resRec;
  274|       |
  275|    260|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|    260|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 4, False: 256]
  ------------------
  278|      4|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|    260|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 4, False: 256]
  ------------------
  282|      4|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|    260|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 256, False: 4]
  |  Branch (285:28): [True: 122, False: 134]
  ------------------
  286|    122|				resRec.assign(nullptr);
  287|       |
  288|    260|			return resRec;
  289|    260|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  298|  1.81k|		{
  299|  1.81k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  2.07k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 1.34k, False: 732]
  ------------------
  301|  1.34k|			{
  302|  1.34k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 1.08k, False: 260]
  ------------------
  303|  1.08k|				{
  304|  1.08k|					return curRec;
  305|  1.08k|				}
  306|       |
  307|    260|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|    260|			}
  309|       |
  310|    732|			curRec.assign(nullptr);
  311|    732|			return curRec;  // for NRVO optimization
  312|  1.81k|		}
_ZNK4pcpp9TLVRecordIhhE8getValueEv:
  119|    540|		{
  120|    540|			if (m_Data == nullptr)
  ------------------
  |  Branch (120:8): [True: 0, False: 540]
  ------------------
  121|      0|				return nullptr;
  122|       |
  123|    540|			return m_Data->recordValue;
  124|    540|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  298|  1.66k|		{
  299|  1.66k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  5.27k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 3.74k, False: 1.53k]
  ------------------
  301|  3.74k|			{
  302|  3.74k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 129, False: 3.61k]
  ------------------
  303|    129|				{
  304|    129|					return curRec;
  305|    129|				}
  306|       |
  307|  3.61k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  3.61k|			}
  309|       |
  310|  1.53k|			curRec.assign(nullptr);
  311|  1.53k|			return curRec;  // for NRVO optimization
  312|  1.66k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  239|  2.51k|		{
  240|  2.51k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  2.51k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 32, False: 2.47k]
  ------------------
  242|     32|				return resRec;
  243|       |
  244|  2.47k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  2.47k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 1.14k, False: 1.33k]
  ------------------
  247|  1.14k|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  2.47k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 1.33k, False: 1.14k]
  |  Branch (250:29): [True: 0, False: 1.33k]
  |  Branch (250:48): [True: 102, False: 1.23k]
  ------------------
  251|    102|				resRec.assign(nullptr);
  252|       |
  253|  2.47k|			return resRec;
  254|  2.51k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  264|  5.36k|		{
  265|  5.36k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  5.36k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 5.36k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  5.36k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 144, False: 5.21k]
  ------------------
  271|  5.36k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  5.36k|			                                  record.getTotalSize()))
  273|    144|				return resRec;
  274|       |
  275|  5.21k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  5.21k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 888, False: 4.33k]
  ------------------
  278|    888|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  5.21k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 888, False: 4.33k]
  ------------------
  282|    888|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  5.21k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 4.33k, False: 888]
  |  Branch (285:28): [True: 18, False: 4.31k]
  ------------------
  286|     18|				resRec.assign(nullptr);
  287|       |
  288|  5.21k|			return resRec;
  289|  5.36k|		}

_ZN4pcpp8TcpLayerD2Ev:
  459|   758k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  257|   566k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  258|   566k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  282|   392k|		{
  283|   392k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  284|   392k|			if (data == nullptr)
  ------------------
  |  Branch (284:8): [True: 0, False: 392k]
  ------------------
  285|      0|				return false;
  286|       |
  287|   392k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (287:8): [True: 116k, False: 275k]
  ------------------
  288|   116k|				return false;
  289|       |
  290|   275k|			const auto recordType = getTcpOptionEnumType(data);
  291|   275k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (291:8): [True: 176k, False: 99.7k]
  |  Branch (291:48): [True: 13.8k, False: 85.8k]
  ------------------
  292|   190k|				return true;
  293|       |
  294|  85.8k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  295|   275k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  300|  1.54M|		{
  301|  1.54M|			if (m_Data == nullptr)
  ------------------
  |  Branch (301:8): [True: 0, False: 1.54M]
  ------------------
  302|      0|				return 0;
  303|       |
  304|  1.54M|			const auto recordType = getTcpOptionEnumType(m_Data);
  305|  1.54M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (305:8): [True: 1.05M, False: 486k]
  |  Branch (305:48): [True: 70.5k, False: 415k]
  ------------------
  306|  1.12M|				return sizeof(uint8_t);
  307|       |
  308|   415k|			return static_cast<size_t>(m_Data->recordLen);
  309|  1.54M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  333|  1.81M|		{
  334|  1.81M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (334:8): [True: 0, False: 1.81M]
  ------------------
  335|      0|				return TcpOptionEnumType::Unknown;
  336|       |
  337|  1.81M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  338|  1.81M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  472|  3.58M|		{
  473|  3.58M|			return reinterpret_cast<tcphdr*>(m_Data);
  474|  3.58M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  566|  1.41M|		{
  567|  1.41M|			return getTcpHeader()->dataOffset * 4;
  568|  1.41M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  576|   123k|		{
  577|   123k|			return OsiModelTransportLayer;
  578|   123k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  586|   364k|		{
  587|   364k|			return m_Data + sizeof(tcphdr);
  588|   364k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  597|   638k|	{
  598|   638k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  599|   638k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (599:10): [True: 637k, False: 275]
  |  Branch (599:39): [True: 636k, False: 1.71k]
  ------------------
  600|   636k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (600:13): [True: 635k, False: 979]
  ------------------
  601|   638k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  1.80M|		{
   50|  1.80M|			return m_FieldSize;
   51|  1.80M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|   725k|		{
   71|   725k|			return m_IsEndOfHeaderField;
   72|   725k|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  2.30k|		{
  124|  2.30k|			return m_FieldList;
  125|  2.30k|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   175k|		{
   93|   175k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   175k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   162k|		{
   84|   162k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 6.26k, False: 156k]
  |  Branch (84:29): [True: 6.02k, False: 150k]
  ------------------
   85|   162k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  12.2k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  12.2k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  14.0k|		{
   68|  14.0k|			return sizeof(tpkthdr);
   69|  14.0k|		}
_ZN4pcpp9TpktLayer22computeCalculateFieldsEv:
   73|  1.76k|		{}
_ZNK4pcpp9TpktLayer16getOsiModelLayerEv:
   99|  1.76k|		{
  100|  1.76k|			return OsiModelTransportLayer;
  101|  1.76k|		}
_ZNK4pcpp9TpktLayer13getTpktHeaderEv:
  109|  7.06k|		{
  110|  7.06k|			return reinterpret_cast<tpkthdr*>(m_Data);
  111|  7.06k|		}

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

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

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

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

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

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  55.3k|		{
   69|  55.3k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 825, False: 54.5k]
  |  Branch (69:32): [True: 650, False: 53.8k]
  ------------------
   70|  55.3k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|    572|		{
   33|    572|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|    572|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  1.43k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  1.43k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  1.43k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    286|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    286|		{
  116|    286|			return OsiModelNetworkLayer;
  117|    286|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  162|    225|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  163|    225|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  259|    535|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  260|    535|		{}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  349|    130|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  350|    130|		{}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  416|    540|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  417|    540|		{}

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

_ZN4pcpp10Asn1Record6decodeEPKhmb:
   93|  9.57k|	{
   94|  9.57k|		uint8_t tagLen;
   95|  9.57k|		auto decodedRecord = decodeTagAndCreateRecord(data, dataLen, tagLen);
   96|       |
   97|  9.57k|		uint8_t lengthLen;
   98|  9.57k|		lengthLen = decodedRecord->decodeLength(data + tagLen, dataLen - tagLen);
   99|       |
  100|  9.57k|		decodedRecord->m_TotalLength = tagLen + lengthLen + decodedRecord->m_ValueLength;
  101|  9.57k|		if (decodedRecord->m_TotalLength < decodedRecord->m_ValueLength ||  // check for overflow
  ------------------
  |  Branch (101:7): [True: 656, False: 8.91k]
  ------------------
  102|  8.91k|		    decodedRecord->m_TotalLength > dataLen)
  ------------------
  |  Branch (102:7): [True: 81, False: 8.83k]
  ------------------
  103|     81|		{
  104|     81|			throw std::invalid_argument("Cannot decode ASN.1 record, data doesn't contain the entire record");
  105|     81|		}
  106|       |
  107|  9.49k|		uint8_t const* startOfData = data + tagLen + lengthLen;
  108|  9.49k|		internal::Asn1LoadPolicy policy = lazy ? internal::Asn1LoadPolicy::Lazy : internal::Asn1LoadPolicy::Eager;
  ------------------
  |  Branch (108:37): [True: 885, False: 8.60k]
  ------------------
  109|  9.49k|		decodedRecord->setEncodedValue(startOfData, policy);
  110|       |
  111|  9.49k|		return decodedRecord;
  112|  9.57k|	}
_ZN4pcpp10Asn1Record24decodeTagAndCreateRecordEPKhmRh:
  207|  9.57k|	{
  208|  9.57k|		if (dataLen < 1)
  ------------------
  |  Branch (208:7): [True: 0, False: 9.57k]
  ------------------
  209|      0|		{
  210|      0|			throw std::invalid_argument("Cannot decode ASN.1 record tag");
  211|      0|		}
  212|       |
  213|  9.57k|		tagLen = 1;
  214|       |
  215|  9.57k|		Asn1TagClass tagClass = Asn1TagClass::Universal;
  216|       |
  217|       |		// Check first 2 bits
  218|  9.57k|		auto tagClassBits = data[0] & 0xc0;
  219|  9.57k|		if (tagClassBits == 0)
  ------------------
  |  Branch (219:7): [True: 5.44k, False: 4.13k]
  ------------------
  220|  5.44k|		{
  221|  5.44k|			tagClass = Asn1TagClass::Universal;
  222|  5.44k|		}
  223|  4.13k|		else if ((tagClassBits & 0xc0) == 0xc0)
  ------------------
  |  Branch (223:12): [True: 690, False: 3.44k]
  ------------------
  224|    690|		{
  225|    690|			tagClass = Asn1TagClass::Private;
  226|    690|		}
  227|  3.44k|		else if ((tagClassBits & 0x80) == 0x80)
  ------------------
  |  Branch (227:12): [True: 3.29k, False: 147]
  ------------------
  228|  3.29k|		{
  229|  3.29k|			tagClass = Asn1TagClass::ContextSpecific;
  230|  3.29k|		}
  231|    147|		else if ((tagClassBits & 0x40) == 0x40)
  ------------------
  |  Branch (231:12): [True: 147, False: 0]
  ------------------
  232|    147|		{
  233|    147|			tagClass = Asn1TagClass::Application;
  234|    147|		}
  235|       |
  236|       |		// Check bit 6
  237|  9.57k|		auto tagTypeBits = data[0] & 0x20;
  238|  9.57k|		bool isConstructed = (tagTypeBits != 0);
  239|       |
  240|       |		// Check last 5 bits
  241|  9.57k|		auto tagType = data[0] & 0x1f;
  242|  9.57k|		if (tagType == 0x1f)
  ------------------
  |  Branch (242:7): [True: 11, False: 9.56k]
  ------------------
  243|     11|		{
  244|     11|			if (dataLen < 2)
  ------------------
  |  Branch (244:8): [True: 0, False: 11]
  ------------------
  245|      0|			{
  246|      0|				throw std::invalid_argument("Cannot decode ASN.1 record tag");
  247|      0|			}
  248|       |
  249|     11|			if ((data[1] & 0x80) != 0)
  ------------------
  |  Branch (249:8): [True: 6, False: 5]
  ------------------
  250|      6|			{
  251|      6|				throw std::invalid_argument("ASN.1 tags with value larger than 127 are not supported");
  252|      6|			}
  253|       |
  254|      5|			tagType = data[1] & 0x7f;
  255|      5|			tagLen = 2;
  256|      5|		}
  257|       |
  258|  9.56k|		std::unique_ptr<Asn1Record> newRecord;
  259|       |
  260|  9.56k|		if (isConstructed)
  ------------------
  |  Branch (260:7): [True: 4.85k, False: 4.71k]
  ------------------
  261|  4.85k|		{
  262|  4.85k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (262:8): [True: 1.51k, False: 3.33k]
  ------------------
  263|  1.51k|			{
  264|  1.51k|				switch (static_cast<Asn1UniversalTagType>(tagType))
  265|  1.51k|				{
  266|  1.41k|				case Asn1UniversalTagType::Sequence:
  ------------------
  |  Branch (266:5): [True: 1.41k, False: 99]
  ------------------
  267|  1.41k|				{
  268|  1.41k|					newRecord.reset(new Asn1SequenceRecord());
  269|  1.41k|					break;
  270|      0|				}
  271|     65|				case Asn1UniversalTagType::Set:
  ------------------
  |  Branch (271:5): [True: 65, False: 1.44k]
  ------------------
  272|     65|				{
  273|     65|					newRecord.reset(new Asn1SetRecord());
  274|     65|					break;
  275|      0|				}
  276|     34|				default:
  ------------------
  |  Branch (276:5): [True: 34, False: 1.47k]
  ------------------
  277|     34|				{
  278|     34|					newRecord.reset(new Asn1ConstructedRecord());
  279|     34|				}
  280|  1.51k|				}
  281|  1.51k|			}
  282|  3.33k|			else
  283|  3.33k|			{
  284|  3.33k|				newRecord.reset(new Asn1ConstructedRecord());
  285|  3.33k|			}
  286|  4.85k|		}
  287|  4.71k|		else
  288|  4.71k|		{
  289|  4.71k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (289:8): [True: 3.93k, False: 786]
  ------------------
  290|  3.93k|			{
  291|  3.93k|				auto asn1UniversalTagType = static_cast<Asn1UniversalTagType>(tagType);
  292|  3.93k|				switch (asn1UniversalTagType)
  293|  3.93k|				{
  294|    913|				case Asn1UniversalTagType::Integer:
  ------------------
  |  Branch (294:5): [True: 913, False: 3.02k]
  ------------------
  295|    913|				{
  296|    913|					newRecord.reset(new Asn1IntegerRecord());
  297|    913|					break;
  298|      0|				}
  299|    699|				case Asn1UniversalTagType::Enumerated:
  ------------------
  |  Branch (299:5): [True: 699, False: 3.23k]
  ------------------
  300|    699|				{
  301|    699|					newRecord.reset(new Asn1EnumeratedRecord());
  302|    699|					break;
  303|      0|				}
  304|    840|				case Asn1UniversalTagType::OctetString:
  ------------------
  |  Branch (304:5): [True: 840, False: 3.09k]
  ------------------
  305|    840|				{
  306|    840|					newRecord.reset(new Asn1OctetStringRecord());
  307|    840|					break;
  308|      0|				}
  309|      5|				case Asn1UniversalTagType::UTF8String:
  ------------------
  |  Branch (309:5): [True: 5, False: 3.92k]
  ------------------
  310|      5|				{
  311|      5|					newRecord.reset(new Asn1UTF8StringRecord());
  312|      5|					break;
  313|      0|				}
  314|      5|				case Asn1UniversalTagType::PrintableString:
  ------------------
  |  Branch (314:5): [True: 5, False: 3.92k]
  ------------------
  315|      5|				{
  316|      5|					newRecord.reset(new Asn1PrintableStringRecord());
  317|      5|					break;
  318|      0|				}
  319|      0|				case Asn1UniversalTagType::IA5String:
  ------------------
  |  Branch (319:5): [True: 0, False: 3.93k]
  ------------------
  320|      0|				{
  321|      0|					newRecord.reset(new Asn1IA5StringRecord());
  322|      0|					break;
  323|      0|				}
  324|     42|				case Asn1UniversalTagType::Boolean:
  ------------------
  |  Branch (324:5): [True: 42, False: 3.89k]
  ------------------
  325|     42|				{
  326|     42|					newRecord.reset(new Asn1BooleanRecord());
  327|     42|					break;
  328|      0|				}
  329|     15|				case Asn1UniversalTagType::BitString:
  ------------------
  |  Branch (329:5): [True: 15, False: 3.91k]
  ------------------
  330|     15|				{
  331|     15|					newRecord.reset(new Asn1BitStringRecord());
  332|     15|					break;
  333|      0|				}
  334|      6|				case Asn1UniversalTagType::Null:
  ------------------
  |  Branch (334:5): [True: 6, False: 3.92k]
  ------------------
  335|      6|				{
  336|      6|					newRecord.reset(new Asn1NullRecord());
  337|      6|					break;
  338|      0|				}
  339|    574|				case Asn1UniversalTagType::ObjectIdentifier:
  ------------------
  |  Branch (339:5): [True: 574, False: 3.35k]
  ------------------
  340|    574|				{
  341|    574|					newRecord.reset(new Asn1ObjectIdentifierRecord());
  342|    574|					break;
  343|      0|				}
  344|      5|				case Asn1UniversalTagType::UTCTime:
  ------------------
  |  Branch (344:5): [True: 5, False: 3.92k]
  ------------------
  345|      5|				{
  346|      5|					newRecord.reset(new Asn1UtcTimeRecord());
  347|      5|					break;
  348|      0|				}
  349|      0|				case Asn1UniversalTagType::GeneralizedTime:
  ------------------
  |  Branch (349:5): [True: 0, False: 3.93k]
  ------------------
  350|      0|				{
  351|      0|					newRecord.reset(new Asn1GeneralizedTimeRecord());
  352|      0|					break;
  353|      0|				}
  354|    829|				default:
  ------------------
  |  Branch (354:5): [True: 829, False: 3.10k]
  ------------------
  355|    829|				{
  356|    829|					newRecord.reset(new Asn1GenericRecord());
  357|    829|				}
  358|  3.93k|				}
  359|  3.93k|			}
  360|    786|			else
  361|    786|			{
  362|    786|				newRecord.reset(new Asn1GenericRecord());
  363|    786|			}
  364|  4.71k|		}
  365|       |
  366|  9.56k|		newRecord->m_TagClass = tagClass;
  367|  9.56k|		newRecord->m_IsConstructed = isConstructed;
  368|  9.56k|		newRecord->m_TagType = tagType;
  369|       |
  370|  9.56k|		return newRecord;
  371|  9.56k|	}
_ZN4pcpp10Asn1Record12decodeLengthEPKhm:
  374|  9.56k|	{
  375|  9.56k|		if (dataLen < 1)
  ------------------
  |  Branch (375:7): [True: 579, False: 8.99k]
  ------------------
  376|    579|		{
  377|    579|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  378|    579|		}
  379|       |
  380|       |		// Check 8th bit
  381|  8.99k|		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|  8.99k|		if (lengthForm == 0)
  ------------------
  |  Branch (386:7): [True: 5.58k, False: 3.40k]
  ------------------
  387|  5.58k|		{
  388|  5.58k|			m_ValueLength = data[0];
  389|  5.58k|			return 1;
  390|  5.58k|		}
  391|       |
  392|  3.40k|		uint8_t actualLengthBytes = data[0] & 0x7F;
  393|  3.40k|		const uint8_t* actualLengthData = data + 1;
  394|       |
  395|  3.40k|		if (dataLen < static_cast<size_t>(actualLengthBytes) + 1)
  ------------------
  |  Branch (395:7): [True: 31, False: 3.37k]
  ------------------
  396|     31|		{
  397|     31|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  398|     31|		}
  399|       |
  400|  9.91k|		for (int i = 0; i < actualLengthBytes; i++)
  ------------------
  |  Branch (400:19): [True: 6.58k, False: 3.33k]
  ------------------
  401|  6.58k|		{
  402|  6.58k|			size_t partialValueLength = m_ValueLength << 8;
  403|  6.58k|			if (partialValueLength < m_ValueLength)  // check for overflow
  ------------------
  |  Branch (403:8): [True: 40, False: 6.54k]
  ------------------
  404|     40|			{
  405|     40|				throw std::invalid_argument("Cannot decode ASN.1 record length");
  406|     40|			}
  407|       |
  408|  6.54k|			m_ValueLength = partialValueLength | actualLengthData[i];
  409|  6.54k|		}
  410|       |
  411|  3.33k|		return 1 + actualLengthBytes;
  412|  3.37k|	}
_ZNK4pcpp10Asn1Record19decodeValueIfNeededEv:
  415|  8.91k|	{
  416|       |		// TODO: This is not thread-safe and can cause issues in a multiple reader scenario.
  417|  8.91k|		if (m_EncodedValue != nullptr)
  ------------------
  |  Branch (417:7): [True: 8.73k, False: 188]
  ------------------
  418|  8.73k|		{
  419|  8.73k|			decodeValue(m_EncodedValue);
  420|  8.73k|			m_EncodedValue = nullptr;  // Clear the encoded value after decoding
  421|  8.73k|		}
  422|  8.91k|	}
_ZN4pcpp10Asn1Record15setEncodedValueEPKhNS_8internal14Asn1LoadPolicyE:
  462|  8.83k|	{
  463|  8.83k|		m_EncodedValue = dataSource;
  464|       |
  465|  8.83k|		if (loadPolicy == internal::Asn1LoadPolicy::Eager)
  ------------------
  |  Branch (465:7): [True: 7.95k, False: 885]
  ------------------
  466|  7.95k|		{
  467|  7.95k|			decodeValueIfNeeded();
  468|  7.95k|		}
  469|  8.83k|	}
_ZNK4pcpp17Asn1GenericRecord11decodeValueEPKh:
  484|  1.49k|	{
  485|  1.49k|		m_Value = std::make_unique<uint8_t[]>(m_ValueLength);
  486|  1.49k|		std::memcpy(m_Value.get(), data, m_ValueLength);
  487|  1.49k|	}
_ZNK4pcpp21Asn1ConstructedRecord11decodeValueEPKh:
  519|  4.16k|	{
  520|  4.16k|		if (!(data || m_ValueLength))
  ------------------
  |  Branch (520:9): [True: 4.16k, False: 0]
  |  Branch (520:17): [True: 0, False: 0]
  ------------------
  521|      0|		{
  522|      0|			return;
  523|      0|		}
  524|       |
  525|  4.16k|		auto value = data;
  526|  4.16k|		auto valueLen = m_ValueLength;
  527|       |
  528|  12.7k|		while (valueLen > 0)
  ------------------
  |  Branch (528:10): [True: 8.61k, False: 4.16k]
  ------------------
  529|  8.61k|		{
  530|  8.61k|			auto subRecord = Asn1Record::decode(value, valueLen, LazySubRecordDecoding);
  531|  8.61k|			value += subRecord->getTotalLength();
  532|  8.61k|			valueLen -= subRecord->getTotalLength();
  533|       |
  534|  8.61k|			m_SubRecords.pushBack(std::move(subRecord));
  535|  8.61k|		}
  536|  4.16k|	}
_ZN4pcpp19Asn1PrimitiveRecordC2ENS_20Asn1UniversalTagTypeE:
  583|    856|	Asn1PrimitiveRecord::Asn1PrimitiveRecord(Asn1UniversalTagType tagType) : Asn1Record()
  584|    856|	{
  585|    856|		m_TagType = static_cast<uint8_t>(tagType);
  586|    856|		m_TagClass = Asn1TagClass::Universal;
  587|    856|		m_IsConstructed = false;
  588|    856|	}
_ZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  601|  1.60k|	{
  602|  1.60k|		std::string valueStr = value;
  603|       |
  604|       |		// Optional 0x or 0X prefix
  605|  1.60k|		if (value.size() >= 2 && value[0] == '0' && (value[1] == 'x' || value[1] == 'X'))
  ------------------
  |  Branch (605:7): [True: 1.60k, False: 0]
  |  Branch (605:28): [True: 854, False: 753]
  |  Branch (605:48): [True: 0, False: 854]
  |  Branch (605:67): [True: 0, False: 854]
  ------------------
  606|      0|		{
  607|      0|			valueStr = value.substr(2);
  608|      0|		}
  609|       |
  610|  1.60k|		if (valueStr.empty())
  ------------------
  |  Branch (610:7): [True: 0, False: 1.60k]
  ------------------
  611|      0|		{
  612|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  613|      0|		}
  614|       |
  615|  1.60k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
  ------------------
  |  Branch (615:7): [True: 0, False: 1.60k]
  ------------------
  616|      0|		{
  617|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  618|      0|		}
  619|       |
  620|  1.60k|		return valueStr;
  621|  1.60k|	}
_ZN4pcpp17Asn1IntegerRecord6BigIntaSERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  624|  1.60k|	{
  625|  1.60k|		m_Value = initFromString(value);
  626|  1.60k|		return *this;
  627|  1.60k|	}
_ZNK4pcpp17Asn1IntegerRecord11decodeValueEPKh:
  692|  1.60k|	{
  693|  1.60k|		m_Value = pcpp::byteArrayToHexString(data, m_ValueLength);
  694|  1.60k|	}
_ZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKh:
  721|    834|	{
  722|    834|		auto value = reinterpret_cast<char const*>(data);
  723|       |
  724|    834|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });
  725|       |
  726|    834|		if (m_IsPrintable)
  ------------------
  |  Branch (726:7): [True: 136, False: 698]
  ------------------
  727|    136|		{
  728|    136|			Asn1StringRecord::decodeValue(data);
  729|    136|		}
  730|    698|		else
  731|    698|		{
  732|    698|			m_Value = byteArrayToHexString(data, m_ValueLength);
  733|    698|		}
  734|    834|	}
_ZNK4pcpp17Asn1BooleanRecord11decodeValueEPKh:
  761|     42|	{
  762|     42|		m_Value = data[0] != 0;
  763|     42|	}
_ZN4pcpp14Asn1NullRecordC2Ev:
  776|      6|	Asn1NullRecord::Asn1NullRecord() : Asn1PrimitiveRecord(Asn1UniversalTagType::Null)
  777|      6|	{
  778|      6|		m_ValueLength = 0;
  779|      6|		m_TotalLength = 2;
  780|      6|	}
_ZN4pcpp20Asn1ObjectIdentifierC2EPKhm:
  783|    574|	{
  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|    574|		if (!data || dataLen == 0)
  ------------------
  |  Branch (787:7): [True: 0, False: 574]
  |  Branch (787:16): [True: 0, False: 574]
  ------------------
  788|      0|		{
  789|      0|			throw std::invalid_argument("Malformed OID: Not enough bytes for the first component");
  790|      0|		}
  791|       |
  792|    574|		size_t currentByteIndex = 0;
  793|    574|		std::vector<uint32_t> components;
  794|       |
  795|    574|		uint8_t firstByte = data[currentByteIndex++];
  796|       |		// Decode the first byte: first_component * 40 + second_component
  797|    574|		components.push_back(static_cast<uint32_t>(firstByte / 40));
  798|    574|		components.push_back(static_cast<uint32_t>(firstByte % 40));
  799|       |
  800|    574|		uint32_t currentComponentValue = 0;
  801|    574|		bool componentStarted = false;
  802|       |
  803|       |		// Process remaining bytes using base-128 encoding
  804|  5.16k|		while (currentByteIndex < dataLen)
  ------------------
  |  Branch (804:10): [True: 4.59k, False: 574]
  ------------------
  805|  4.59k|		{
  806|  4.59k|			uint8_t byte = data[currentByteIndex++];
  807|       |
  808|       |			// Shift previous bits left by 7 and append lower 7 bits
  809|  4.59k|			currentComponentValue = (currentComponentValue << 7) | (byte & 0x7f);
  810|  4.59k|			componentStarted = true;
  811|       |
  812|       |			// If the MSB is 0, this is the final byte of the current value
  813|  4.59k|			if ((byte & 0x80) == 0)
  ------------------
  |  Branch (813:8): [True: 2.87k, False: 1.72k]
  ------------------
  814|  2.87k|			{
  815|  2.87k|				components.push_back(currentComponentValue);
  816|  2.87k|				currentComponentValue = 0;
  817|  2.87k|				componentStarted = false;
  818|  2.87k|			}
  819|  4.59k|		}
  820|       |
  821|    574|		if (componentStarted)
  ------------------
  |  Branch (821:7): [True: 0, False: 574]
  ------------------
  822|      0|		{
  823|      0|			throw std::invalid_argument("Malformed OID: Incomplete component at end of data");
  824|      0|		}
  825|       |
  826|    574|		m_Components = components;
  827|    574|	}
_ZNK4pcpp26Asn1ObjectIdentifierRecord11decodeValueEPKh:
  950|    574|	{
  951|    574|		m_Value = Asn1ObjectIdentifier(data, m_ValueLength);
  952|    574|	}
_ZN4pcpp19Asn1BitStringRecord6BitSetC2EPKhm:
 1228|     15|	Asn1BitStringRecord::BitSet::BitSet(const uint8_t* data, size_t numBits) : m_NumBits(numBits)
 1229|     15|	{
 1230|     15|		if (!data || !numBits)
  ------------------
  |  Branch (1230:7): [True: 0, False: 15]
  |  Branch (1230:16): [True: 0, False: 15]
  ------------------
 1231|      0|		{
 1232|      0|			throw std::invalid_argument("Provided data is null or num of bits is 0");
 1233|      0|		}
 1234|       |
 1235|     15|		size_t requiredBytes = (m_NumBits + 7) / 8;
 1236|     15|		m_Data.resize(requiredBytes);
 1237|     15|		std::copy_n(data, requiredBytes, m_Data.begin());
 1238|     15|	}
_ZNK4pcpp19Asn1BitStringRecord11decodeValueEPKh:
 1284|     15|	{
 1285|     15|		auto numBits = (m_ValueLength - 1) * 8 - static_cast<size_t>(data[0]);
 1286|     15|		m_Value = BitSet(data + 1, numBits);
 1287|     15|	}
Asn1Codec.cpp:_ZZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENK3$_0clEc:
  615|  5.85k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
Asn1Codec.cpp:_ZZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKhENK3$_0clEc:
  724|  1.77k|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });

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

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

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

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   45|  17.4k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   46|  17.4k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   74|  3.10k|	{
   75|  3.10k|		dhcp_header* hdr = getDhcpHeader();
   76|  3.10k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (76:7): [True: 3.10k, False: 0]
  |  Branch (76:25): [True: 3.05k, False: 51]
  |  Branch (76:51): [True: 2.24k, False: 812]
  ------------------
   77|  2.24k|			return MacAddress(hdr->clientHardwareAddress);
   78|       |
   79|    863|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  425|    863|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    863|	do                                                                                                                 \
  |  |  |  |  413|    863|	{                                                                                                                  \
  |  |  |  |  414|    863|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    863|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    863|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 863]
  |  |  |  |  ------------------
  |  |  |  |  416|    863|		{                                                                                                              \
  |  |  |  |  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|    863|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 863]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|       |
   81|    863|		return MacAddress::Zero;
   82|  3.10k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   93|  3.10k|	{
   94|  3.10k|		dhcp_header* hdr = getDhcpHeader();
   95|       |
   96|  3.10k|		hdr->magicNumber = DHCP_MAGIC_NUMBER;
  ------------------
  |  |    9|  3.10k|#define DHCP_MAGIC_NUMBER 0x63538263
  ------------------
   97|       |
   98|  3.10k|		DhcpMessageType msgType = getMessageType();
   99|  3.10k|		switch (msgType)
  100|  3.10k|		{
  101|  1.48k|		case DHCP_DISCOVER:
  ------------------
  |  Branch (101:3): [True: 1.48k, False: 1.62k]
  ------------------
  102|  1.76k|		case DHCP_REQUEST:
  ------------------
  |  Branch (102:3): [True: 275, False: 2.83k]
  ------------------
  103|  1.76k|		case DHCP_DECLINE:
  ------------------
  |  Branch (103:3): [True: 0, False: 3.10k]
  ------------------
  104|  1.76k|		case DHCP_RELEASE:
  ------------------
  |  Branch (104:3): [True: 0, False: 3.10k]
  ------------------
  105|  1.77k|		case DHCP_INFORM:
  ------------------
  |  Branch (105:3): [True: 9, False: 3.09k]
  ------------------
  106|  2.47k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (106:3): [True: 700, False: 2.40k]
  ------------------
  107|  2.47k|			hdr->opCode = DHCP_BOOTREQUEST;
  108|  2.47k|			break;
  109|    244|		case DHCP_OFFER:
  ------------------
  |  Branch (109:3): [True: 244, False: 2.86k]
  ------------------
  110|    325|		case DHCP_ACK:
  ------------------
  |  Branch (110:3): [True: 81, False: 3.02k]
  ------------------
  111|    333|		case DHCP_NAK:
  ------------------
  |  Branch (111:3): [True: 8, False: 3.10k]
  ------------------
  112|    333|			hdr->opCode = DHCP_BOOTREPLY;
  113|    333|			break;
  114|    305|		default:
  ------------------
  |  Branch (114:3): [True: 305, False: 2.80k]
  ------------------
  115|    305|			break;
  116|  3.10k|		}
  117|       |
  118|  3.10k|		hdr->hardwareType = 1;           // Ethernet
  119|  3.10k|		hdr->hardwareAddressLength = 6;  // MAC address length
  120|  3.10k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  123|  6.21k|	{
  124|  6.21k|		std::string msgType = "Unknown";
  125|  6.21k|		switch (getMessageType())
  126|  6.21k|		{
  127|  2.97k|		case DHCP_DISCOVER:
  ------------------
  |  Branch (127:3): [True: 2.97k, False: 3.24k]
  ------------------
  128|  2.97k|		{
  129|  2.97k|			msgType = "Discover";
  130|  2.97k|			break;
  131|      0|		}
  132|    488|		case DHCP_OFFER:
  ------------------
  |  Branch (132:3): [True: 488, False: 5.72k]
  ------------------
  133|    488|		{
  134|    488|			msgType = "Offer";
  135|    488|			break;
  136|      0|		}
  137|    550|		case DHCP_REQUEST:
  ------------------
  |  Branch (137:3): [True: 550, False: 5.66k]
  ------------------
  138|    550|		{
  139|    550|			msgType = "Request";
  140|    550|			break;
  141|      0|		}
  142|      0|		case DHCP_DECLINE:
  ------------------
  |  Branch (142:3): [True: 0, False: 6.21k]
  ------------------
  143|      0|		{
  144|      0|			msgType = "Decline";
  145|      0|			break;
  146|      0|		}
  147|    162|		case DHCP_ACK:
  ------------------
  |  Branch (147:3): [True: 162, False: 6.05k]
  ------------------
  148|    162|		{
  149|    162|			msgType = "Acknowledge";
  150|    162|			break;
  151|      0|		}
  152|     16|		case DHCP_NAK:
  ------------------
  |  Branch (152:3): [True: 16, False: 6.20k]
  ------------------
  153|     16|		{
  154|     16|			msgType = "Negative Acknowledge";
  155|     16|			break;
  156|      0|		}
  157|      0|		case DHCP_RELEASE:
  ------------------
  |  Branch (157:3): [True: 0, False: 6.21k]
  ------------------
  158|      0|		{
  159|      0|			msgType = "Release";
  160|      0|			break;
  161|      0|		}
  162|     18|		case DHCP_INFORM:
  ------------------
  |  Branch (162:3): [True: 18, False: 6.19k]
  ------------------
  163|     18|		{
  164|     18|			msgType = "Inform";
  165|     18|			break;
  166|      0|		}
  167|  2.01k|		default:
  ------------------
  |  Branch (167:3): [True: 2.01k, False: 4.20k]
  ------------------
  168|  2.01k|			break;
  169|  6.21k|		}
  170|       |
  171|  6.21k|		return "DHCP layer (" + msgType + ")";
  172|  6.21k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  175|  9.32k|	{
  176|  9.32k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  177|  9.32k|		if (opt.isNull())
  ------------------
  |  Branch (177:7): [True: 1.79k, False: 7.52k]
  ------------------
  178|  1.79k|			return DHCP_UNKNOWN_MSG_TYPE;
  179|       |
  180|  7.52k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  181|  9.32k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  201|  12.4k|	{
  202|  12.4k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  203|  12.4k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  206|  3.04k|	{
  207|  3.04k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  208|  3.04k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  211|   205k|	{
  212|   205k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  213|   205k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  216|   211k|	{
  217|   211k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  218|   211k|	}

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

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

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

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

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

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

_ZN4pcpp8EthLayer14parseNextLayerEv:
   29|   961k|	{
   30|   961k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (30:7): [True: 267, False: 961k]
  ------------------
   31|    267|			return;
   32|       |
   33|   961k|		ether_header* hdr = getEthHeader();
   34|   961k|		uint8_t* payload = m_Data + sizeof(ether_header);
   35|   961k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   36|       |
   37|   961k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (37:11): [True: 959k, False: 2.62k]
  ------------------
   38|   961k|		{
   39|   710k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|   710k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (39:3): [True: 710k, False: 251k]
  ------------------
   40|   710k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   41|   710k|			break;
   42|   191k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|   191k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (42:3): [True: 191k, False: 769k]
  ------------------
   43|   191k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   44|   191k|			break;
   45|  11.6k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  11.6k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (45:3): [True: 11.6k, False: 949k]
  ------------------
   46|  11.6k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   47|  11.6k|			break;
   48|  27.7k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  27.7k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (48:3): [True: 27.7k, False: 933k]
  ------------------
   49|  37.5k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  37.5k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (49:3): [True: 9.82k, False: 951k]
  ------------------
   50|  37.5k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   51|  37.5k|			break;
   52|  3.71k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|  3.71k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (52:3): [True: 3.71k, False: 957k]
  ------------------
   53|  3.71k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   54|  3.71k|			break;
   55|  1.36k|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|  1.36k|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (55:3): [True: 1.36k, False: 960k]
  ------------------
   56|  1.36k|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   57|  1.36k|			break;
   58|  2.27k|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|  2.27k|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (58:3): [True: 2.27k, False: 959k]
  ------------------
   59|  2.27k|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   60|  2.27k|			break;
   61|    348|		case PCPP_ETHERTYPE_WAKE_ON_LAN:
  ------------------
  |  |   63|    348|#define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
  ------------------
  |  Branch (61:3): [True: 348, False: 961k]
  ------------------
   62|    348|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   63|    348|			break;
   64|   961k|		}
   65|       |
   66|       |		// If no next layer was constructed, assume it's a payload layer
   67|   961k|		if (!hasNextLayer())
  ------------------
  |  Branch (67:7): [True: 2.62k, False: 959k]
  ------------------
   68|  2.62k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   69|   961k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   72|   187k|	{
   73|   187k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (73:7): [True: 130, False: 186k]
  ------------------
   74|    130|			return;
   75|       |
   76|   186k|		switch (m_NextLayer->getProtocol())
   77|   186k|		{
   78|   137k|		case IPv4:
  ------------------
  |  Branch (78:3): [True: 137k, False: 49.7k]
  ------------------
   79|   137k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   80|   137k|			break;
   81|  38.8k|		case IPv6:
  ------------------
  |  Branch (81:3): [True: 38.8k, False: 148k]
  ------------------
   82|  38.8k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   83|  38.8k|			break;
   84|  3.17k|		case ARP:
  ------------------
  |  Branch (84:3): [True: 3.17k, False: 183k]
  ------------------
   85|  3.17k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   86|  3.17k|			break;
   87|  5.24k|		case VLAN:
  ------------------
  |  Branch (87:3): [True: 5.24k, False: 181k]
  ------------------
   88|  5.24k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   89|  5.24k|			break;
   90|  2.53k|		default:
  ------------------
  |  Branch (90:3): [True: 2.53k, False: 184k]
  ------------------
   91|  2.53k|			return;
   92|   186k|		}
   93|   186k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   96|   374k|	{
   97|   374k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   98|   374k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  101|   963k|	{
  102|   963k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (102:7): [True: 963k, False: 58]
  ------------------
  103|   963k|		{
  104|       |			// Ethertypes: These are 16-bit identifiers appearing as the initial
  105|       |			// two octets after the MAC destination and source (or after a
  106|       |			// tag) which, when considered as an unsigned integer, are equal
  107|       |			// to or larger than 0x0600.
  108|       |			//
  109|       |			// From: https://tools.ietf.org/html/rfc5342#section-2.3.2.1
  110|       |			// More: IEEE Std 802.3 Clause 3.2.6
  111|   963k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  112|   963k|		}
  113|     58|		else
  114|     58|		{
  115|     58|			return false;
  116|     58|		}
  117|   963k|	}

_ZNK4pcpp15FtpRequestLayer16getCommandStringEv:
   28|  2.21k|	{
   29|  2.21k|		return getCommandInternal();
   30|  2.21k|	}
_ZNK4pcpp15FtpRequestLayer16getCommandOptionEb:
   38|  2.21k|	{
   39|  2.21k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (39:7): [True: 1.10k, False: 1.10k]
  ------------------
   40|  1.10k|		{
   41|  1.10k|			std::stringstream ss;
   42|  1.10k|			std::string field = getCommandOptionInternal();
   43|   520k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (43:25): [True: 518k, False: 1.10k]
  ------------------
   44|   518k|			{
   45|   518k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (45:9): [True: 517k, False: 1.16k]
  |  Branch (45:42): [True: 203k, False: 314k]
  ------------------
   46|   203k|					ss << field.c_str()[idx];
   47|   518k|			}
   48|  1.10k|			return ss.str();
   49|  1.10k|		}
   50|  1.10k|		return getCommandOptionInternal();
   51|  2.21k|	}
_ZNK4pcpp15FtpRequestLayer8toStringEv:
  217|  2.21k|	{
  218|  2.21k|		return "FTP Request: " + getCommandString();
  219|  2.21k|	}
_ZNK4pcpp16FtpResponseLayer13getStatusCodeEv:
  230|  2.08k|	{
  231|  2.08k|		return static_cast<FtpStatusCode>(atoi(getCommandInternal().c_str()));
  232|  2.08k|	}
_ZNK4pcpp16FtpResponseLayer19getStatusCodeStringEv:
  235|  4.16k|	{
  236|  4.16k|		return getCommandInternal();
  237|  4.16k|	}
_ZNK4pcpp16FtpResponseLayer15getStatusOptionEb:
  245|  4.16k|	{
  246|  4.16k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (246:7): [True: 2.08k, False: 2.08k]
  ------------------
  247|  2.08k|		{
  248|  2.08k|			std::stringstream ss;
  249|  2.08k|			std::string field = getCommandOptionInternal();
  250|   606k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (250:25): [True: 604k, False: 2.08k]
  ------------------
  251|   604k|			{
  252|   604k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (252:9): [True: 602k, False: 1.74k]
  |  Branch (252:42): [True: 243k, False: 359k]
  ------------------
  253|   243k|					ss << field.c_str()[idx];
  254|   604k|			}
  255|  2.08k|			return ss.str();
  256|  2.08k|		}
  257|  2.08k|		return getCommandOptionInternal();
  258|  4.16k|	}
_ZNK4pcpp16FtpResponseLayer8toStringEv:
  382|  4.16k|	{
  383|  4.16k|		return "FTP Response: " + getStatusCodeString();
  384|  4.16k|	}
_ZNK4pcpp12FtpDataLayer8toStringEv:
  387|    502|	{
  388|    502|		return "FTP Data";
  389|    502|	}

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|  37.1k|	{
   25|  37.1k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 0, False: 37.1k]
  ------------------
   26|      0|			return UnknownProtocol;
   27|       |
   28|  37.1k|		uint8_t version = *(greData + 1);
   29|  37.1k|		version &= 0x07;
   30|  37.1k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 16.6k, False: 20.4k]
  ------------------
   31|  16.6k|			return GREv0;
   32|  20.4k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 20.3k, False: 166]
  ------------------
   33|  20.3k|			return GREv1;
   34|    166|		else
   35|    166|			return UnknownProtocol;
   36|  37.1k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  17.1k|	{
   40|  17.1k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  17.1k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  17.1k|		constexpr int numGreField = 4;
   45|  33.8k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 33.8k, False: 0]
  ------------------
   46|  33.8k|		{
   47|  33.8k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  33.8k|			bool curFieldExists = false;
   49|       |
   50|  33.8k|			uint8_t* origPtr = ptr;
   51|       |
   52|  33.8k|			switch (curField)
   53|  33.8k|			{
   54|  17.1k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 17.1k, False: 16.6k]
  ------------------
   55|  17.1k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 13.1k, False: 4.00k]
  |  Branch (55:37): [True: 1.70k, False: 2.30k]
  ------------------
   56|  14.8k|				{
   57|  14.8k|					curFieldExists = true;
   58|  14.8k|					ptr += sizeof(uint32_t);
   59|  14.8k|				}
   60|  17.1k|				break;
   61|  9.01k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 9.01k, False: 24.8k]
  ------------------
   62|  9.01k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 7.62k, False: 1.38k]
  ------------------
   63|  7.62k|				{
   64|  7.62k|					curFieldExists = true;
   65|  7.62k|					ptr += sizeof(uint32_t);
   66|  7.62k|				}
   67|  9.01k|				break;
   68|  6.67k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 6.67k, False: 27.1k]
  ------------------
   69|  6.67k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 6.67k, False: 1]
  ------------------
   70|  6.67k|				{
   71|  6.67k|					curFieldExists = true;
   72|  6.67k|					ptr += sizeof(uint32_t);
   73|  6.67k|				}
   74|  6.67k|				break;
   75|    981|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 981, False: 32.8k]
  ------------------
   76|    981|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 981, False: 0]
  ------------------
   77|    981|				{
   78|    981|					curFieldExists = true;
   79|    981|					ptr += sizeof(uint32_t);
   80|    981|				}
   81|    981|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 33.8k]
  ------------------
   83|      0|				return nullptr;
   84|  33.8k|			}
   85|       |
   86|  33.8k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 17.1k, False: 16.6k]
  ------------------
   87|  17.1k|			{
   88|  17.1k|				if (curFieldExists || returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (88:9): [True: 17.1k, False: 0]
  |  Branch (88:27): [True: 0, False: 0]
  ------------------
   89|  17.1k|					return origPtr;
   90|       |
   91|      0|				return nullptr;
   92|  17.1k|			}
   93|  33.8k|		}  // for
   94|       |
   95|      0|		return nullptr;
   96|  17.1k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
   99|  6.13k|	{
  100|  6.13k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  101|  6.13k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (101:7): [True: 4.77k, False: 1.36k]
  ------------------
  102|  4.77k|		{
  103|  4.77k|			switch (m_NextLayer->getProtocol())
  104|  4.77k|			{
  105|     26|			case IPv4:
  ------------------
  |  Branch (105:4): [True: 26, False: 4.74k]
  ------------------
  106|     26|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  107|     26|				break;
  108|      0|			case IPv6:
  ------------------
  |  Branch (108:4): [True: 0, False: 4.77k]
  ------------------
  109|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  110|      0|				break;
  111|    848|			case VLAN:
  ------------------
  |  Branch (111:4): [True: 848, False: 3.92k]
  ------------------
  112|    848|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  113|    848|				break;
  114|      0|			case MPLS:
  ------------------
  |  Branch (114:4): [True: 0, False: 4.77k]
  ------------------
  115|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  116|      0|				break;
  117|    740|			case PPP_PPTP:
  ------------------
  |  Branch (117:4): [True: 740, False: 4.03k]
  ------------------
  118|    740|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  119|    740|				break;
  120|      0|			case Ethernet:
  ------------------
  |  Branch (120:4): [True: 0, False: 4.77k]
  ------------------
  121|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  122|      0|				break;
  123|  3.15k|			default:
  ------------------
  |  Branch (123:4): [True: 3.15k, False: 1.61k]
  ------------------
  124|  3.15k|				break;
  125|  4.77k|			}
  126|  4.77k|		}
  127|  6.13k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  130|  6.13k|	{
  131|  6.13k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  132|       |
  133|  6.13k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (133:7): [True: 443, False: 5.69k]
  ------------------
  134|    443|			return false;
  135|       |
  136|  5.69k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  137|  5.69k|		if (val == nullptr)
  ------------------
  |  Branch (137:7): [True: 0, False: 5.69k]
  ------------------
  138|      0|			return false;
  139|       |
  140|  5.69k|		seqNumber = be32toh(*val);
  141|  5.69k|		return true;
  142|  5.69k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  196|  36.9k|	{
  197|  36.9k|		size_t headerLen = getHeaderLen();
  198|  36.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (198:7): [True: 7.11k, False: 29.8k]
  ------------------
  199|  7.11k|			return;
  200|       |
  201|  29.8k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  202|  29.8k|		uint8_t* payload = m_Data + headerLen;
  203|  29.8k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|  29.8k|		switch (be16toh(header->protocol))
  206|  29.8k|		{
  207|    162|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|    162|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (207:3): [True: 162, False: 29.6k]
  ------------------
  208|    162|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  209|    162|			break;
  210|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (210:3): [True: 0, False: 29.8k]
  ------------------
  211|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  212|      0|			break;
  213|  8.44k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  8.44k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (213:3): [True: 8.44k, False: 21.3k]
  ------------------
  214|  8.44k|			constructNextLayer<VlanLayer>(payload, payloadLen);
  215|  8.44k|			break;
  216|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (216:3): [True: 0, False: 29.8k]
  ------------------
  217|      0|			constructNextLayer<MplsLayer>(payload, payloadLen);
  218|      0|			break;
  219|  7.02k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   57|  7.02k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (219:3): [True: 7.02k, False: 22.8k]
  ------------------
  220|  7.02k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  221|  7.02k|			break;
  222|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (222:3): [True: 0, False: 29.8k]
  ------------------
  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|  14.2k|		default:
  ------------------
  |  Branch (232:3): [True: 14.2k, False: 15.6k]
  ------------------
  233|  14.2k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  234|  29.8k|		}
  235|  29.8k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  238|  45.8k|	{
  239|  45.8k|		size_t result = sizeof(gre_basic_header);
  240|       |
  241|  45.8k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  242|       |
  243|  45.8k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (243:7): [True: 17.0k, False: 28.8k]
  |  Branch (243:35): [True: 2.86k, False: 25.9k]
  ------------------
  244|  19.8k|			result += 4;
  245|  45.8k|		if (header->keyBit == 1)
  ------------------
  |  Branch (245:7): [True: 31.5k, False: 14.2k]
  ------------------
  246|  31.5k|			result += 4;
  247|  45.8k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (247:7): [True: 42.8k, False: 3.04k]
  ------------------
  248|  42.8k|			result += 4;
  249|  45.8k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 8.73k, False: 37.1k]
  ------------------
  250|  8.73k|			result += 4;
  251|       |
  252|  45.8k|		return result;
  253|  45.8k|	}
_ZN4pcpp10GREv0Layer11getChecksumERt:
  266|  3.36k|	{
  267|  3.36k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (267:7): [True: 1.22k, False: 2.14k]
  ------------------
  268|  1.22k|			return false;
  269|       |
  270|  2.14k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  271|  2.14k|		if (val == nullptr)
  ------------------
  |  Branch (271:7): [True: 0, False: 2.14k]
  ------------------
  272|      0|			return false;
  273|       |
  274|  2.14k|		checksum = be16toh(*val);
  275|  2.14k|		return true;
  276|  2.14k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  279|  4.28k|	{
  280|  4.28k|		gre_basic_header* header = getGreHeader();
  281|       |
  282|  4.28k|		bool needToExtendLayer = false;
  283|       |
  284|  4.28k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (284:7): [True: 1.92k, False: 2.36k]
  |  Branch (284:34): [True: 0, False: 1.92k]
  ------------------
  285|      0|			needToExtendLayer = true;
  286|       |
  287|  4.28k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  288|  4.28k|		int offset = offsetPtr - m_Data;
  289|       |		// extend layer in 4 bytes to keep 4-byte alignment
  290|  4.28k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (290:7): [True: 0, False: 4.28k]
  |  Branch (290:28): [True: 0, False: 0]
  ------------------
  291|      0|		{
  292|      0|			PCPP_LOG_ERROR("Couldn't extend layer to set checksum");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|      0|			return false;
  294|      0|		}
  295|       |
  296|  4.28k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  297|  4.28k|		*checksumPtr = htobe16(checksum);
  298|       |
  299|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  300|  4.28k|		if (needToExtendLayer)
  ------------------
  |  Branch (300:7): [True: 0, False: 4.28k]
  ------------------
  301|      0|		{
  302|      0|			checksumPtr++;
  303|      0|			*checksumPtr = 0;
  304|      0|		}
  305|       |
  306|  4.28k|		header = getGreHeader();
  307|  4.28k|		header->checksumBit = 1;
  308|       |
  309|  4.28k|		return true;
  310|  4.28k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  346|  3.36k|	{
  347|  3.36k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (347:7): [True: 1.61k, False: 1.74k]
  ------------------
  348|  1.61k|			return false;
  349|       |
  350|  1.74k|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  351|  1.74k|		if (val == nullptr)
  ------------------
  |  Branch (351:7): [True: 0, False: 1.74k]
  ------------------
  352|      0|			return false;
  353|       |
  354|  1.74k|		offset = be16toh(*(val + 2));
  355|  1.74k|		return true;
  356|  1.74k|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  359|  3.36k|	{
  360|  3.36k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (360:7): [True: 1.02k, False: 2.33k]
  ------------------
  361|  1.02k|			return false;
  362|       |
  363|  2.33k|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  364|  2.33k|		if (val == nullptr)
  ------------------
  |  Branch (364:7): [True: 0, False: 2.33k]
  ------------------
  365|      0|			return false;
  366|       |
  367|  2.33k|		key = be32toh(*val);
  368|  2.33k|		return true;
  369|  2.33k|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  423|  3.36k|	{
  424|  3.36k|		computeCalculateFieldsInner();
  425|       |
  426|  3.36k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (426:7): [True: 1.22k, False: 2.14k]
  ------------------
  427|  1.22k|			return;
  428|       |
  429|       |		// calculate checksum
  430|  2.14k|		setChecksum(0);
  431|       |
  432|  2.14k|		ScalarBuffer<uint16_t> buffer;
  433|  2.14k|		buffer.buffer = (uint16_t*)m_Data;
  434|  2.14k|		buffer.len = m_DataLen;
  435|  2.14k|		size_t checksum = computeChecksum(&buffer, 1);
  436|       |
  437|  2.14k|		setChecksum(checksum);
  438|  2.14k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  441|  6.72k|	{
  442|  6.72k|		return "GRE Layer, version 0";
  443|  6.72k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  461|  2.77k|	{
  462|  2.77k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (462:7): [True: 1.79k, False: 981]
  ------------------
  463|  1.79k|			return false;
  464|       |
  465|    981|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  466|    981|		if (val == nullptr)
  ------------------
  |  Branch (466:7): [True: 0, False: 981]
  ------------------
  467|      0|			return false;
  468|       |
  469|    981|		ackNum = be32toh(*val);
  470|    981|		return true;
  471|    981|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  522|  2.77k|	{
  523|  2.77k|		computeCalculateFieldsInner();
  524|       |
  525|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  526|  2.77k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  529|  5.54k|	{
  530|  5.54k|		return "GRE Layer, version 1";
  531|  5.54k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  548|  6.63k|	{
  549|  6.63k|		size_t headerLen = getHeaderLen();
  550|  6.63k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (550:7): [True: 0, False: 6.63k]
  ------------------
  551|      0|			return;
  552|       |
  553|  6.63k|		uint8_t* payload = m_Data + headerLen;
  554|  6.63k|		size_t payloadLen = m_DataLen - headerLen;
  555|       |
  556|  6.63k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  557|  6.63k|		{
  558|  5.84k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  5.84k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (558:3): [True: 5.84k, False: 784]
  ------------------
  559|  5.84k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  560|  5.84k|			break;
  561|      0|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|      0|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (561:3): [True: 0, False: 6.63k]
  ------------------
  562|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  563|      0|			break;
  564|    784|		default:
  ------------------
  |  Branch (564:3): [True: 784, False: 5.84k]
  ------------------
  565|    784|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  566|    784|			break;
  567|  6.63k|		}
  568|  6.63k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  571|    740|	{
  572|    740|		ppp_pptp_header* header = getPPP_PPTPHeader();
  573|    740|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (573:7): [True: 740, False: 0]
  ------------------
  574|    740|		{
  575|    740|			switch (m_NextLayer->getProtocol())
  576|    740|			{
  577|    624|			case IPv4:
  ------------------
  |  Branch (577:4): [True: 624, False: 116]
  ------------------
  578|    624|				header->protocol = htobe16(PCPP_PPP_IP);
  579|    624|				break;
  580|      0|			case IPv6:
  ------------------
  |  Branch (580:4): [True: 0, False: 740]
  ------------------
  581|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  582|      0|				break;
  583|    116|			default:
  ------------------
  |  Branch (583:4): [True: 116, False: 624]
  ------------------
  584|    116|				break;
  585|    740|			}
  586|    740|		}
  587|      0|		else
  588|      0|			header->protocol = 0;
  589|    740|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  12.6k|	{
   23|  12.6k|		m_Data = nullptr;
   24|  12.6k|		m_DataLen = 0;
   25|  12.6k|		m_ExtType = 0;
   26|  12.6k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  3.40k|	{
   30|  3.40k|		m_Data = data;
   31|  3.40k|		m_DataLen = dataLen;
   32|  3.40k|		m_ExtType = type;
   33|  3.40k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|  3.34k|	{
   44|  3.34k|		m_Data = other.m_Data;
   45|  3.34k|		m_DataLen = other.m_DataLen;
   46|  3.34k|		m_ExtType = other.m_ExtType;
   47|  3.34k|		return *this;
   48|  3.34k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  11.2k|	{
   52|  11.2k|		return m_Data == nullptr;
   53|  11.2k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  2.39k|	{
   57|  2.39k|		return m_ExtType;
   58|  2.39k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  18.2k|	{
   62|  18.2k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 4.70k, False: 13.5k]
  ------------------
   63|  4.70k|		{
   64|  4.70k|			return 0;
   65|  4.70k|		}
   66|       |
   67|  13.5k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  13.5k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 13.2k, False: 231]
  ------------------
   69|  13.2k|		{
   70|  13.2k|			return len;
   71|  13.2k|		}
   72|       |
   73|    231|		return m_DataLen;
   74|  13.5k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  5.75k|	{
   78|  5.75k|		size_t res = getTotalLength();
   79|       |
   80|  5.75k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 3.36k, False: 2.38k]
  ------------------
   81|  3.36k|		{
   82|  3.36k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  3.36k|		}
   84|       |
   85|  2.38k|		return 0;
   86|  5.75k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  2.39k|	{
   90|  2.39k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 2.35k, False: 42]
  |  Branch (90:28): [True: 17, False: 25]
  ------------------
   91|  2.37k|		{
   92|  2.37k|			return nullptr;
   93|  2.37k|		}
   94|       |
   95|     25|		return m_Data + sizeof(uint8_t);
   96|  2.39k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  5.73k|	{
  100|  5.73k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 2.35k, False: 3.38k]
  |  Branch (100:28): [True: 66, False: 3.31k]
  ------------------
  101|  2.42k|		{
  102|  2.42k|			return 0;
  103|  2.42k|		}
  104|       |
  105|  3.31k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  3.31k|		return res;
  108|  5.73k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  5.73k|	{
  112|  5.73k|		size_t totalLength = getTotalLength();
  113|  5.73k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  5.73k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 3.16k, False: 2.57k]
  |  Branch (114:26): [True: 3.14k, False: 14]
  ------------------
  115|  3.14k|		{
  116|  3.14k|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|  3.14k|		}
  118|  2.58k|		else
  119|  2.58k|		{
  120|  2.58k|			return {};
  121|  2.58k|		}
  122|  5.73k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  200|  25.7k|	{
  201|  25.7k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (201:7): [True: 25.7k, False: 0]
  |  Branch (201:26): [True: 25.3k, False: 395]
  |  Branch (201:62): [True: 15.4k, False: 9.91k]
  ------------------
  202|  15.4k|		{
  203|  15.4k|			return true;
  204|  15.4k|		}
  205|       |
  206|  10.3k|		return false;
  207|  25.7k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  210|  25.1k|	{
  211|  25.1k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (211:7): [True: 25.1k, False: 0]
  |  Branch (211:28): [True: 25.1k, False: 0]
  ------------------
  212|  25.1k|		{
  213|  25.1k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  214|  25.1k|		}
  215|       |
  216|      0|		return nullptr;
  217|  25.1k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  220|  2.39k|	{
  221|  2.39k|		gtpv1_header* header = getHeader();
  222|  2.39k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  223|  2.39k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (223:7): [True: 2.39k, False: 0]
  |  Branch (223:28): [True: 2.39k, False: 0]
  |  Branch (223:54): [True: 895, False: 1.50k]
  ------------------
  224|    895|		{
  225|    895|			seqNumber = be16toh(headerExtra->sequenceNumber);
  226|    895|			return true;
  227|    895|		}
  228|       |
  229|  1.50k|		return false;
  230|  2.39k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  272|  2.39k|	{
  273|  2.39k|		gtpv1_header* header = getHeader();
  274|  2.39k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  275|  2.39k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (275:7): [True: 2.39k, False: 0]
  |  Branch (275:28): [True: 2.39k, False: 0]
  |  Branch (275:54): [True: 891, False: 1.50k]
  ------------------
  276|    891|		{
  277|    891|			npduNum = headerExtra->npduNumber;
  278|    891|			return true;
  279|    891|		}
  280|       |
  281|  1.50k|		return false;
  282|  2.39k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  324|  10.3k|	{
  325|  10.3k|		gtpv1_header* header = getHeader();
  326|  10.3k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  327|  10.3k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (327:7): [True: 10.3k, False: 0]
  |  Branch (327:28): [True: 10.3k, False: 0]
  |  Branch (327:54): [True: 1.42k, False: 8.92k]
  ------------------
  328|  1.42k|		{
  329|  1.42k|			nextExtType = headerExtra->nextExtensionHeader;
  330|  1.42k|			return true;
  331|  1.42k|		}
  332|       |
  333|  8.92k|		return false;
  334|  10.3k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  337|  10.3k|	{
  338|  10.3k|		uint8_t nextExtType = 0;
  339|  10.3k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  340|  10.3k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (340:7): [True: 8.92k, False: 1.42k]
  |  Branch (340:25): [True: 1.17k, False: 254]
  |  Branch (340:45): [True: 0, False: 254]
  ------------------
  341|  10.0k|		{
  342|  10.0k|			return {};
  343|  10.0k|		}
  344|       |
  345|    254|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  346|    254|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  347|  10.3k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  428|  2.39k|	{
  429|  2.39k|		gtpv1_header* header = getHeader();
  430|       |
  431|  2.39k|		if (header == nullptr)
  ------------------
  |  Branch (431:7): [True: 0, False: 2.39k]
  ------------------
  432|      0|		{
  433|      0|			return GtpV1_MessageTypeUnknown;
  434|      0|		}
  435|       |
  436|  2.39k|		return (GtpV1MessageType)header->messageType;
  437|  2.39k|	}
_ZN4pcpp33createGtpV1MessageTypeToStringMapEv:
  440|      2|	{
  441|      2|		std::unordered_map<uint8_t, std::string> tempMap;
  442|       |
  443|      2|		tempMap[0] = "GTPv1 Message Type Unknown";
  444|      2|		tempMap[1] = "Echo Request";
  445|      2|		tempMap[2] = "Echo Response";
  446|      2|		tempMap[3] = "Version Not Supported";
  447|      2|		tempMap[4] = "Node Alive Request";
  448|      2|		tempMap[5] = "Node Alive Response";
  449|      2|		tempMap[6] = "Redirection Request";
  450|      2|		tempMap[7] = "Create PDP Context Request";
  451|      2|		tempMap[16] = "Create PDP Context Response";
  452|      2|		tempMap[17] = "Update PDP Context Request";
  453|      2|		tempMap[18] = "Update PDP Context Response";
  454|      2|		tempMap[19] = "Delete PDP Context Request";
  455|      2|		tempMap[20] = "Delete PDP Context Response";
  456|      2|		tempMap[22] = "Initiate PDP Context Activation Request";
  457|      2|		tempMap[23] = "Initiate PDP Context Activation Response";
  458|      2|		tempMap[26] = "Error Indication";
  459|      2|		tempMap[27] = "PDU Notification Request";
  460|      2|		tempMap[28] = "PDU Notification Response";
  461|      2|		tempMap[29] = "PDU Notification Reject Request";
  462|      2|		tempMap[30] = "PDU Notification Reject Response";
  463|      2|		tempMap[31] = "Supported Extensions Header Notification";
  464|      2|		tempMap[32] = "Send Routing for GPRS Request";
  465|      2|		tempMap[33] = "Send Routing for GPRS Response";
  466|      2|		tempMap[34] = "Failure Report Request";
  467|      2|		tempMap[35] = "Failure Report Response";
  468|      2|		tempMap[36] = "Note MS Present Request";
  469|      2|		tempMap[37] = "Note MS Present Response";
  470|      2|		tempMap[38] = "Identification Request";
  471|      2|		tempMap[39] = "Identification Response";
  472|      2|		tempMap[50] = "SGSN Context Request";
  473|      2|		tempMap[51] = "SGSN Context Response";
  474|      2|		tempMap[52] = "SGSN Context Acknowledge";
  475|      2|		tempMap[53] = "Forward Relocation Request";
  476|      2|		tempMap[54] = "Forward Relocation Response";
  477|      2|		tempMap[55] = "Forward Relocation Complete";
  478|      2|		tempMap[56] = "Relocation Cancel Request";
  479|      2|		tempMap[57] = "Relocation Cancel Response";
  480|      2|		tempMap[58] = "Forward SRNS Context";
  481|      2|		tempMap[59] = "Forward Relocation Complete Acknowledge";
  482|      2|		tempMap[60] = "Forward SRNS Context Acknowledge";
  483|      2|		tempMap[61] = "UE Registration Request";
  484|      2|		tempMap[62] = "UE Registration Response";
  485|      2|		tempMap[70] = "RAN Information Relay";
  486|      2|		tempMap[96] = "MBMS Notification Request";
  487|      2|		tempMap[97] = "MBMS Notification Response";
  488|      2|		tempMap[98] = "MBMS Notification Reject Request";
  489|      2|		tempMap[99] = "MBMS Notification Reject Response";
  490|      2|		tempMap[100] = "Create MBMS Notification Request";
  491|      2|		tempMap[101] = "Create MBMS Notification Response";
  492|      2|		tempMap[102] = "Update MBMS Notification Request";
  493|      2|		tempMap[103] = "Update MBMS Notification Response";
  494|      2|		tempMap[104] = "Delete MBMS Notification Request";
  495|      2|		tempMap[105] = "Delete MBMS Notification Response";
  496|      2|		tempMap[112] = "MBMS Registration Request";
  497|      2|		tempMap[113] = "MBMS Registration Response";
  498|      2|		tempMap[114] = "MBMS De-Registration Request";
  499|      2|		tempMap[115] = "MBMS De-Registration Response";
  500|      2|		tempMap[116] = "MBMS Session Start Request";
  501|      2|		tempMap[117] = "MBMS Session Start Response";
  502|      2|		tempMap[118] = "MBMS Session Stop Request";
  503|      2|		tempMap[119] = "MBMS Session Stop Response";
  504|      2|		tempMap[120] = "MBMS Session Update Request";
  505|      2|		tempMap[121] = "MBMS Session Update Response";
  506|      2|		tempMap[128] = "MS Info Change Request";
  507|      2|		tempMap[129] = "MS Info Change Response";
  508|      2|		tempMap[240] = "Data Record Transfer Request";
  509|      2|		tempMap[241] = "Data Record Transfer Response";
  510|      2|		tempMap[254] = "End Marker";
  511|      2|		tempMap[255] = "G-PDU";
  512|       |
  513|      2|		return tempMap;
  514|      2|	}
_ZNK4pcpp10GtpV1Layer22getMessageTypeAsStringEv:
  519|  4.82k|	{
  520|  4.82k|		gtpv1_header* header = getHeader();
  521|       |
  522|  4.82k|		if (header == nullptr)
  ------------------
  |  Branch (522:7): [True: 0, False: 4.82k]
  ------------------
  523|      0|		{
  524|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  525|      0|		}
  526|       |
  527|  4.82k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  528|  4.82k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (528:7): [True: 3.55k, False: 1.27k]
  ------------------
  529|  3.55k|		{
  530|  3.55k|			return iter->second;
  531|  3.55k|		}
  532|  1.27k|		else
  533|  1.27k|		{
  534|  1.27k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  535|  1.27k|		}
  536|  4.82k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  539|  2.39k|	{
  540|  2.39k|		gtpv1_header* header = getHeader();
  541|  2.39k|		if (header == nullptr)
  ------------------
  |  Branch (541:7): [True: 0, False: 2.39k]
  ------------------
  542|      0|		{
  543|      0|			return false;
  544|      0|		}
  545|       |
  546|  2.39k|		return header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  2.39k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  547|  2.39k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  550|  2.39k|	{
  551|  2.39k|		gtpv1_header* header = getHeader();
  552|  2.39k|		if (header == nullptr)
  ------------------
  |  Branch (552:7): [True: 0, False: 2.39k]
  ------------------
  553|      0|		{
  554|      0|			return false;
  555|      0|		}
  556|       |
  557|  2.39k|		return header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  2.39k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  558|  2.39k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  561|  15.4k|	{
  562|  15.4k|		size_t headerLen = getHeaderLen();
  563|  15.4k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (563:7): [True: 0, False: 15.4k]
  ------------------
  564|      0|		{
  565|       |			// do nothing
  566|      0|			return;
  567|      0|		}
  568|       |
  569|  15.4k|		gtpv1_header* header = getHeader();
  570|  15.4k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  15.4k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (570:7): [True: 6.67k, False: 8.81k]
  ------------------
  571|  6.67k|		{
  572|       |			// this is a GTP-C message, hence it is the last layer
  573|  6.67k|			return;
  574|  6.67k|		}
  575|       |
  576|  8.81k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (576:7): [True: 45, False: 8.76k]
  ------------------
  577|     45|		{
  578|       |			// no data beyond headerLen, nothing to parse further
  579|     45|			return;
  580|     45|		}
  581|       |
  582|       |		// GTP-U message, try to parse the next layer
  583|       |
  584|  8.76k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  585|  8.76k|		size_t payloadLen = m_DataLen - headerLen;
  586|       |
  587|  8.76k|		uint8_t subProto = *payload;
  588|  8.76k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (588:7): [True: 8.35k, False: 412]
  |  Branch (588:27): [True: 6.73k, False: 1.62k]
  ------------------
  589|  6.73k|		{
  590|  6.73k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  591|  6.73k|		}
  592|  2.03k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (592:12): [True: 1.50k, False: 524]
  ------------------
  593|  1.50k|		{
  594|  1.50k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  595|  1.50k|		}
  596|    524|		else
  597|    524|		{
  598|    524|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  599|    524|		}
  600|  8.76k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  603|  17.9k|	{
  604|  17.9k|		gtpv1_header* header = getHeader();
  605|  17.9k|		if (header == nullptr)
  ------------------
  |  Branch (605:7): [True: 0, False: 17.9k]
  ------------------
  606|      0|		{
  607|      0|			return 0;
  608|      0|		}
  609|       |
  610|  17.9k|		size_t res = sizeof(gtpv1_header);
  611|       |
  612|  17.9k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  17.9k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (612:7): [True: 7.88k, False: 10.0k]
  ------------------
  613|  7.88k|		{
  614|  7.88k|			size_t msgLen = be16toh(header->messageLength);
  615|  7.88k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (615:12): [True: 2.91k, False: 4.97k]
  ------------------
  616|  7.88k|		}
  617|  10.0k|		else
  618|  10.0k|		{
  619|  10.0k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  620|  10.0k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (620:8): [True: 10.0k, False: 0]
  ------------------
  621|  10.0k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (621:9): [True: 1.24k, False: 8.80k]
  |  Branch (621:45): [True: 6.44k, False: 2.36k]
  |  Branch (621:80): [True: 268, False: 2.09k]
  ------------------
  622|  7.95k|			{
  623|  7.95k|				res += sizeof(gtpv1_header_extra);
  624|  7.95k|				GtpExtension nextExt = getNextExtension();
  625|  11.2k|				while (!nextExt.isNull())
  ------------------
  |  Branch (625:12): [True: 3.34k, False: 7.95k]
  ------------------
  626|  3.34k|				{
  627|  3.34k|					res += nextExt.getTotalLength();
  628|  3.34k|					nextExt = nextExt.getNextExtension();
  629|  3.34k|				}
  630|  7.95k|			}
  631|  10.0k|		}
  632|       |
  633|  17.9k|		return res;
  634|  17.9k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  637|  4.79k|	{
  638|  4.79k|		std::string res = "GTP v1 Layer";
  639|       |
  640|  4.79k|		gtpv1_header* header = getHeader();
  641|  4.79k|		if (header != nullptr)
  ------------------
  |  Branch (641:7): [True: 4.79k, False: 0]
  ------------------
  642|  4.79k|		{
  643|  4.79k|			std::stringstream teidStream;
  644|  4.79k|			teidStream << be32toh(header->teid);
  645|       |
  646|  4.79k|			std::string gtpu_gtpc;
  647|  4.79k|			if (header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  4.79k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (647:8): [True: 2.36k, False: 2.43k]
  ------------------
  648|  2.36k|			{
  649|  2.36k|				gtpu_gtpc = "GTP-U message";
  650|  2.36k|			}
  651|  2.43k|			else
  652|  2.43k|			{
  653|  2.43k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  654|  2.43k|			}
  655|       |
  656|  4.79k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  657|  4.79k|		}
  658|       |
  659|  4.79k|		return res;
  660|  4.79k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  663|  2.39k|	{
  664|  2.39k|		gtpv1_header* hdr = getHeader();
  665|  2.39k|		if (hdr == nullptr)
  ------------------
  |  Branch (665:7): [True: 0, False: 2.39k]
  ------------------
  666|      0|		{
  667|      0|			return;
  668|      0|		}
  669|       |
  670|  2.39k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  671|  2.39k|	}
_ZNK4pcpp16GtpV2MessageType8toStringEv:
  771|  4.80k|	{
  772|  4.80k|		auto iter = messageTypeMap.find(m_Value);
  773|  4.80k|		if (iter != messageTypeMap.end())
  ------------------
  |  Branch (773:7): [True: 20, False: 4.78k]
  ------------------
  774|     20|		{
  775|     20|			return iter->second;
  776|     20|		}
  777|       |
  778|  4.78k|		return "Unknown GTPv2 Message Type";
  779|  4.80k|	}
_ZN4pcpp16GtpV2MessageType13fromUintValueEh:
  869|  4.80k|	{
  870|  4.80k|		auto iter = uintToValueMap.find(value);
  871|  4.80k|		if (iter != uintToValueMap.end())
  ------------------
  |  Branch (871:7): [True: 20, False: 4.78k]
  ------------------
  872|     20|		{
  873|     20|			return iter->second;
  874|     20|		}
  875|       |
  876|  4.78k|		return Unknown;
  877|  4.80k|	}
_ZN4pcpp10GtpV2Layer11isDataValidEPKhm:
 1017|  16.3k|	{
 1018|  16.3k|		if (!data || dataSize < sizeof(gtpv2_basic_header) + sizeof(uint32_t))
  ------------------
  |  Branch (1018:7): [True: 0, False: 16.3k]
  |  Branch (1018:16): [True: 596, False: 15.7k]
  ------------------
 1019|    596|		{
 1020|    596|			return false;
 1021|    596|		}
 1022|       |
 1023|  15.7k|		auto* header = reinterpret_cast<const gtpv2_basic_header*>(data);
 1024|       |
 1025|  15.7k|		if (header->version != 2)
  ------------------
  |  Branch (1025:7): [True: 1.24k, False: 14.4k]
  ------------------
 1026|  1.24k|		{
 1027|  1.24k|			return false;
 1028|  1.24k|		}
 1029|       |
 1030|  14.4k|		return true;
 1031|  15.7k|	}
_ZNK4pcpp10GtpV2Layer14getMessageTypeEv:
 1034|  4.80k|	{
 1035|  4.80k|		return GtpV2MessageType::fromUintValue(getHeader()->messageType);
 1036|  4.80k|	}
_ZN4pcpp10GtpV2Layer14parseNextLayerEv:
 1298|  14.4k|	{
 1299|  14.4k|		auto headerLen = getHeaderLen();
 1300|  14.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (1300:7): [True: 6.47k, False: 7.98k]
  ------------------
 1301|  6.47k|		{
 1302|  6.47k|			return;
 1303|  6.47k|		}
 1304|       |
 1305|  7.98k|		auto* nextLayerData = m_Data + headerLen;
 1306|  7.98k|		auto nextLayerDataLen = m_DataLen - headerLen;
 1307|       |
 1308|  7.98k|		if (getHeader()->piggybacking)
  ------------------
  |  Branch (1308:7): [True: 7.94k, False: 37]
  ------------------
 1309|  7.94k|		{
 1310|  7.94k|			tryConstructNextLayerWithFallback<GtpV2Layer, PayloadLayer>(nextLayerData, nextLayerDataLen);
 1311|  7.94k|		}
 1312|     37|		else
 1313|     37|		{
 1314|     37|			constructNextLayer<PayloadLayer>(nextLayerData, nextLayerDataLen);
 1315|     37|		}
 1316|  7.98k|	}
_ZNK4pcpp10GtpV2Layer12getHeaderLenEv:
 1319|  16.8k|	{
 1320|  16.8k|		auto messageLength = be16toh(getHeader()->messageLength) + sizeof(gtpv2_basic_header);
 1321|  16.8k|		if (messageLength > m_DataLen)
  ------------------
  |  Branch (1321:7): [True: 7.55k, False: 9.31k]
  ------------------
 1322|  7.55k|		{
 1323|  7.55k|			return m_DataLen;
 1324|  7.55k|		}
 1325|       |
 1326|  9.31k|		return messageLength;
 1327|  16.8k|	}
_ZN4pcpp10GtpV2Layer22computeCalculateFieldsEv:
 1330|  2.40k|	{
 1331|  2.40k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (1331:7): [True: 1.07k, False: 1.32k]
  ------------------
 1332|  1.07k|		{
 1333|  1.07k|			return;
 1334|  1.07k|		}
 1335|       |
 1336|  1.32k|		if (m_NextLayer->getProtocol() == GTPv2)
  ------------------
  |  Branch (1336:7): [True: 1.08k, False: 240]
  ------------------
 1337|  1.08k|		{
 1338|  1.08k|			getHeader()->piggybacking = 1;
 1339|  1.08k|		}
 1340|    240|		else
 1341|    240|		{
 1342|    240|			getHeader()->piggybacking = 0;
 1343|    240|		}
 1344|  1.32k|	}
_ZNK4pcpp10GtpV2Layer8toStringEv:
 1347|  4.80k|	{
 1348|  4.80k|		return "GTPv2 Layer, " + getMessageType().toString() + " message";
 1349|  4.80k|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  680|  4.96k|		{
  681|  4.96k|			return static_cast<uint8_t>(messageType);
  682|  4.96k|		}

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

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

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  181|   817k|	{
  182|   817k|		m_Protocol = IPv4;
  183|   817k|		m_NumOfTrailingBytes = 0;
  184|   817k|		m_TempHeaderExtension = 0;
  185|   817k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (185:7): [True: 817k, False: 0]
  ------------------
  186|   817k|		{
  187|   817k|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  188|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  189|       |			// value of totalLen and look at the data captured on the wire
  190|   817k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (190:8): [True: 95.9k, False: 721k]
  |  Branch (190:34): [True: 82.6k, False: 13.3k]
  ------------------
  191|  82.6k|			{
  192|  82.6k|				auto headerLen = (std::min)(getHeaderLen(), m_DataLen);
  193|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  194|  82.6k|				m_DataLen = (std::max)(totalLen, headerLen);
  195|  82.6k|			}
  196|   817k|		}
  197|   817k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  218|   817k|	    : Layer(data, dataLen, prevLayer, packet)
  219|   817k|	{
  220|   817k|		initLayerInPacket(true);
  221|   817k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  246|   817k|	{
  247|   817k|		size_t hdrLen = getHeaderLen();
  248|   817k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (248:7): [True: 49, False: 817k]
  |  Branch (248:30): [True: 0, False: 817k]
  ------------------
  249|     49|			return;
  250|       |
  251|   817k|		iphdr* ipHdr = getIPv4Header();
  252|       |
  253|   817k|		uint8_t* payload = m_Data + hdrLen;
  254|   817k|		size_t payloadLen = m_DataLen - hdrLen;
  255|       |
  256|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  257|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  258|   817k|		if (isFragment())
  ------------------
  |  Branch (258:7): [True: 14.7k, False: 802k]
  ------------------
  259|  14.7k|		{
  260|  14.7k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  261|  14.7k|			return;
  262|  14.7k|		}
  263|       |
  264|   802k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (264:11): [True: 800k, False: 2.19k]
  ------------------
  265|   802k|		{
  266|   255k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (266:3): [True: 255k, False: 546k]
  ------------------
  267|   255k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  268|   255k|			break;
  269|   461k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (269:3): [True: 461k, False: 341k]
  ------------------
  270|   461k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  271|   461k|			break;
  272|  17.1k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (272:3): [True: 17.1k, False: 785k]
  ------------------
  273|  17.1k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  274|  17.1k|			break;
  275|      0|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (275:3): [True: 0, False: 802k]
  ------------------
  276|      0|		{
  277|       |			// todo: no tests for this case
  278|      0|			switch (IPLayer::getIPVersion(payload, payloadLen))
  279|      0|			{
  280|      0|			case IPv4:
  ------------------
  |  Branch (280:4): [True: 0, False: 0]
  ------------------
  281|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  282|      0|				break;
  283|      0|			case IPv6:
  ------------------
  |  Branch (283:4): [True: 0, False: 0]
  ------------------
  284|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  285|      0|				break;
  286|      0|			default:
  ------------------
  |  Branch (286:4): [True: 0, False: 0]
  ------------------
  287|      0|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  288|      0|				break;
  289|      0|			}
  290|      0|			break;
  291|      0|		}
  292|  34.1k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (292:3): [True: 34.1k, False: 768k]
  ------------------
  293|  34.1k|		{
  294|  34.1k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  295|  34.1k|			{
  296|  13.6k|			case GREv0:
  ------------------
  |  Branch (296:4): [True: 13.6k, False: 20.4k]
  ------------------
  297|  13.6k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  298|  13.6k|				break;
  299|  20.3k|			case GREv1:
  ------------------
  |  Branch (299:4): [True: 20.3k, False: 13.8k]
  ------------------
  300|  20.3k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  301|  20.3k|				break;
  302|    148|			default:
  ------------------
  |  Branch (302:4): [True: 148, False: 33.9k]
  ------------------
  303|    148|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  304|    148|				break;
  305|  34.1k|			};
  306|  34.1k|			break;
  307|  34.1k|		}
  308|  6.89k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (308:3): [True: 6.89k, False: 795k]
  ------------------
  309|  6.89k|		{
  310|  6.89k|			bool igmpQuery = false;
  311|  6.89k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  312|  6.89k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  313|       |
  314|  6.89k|			switch (igmpVer)
  315|  6.89k|			{
  316|  2.19k|			case IGMPv1:
  ------------------
  |  Branch (316:4): [True: 2.19k, False: 4.69k]
  ------------------
  317|  2.19k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  318|  2.19k|				break;
  319|  2.96k|			case IGMPv2:
  ------------------
  |  Branch (319:4): [True: 2.96k, False: 3.92k]
  ------------------
  320|  2.96k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  321|  2.96k|				break;
  322|  1.60k|			case IGMPv3:
  ------------------
  |  Branch (322:4): [True: 1.60k, False: 5.28k]
  ------------------
  323|  1.60k|			{
  324|  1.60k|				if (igmpQuery)
  ------------------
  |  Branch (324:9): [True: 20, False: 1.58k]
  ------------------
  325|     20|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  326|     20|					                                                                  getAttachedPacket());
  327|  1.58k|				else
  328|  1.58k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  329|  1.58k|					                                                                   getAttachedPacket());
  330|  1.60k|				break;
  331|      0|			}
  332|    121|			default:
  ------------------
  |  Branch (332:4): [True: 121, False: 6.76k]
  ------------------
  333|    121|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  334|    121|				break;
  335|  6.89k|			}
  336|  6.89k|			break;
  337|  6.89k|		}
  338|  6.89k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (338:3): [True: 5, False: 802k]
  ------------------
  339|      5|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  340|      5|			                                                                           getAttachedPacket());
  341|      5|			break;
  342|      5|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (342:3): [True: 5, False: 802k]
  ------------------
  343|      5|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  344|      5|			break;
  345|  6.43k|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (345:3): [True: 6.43k, False: 796k]
  ------------------
  346|  6.43k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  347|  6.43k|			break;
  348|  18.4k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (348:3): [True: 18.4k, False: 784k]
  ------------------
  349|  18.4k|		{
  350|  18.4k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  351|  18.4k|			{
  352|  12.5k|			case VRRPv2:
  ------------------
  |  Branch (352:4): [True: 12.5k, False: 5.90k]
  ------------------
  353|  12.5k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  354|  12.5k|				break;
  355|  5.75k|			case VRRPv3:
  ------------------
  |  Branch (355:4): [True: 5.75k, False: 12.6k]
  ------------------
  356|  5.75k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  357|  5.75k|				                                                             IPAddress::IPv4AddressType);
  358|  5.75k|				break;
  359|    152|			default:
  ------------------
  |  Branch (359:4): [True: 152, False: 18.2k]
  ------------------
  360|    152|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  361|    152|				break;
  362|  18.4k|			}
  363|  18.4k|			break;
  364|  18.4k|		}
  365|   802k|		}
  366|       |
  367|       |		// If no next layer was constructed, assume it's a payload layer
  368|   802k|		if (!hasNextLayer())
  ------------------
  |  Branch (368:7): [True: 2.19k, False: 800k]
  ------------------
  369|  2.19k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  370|   802k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  373|   155k|	{
  374|   155k|		auto* ipHdr = getIPv4Header();
  375|   155k|		ipHdr->ipVersion = (4 & 0x0f);
  376|   155k|		ipHdr->totalLength = htobe16(m_DataLen);
  377|   155k|		ipHdr->headerChecksum = 0;
  378|       |
  379|   155k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (379:7): [True: 155k, False: 1]
  ------------------
  380|   155k|		{
  381|   155k|			switch (m_NextLayer->getProtocol())
  382|   155k|			{
  383|  88.8k|			case TCP:
  ------------------
  |  Branch (383:4): [True: 88.8k, False: 66.4k]
  ------------------
  384|  88.8k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  385|  88.8k|				break;
  386|  47.6k|			case UDP:
  ------------------
  |  Branch (386:4): [True: 47.6k, False: 107k]
  ------------------
  387|  47.6k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  388|  47.6k|				break;
  389|  3.01k|			case ICMP:
  ------------------
  |  Branch (389:4): [True: 3.01k, False: 152k]
  ------------------
  390|  3.01k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  391|  3.01k|				break;
  392|  2.93k|			case GREv0:
  ------------------
  |  Branch (392:4): [True: 2.93k, False: 152k]
  ------------------
  393|  5.70k|			case GREv1:
  ------------------
  |  Branch (393:4): [True: 2.77k, False: 152k]
  ------------------
  394|  5.70k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  395|  5.70k|				break;
  396|    443|			case IGMPv1:
  ------------------
  |  Branch (396:4): [True: 443, False: 154k]
  ------------------
  397|  1.03k|			case IGMPv2:
  ------------------
  |  Branch (397:4): [True: 596, False: 154k]
  ------------------
  398|  1.43k|			case IGMPv3:
  ------------------
  |  Branch (398:4): [True: 399, False: 154k]
  ------------------
  399|  1.43k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  400|  1.43k|				break;
  401|  2.69k|			case VRRPv2:
  ------------------
  |  Branch (401:4): [True: 2.69k, False: 152k]
  ------------------
  402|  3.89k|			case VRRPv3:
  ------------------
  |  Branch (402:4): [True: 1.19k, False: 154k]
  ------------------
  403|  3.89k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  404|  3.89k|				break;
  405|  4.72k|			default:
  ------------------
  |  Branch (405:4): [True: 4.72k, False: 150k]
  ------------------
  406|  4.72k|				break;
  407|   155k|			}
  408|   155k|		}
  409|       |
  410|   155k|		auto headerLen = (std::min)(static_cast<size_t>(ipHdr->internetHeaderLength * 4), m_DataLen);
  411|   155k|		ScalarBuffer<uint16_t> scalar = { reinterpret_cast<uint16_t*>(ipHdr), headerLen };
  412|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  413|   155k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  416|  1.13M|	{
  417|  1.13M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  154|  1.13M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (417:11): [True: 13.0k, False: 1.12M]
  |  Branch (417:65): [True: 15.8k, False: 1.10M]
  ------------------
  418|  1.13M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  421|  4.81k|	{
  422|  4.81k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (422:10): [True: 4.81k, False: 0]
  |  Branch (422:26): [True: 254, False: 4.56k]
  ------------------
  423|  4.81k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  426|  4.56k|	{
  427|  4.56k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  154|  4.56k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (427:10): [True: 4.56k, False: 0]
  |  Branch (427:26): [True: 2.67k, False: 1.89k]
  ------------------
  428|  4.56k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  431|  1.14M|	{
  432|  1.14M|		return getIPv4Header()->fragmentOffset & 0xE0;
  433|  1.14M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  436|  1.13M|	{
  437|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  438|  1.13M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  441|   310k|	{
  442|   310k|		std::string fragment = "";
  443|   310k|		if (isFragment())
  ------------------
  |  Branch (443:7): [True: 4.81k, False: 305k]
  ------------------
  444|  4.81k|		{
  445|  4.81k|			if (isFirstFragment())
  ------------------
  |  Branch (445:8): [True: 254, False: 4.56k]
  ------------------
  446|    254|				fragment = "First fragment";
  447|  4.56k|			else if (isLastFragment())
  ------------------
  |  Branch (447:13): [True: 2.67k, False: 1.89k]
  ------------------
  448|  2.67k|				fragment = "Last fragment";
  449|  1.89k|			else
  450|  1.89k|				fragment = "Fragment";
  451|       |
  452|  4.81k|			std::stringstream sstm;
  453|  4.81k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  454|  4.81k|			fragment = sstm.str();
  455|  4.81k|		}
  456|       |
  457|   310k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  458|   310k|		       ", Dst: " + getDstIPv4Address().toString();
  459|   310k|	}

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

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

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   25|    178|	{
   26|    178|		routerAddress = addr.toInt();
   27|       |		preferenceLevel = htobe32(preference);
   28|    178|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   37|  75.6k|	{
   38|  75.6k|		uint8_t type = getIcmpHeader()->type;
   39|  75.6k|		if (type > 18)
  ------------------
  |  Branch (39:7): [True: 0, False: 75.6k]
  ------------------
   40|      0|			return ICMP_UNSUPPORTED;
   41|       |
   42|  75.6k|		return static_cast<IcmpMessageType>(type);
   43|  75.6k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   46|  1.21k|	{
   47|       |		// remove all layers after
   48|       |
   49|  1.21k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (49:7): [True: 0, False: 1.21k]
  ------------------
   50|      0|		{
   51|      0|			bool res = getAttachedPacket()->removeAllLayersAfter(this);
   52|      0|			if (!res)
  ------------------
  |  Branch (52:8): [True: 0, False: 0]
  ------------------
   53|      0|				return false;
   54|      0|		}
   55|       |
   56|       |		// shorten layer to size of icmphdr
   57|       |
   58|  1.21k|		size_t headerLen = this->getHeaderLen();
   59|  1.21k|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (59:7): [True: 1.21k, False: 0]
  ------------------
   60|  1.21k|		{
   61|  1.21k|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (61:8): [True: 0, False: 1.21k]
  ------------------
   62|      0|				return false;
   63|  1.21k|		}
   64|       |
   65|  1.21k|		return true;
   66|  1.21k|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
   99|    604|	{
  100|    604|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (100:7): [True: 604, False: 0]
  ------------------
  101|    604|		{
  102|    604|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  443|    604|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    604|	do                                                                                                                 \
  |  |  |  |  413|    604|	{                                                                                                                  \
  |  |  |  |  414|    604|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    604|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    604|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 604, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    604|		{                                                                                                              \
  |  |  |  |  417|    604|			auto ctx =                                                                                                 \
  |  |  |  |  418|    604|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    604|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    604|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    604|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    604|		}                                                                                                              \
  |  |  |  |  422|    604|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 604]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|    604|			               "Please add the ICMP layer to a packet and try again");
  104|    604|			return false;
  105|    604|		}
  106|       |
  107|      0|		if (ipLayer != nullptr && !getAttachedPacket()->addLayer(ipLayer))
  ------------------
  |  Branch (107:7): [True: 0, False: 0]
  |  Branch (107:29): [True: 0, False: 0]
  ------------------
  108|      0|		{
  109|      0|			PCPP_LOG_ERROR("Couldn't add IP layer to ICMP packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  110|      0|			return false;
  111|      0|		}
  112|       |
  113|      0|		if (l4Layer != nullptr && !getAttachedPacket()->addLayer(l4Layer))
  ------------------
  |  Branch (113:7): [True: 0, False: 0]
  |  Branch (113:29): [True: 0, False: 0]
  ------------------
  114|      0|		{
  115|      0|			PCPP_LOG_ERROR("Couldn't add L4 layer to ICMP packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  116|      0|			return false;
  117|      0|		}
  118|       |
  119|      0|		return true;
  120|      0|	}
_ZN4pcpp9IcmpLayer21getTimestampReplyDataEv:
  195|    196|	{
  196|    196|		if (!isMessageOfType(ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (196:7): [True: 0, False: 196]
  ------------------
  197|      0|			return nullptr;
  198|       |
  199|    196|		return reinterpret_cast<icmp_timestamp_reply*>(m_Data);
  200|    196|	}
_ZN4pcpp9IcmpLayer21setTimestampReplyDataEtt7timevalS1_S1_:
  204|     98|	{
  205|     98|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (205:7): [True: 0, False: 98]
  ------------------
  206|      0|			return nullptr;
  207|       |
  208|     98|		if (!this->extendLayer(m_DataLen, sizeof(icmp_timestamp_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (208:7): [True: 0, False: 98]
  ------------------
  209|      0|			return nullptr;
  210|       |
  211|     98|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIMESTAMP_REPLY);
  212|       |
  213|     98|		icmp_timestamp_reply* header = getTimestampReplyData();
  214|     98|		header->code = 0;
  215|     98|		header->id = htobe16(id);
  216|     98|		header->sequence = htobe16(sequence);
  217|     98|		header->originateTimestamp = htobe32(originateTimestamp.tv_sec * 1000 + originateTimestamp.tv_usec / 1000);
  218|     98|		header->receiveTimestamp = htobe32(receiveTimestamp.tv_sec * 1000 + receiveTimestamp.tv_usec / 1000);
  219|     98|		header->transmitTimestamp = htobe32(transmitTimestamp.tv_sec * 1000 + transmitTimestamp.tv_usec / 1000);
  220|       |
  221|     98|		return header;
  222|     98|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  225|    860|	{
  226|    860|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (226:7): [True: 0, False: 860]
  ------------------
  227|      0|			return nullptr;
  228|       |
  229|    860|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  230|    860|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  234|    430|	{
  235|    430|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (235:7): [True: 0, False: 430]
  ------------------
  236|      0|			return nullptr;
  237|       |
  238|    430|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (238:7): [True: 0, False: 430]
  ------------------
  239|      0|			return nullptr;
  240|       |
  241|    430|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  242|       |
  243|    430|		icmp_destination_unreachable* header = getDestUnreachableData();
  244|    430|		header->code = code;
  245|    430|		header->nextHopMTU = htobe16(nextHopMTU);
  246|    430|		header->unused = 0;
  247|       |
  248|    430|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (248:7): [True: 430, False: 0]
  ------------------
  249|    430|			return nullptr;
  250|       |
  251|      0|		return header;
  252|    430|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  317|  1.60k|	{
  318|  1.60k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (318:7): [True: 0, False: 1.60k]
  ------------------
  319|      0|			return nullptr;
  320|       |
  321|  1.60k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  322|       |
  323|  1.60k|		return &m_RouterAdvData;
  324|  1.60k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  328|    178|	{
  329|    178|		if (code != 0 && code != 16)
  ------------------
  |  Branch (329:7): [True: 178, False: 0]
  |  Branch (329:20): [True: 0, False: 178]
  ------------------
  330|      0|		{
  331|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  332|      0|			                               << " for ICMP router advertisement data (only codes 0 and 16 are legal)");
  333|      0|			return nullptr;
  334|      0|		}
  335|       |
  336|    178|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (336:7): [True: 0, False: 178]
  ------------------
  337|      0|			return nullptr;
  338|       |
  339|    178|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (339:7): [True: 0, False: 178]
  ------------------
  340|    178|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  341|    178|		                                      sizeof(icmphdr)))
  342|      0|			return nullptr;
  343|       |
  344|    178|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  345|       |
  346|    178|		icmp_router_advertisement* header = getRouterAdvertisementData();
  347|    178|		header->header->code = code;
  348|    178|		header->header->lifetime = htobe16(lifetimeInSeconds);
  349|    178|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  350|    178|		header->header->addressEntrySize = 2;
  351|       |
  352|    178|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  353|    178|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  354|    178|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (354:25): [True: 178, False: 178]
  ------------------
  355|    178|		{
  356|    178|			curPos->routerAddress = iter.routerAddress;
  357|    178|			curPos->preferenceLevel = iter.preferenceLevel;
  358|    178|			curPos += 1;
  359|    178|		}
  360|       |
  361|    178|		return header;
  362|    178|	}
_ZN4pcpp9IcmpLayer19getTimeExceededDataEv:
  386|    220|	{
  387|    220|		if (!isMessageOfType(ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (387:7): [True: 0, False: 220]
  ------------------
  388|      0|			return nullptr;
  389|       |
  390|    220|		return reinterpret_cast<icmp_time_exceeded*>(m_Data);
  391|    220|	}
_ZN4pcpp9IcmpLayer19setTimeExceededDataEhPNS_9IPv4LayerEPNS_5LayerE:
  394|    110|	{
  395|    110|		if (code > 1)
  ------------------
  |  Branch (395:7): [True: 0, False: 110]
  ------------------
  396|      0|		{
  397|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP time exceeded data");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  398|      0|			return nullptr;
  399|      0|		}
  400|       |
  401|    110|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (401:7): [True: 0, False: 110]
  ------------------
  402|      0|			return nullptr;
  403|       |
  404|    110|		if (!this->extendLayer(m_DataLen, sizeof(icmp_time_exceeded) - sizeof(icmphdr)))
  ------------------
  |  Branch (404:7): [True: 0, False: 110]
  ------------------
  405|      0|			return nullptr;
  406|       |
  407|    110|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIME_EXCEEDED);
  408|       |
  409|    110|		icmp_time_exceeded* header = getTimeExceededData();
  410|    110|		header->code = code;
  411|    110|		header->unused = 0;
  412|       |
  413|    110|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (413:7): [True: 110, False: 0]
  ------------------
  414|    110|			return nullptr;
  415|       |
  416|      0|		return header;
  417|    110|	}
_ZN4pcpp9IcmpLayer19getParamProblemDataEv:
  420|    128|	{
  421|    128|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (421:7): [True: 0, False: 128]
  ------------------
  422|      0|			return nullptr;
  423|       |
  424|    128|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  425|    128|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  429|     64|	{
  430|     64|		if (code > 2)
  ------------------
  |  Branch (430:7): [True: 0, False: 64]
  ------------------
  431|      0|		{
  432|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  433|      0|			return nullptr;
  434|      0|		}
  435|       |
  436|     64|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (436:7): [True: 0, False: 64]
  ------------------
  437|      0|			return nullptr;
  438|       |
  439|     64|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (439:7): [True: 0, False: 64]
  ------------------
  440|      0|			return nullptr;
  441|       |
  442|     64|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  443|       |
  444|     64|		icmp_param_problem* header = getParamProblemData();
  445|     64|		header->code = code;
  446|     64|		header->unused1 = 0;
  447|     64|		header->unused2 = 0;
  448|     64|		header->pointer = errorOctetPointer;
  449|       |
  450|     64|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (450:7): [True: 64, False: 0]
  ------------------
  451|     64|			return nullptr;
  452|       |
  453|      0|		return header;
  454|     64|	}
_ZN4pcpp9IcmpLayer23getAddressMaskReplyDataEv:
  484|    660|	{
  485|    660|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (485:7): [True: 0, False: 660]
  ------------------
  486|      0|			return nullptr;
  487|       |
  488|    660|		return reinterpret_cast<icmp_address_mask_reply*>(m_Data);
  489|    660|	}
_ZN4pcpp9IcmpLayer23setAddressMaskReplyDataEttNS_11IPv4AddressE:
  492|    330|	{
  493|    330|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (493:7): [True: 0, False: 330]
  ------------------
  494|      0|			return nullptr;
  495|       |
  496|    330|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (496:7): [True: 0, False: 330]
  ------------------
  497|      0|			return nullptr;
  498|       |
  499|    330|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REPLY);
  500|       |
  501|    330|		icmp_address_mask_reply* header = getAddressMaskReplyData();
  502|    330|		header->code = 0;
  503|    330|		header->id = htobe16(id);
  504|    330|		header->sequence = htobe16(sequence);
  505|    330|		header->addressMask = htobe32(mask.toInt());
  506|       |
  507|    330|		return header;
  508|    330|	}
_ZN4pcpp9IcmpLayer14parseNextLayerEv:
  563|  16.8k|	{
  564|  16.8k|		size_t headerLen = getHeaderLen();
  565|       |
  566|  16.8k|		auto payloadPtr = m_Data + headerLen;
  567|  16.8k|		auto payloadLen = m_DataLen - headerLen;
  568|       |
  569|  16.8k|		switch (getMessageType())
  570|  16.8k|		{
  571|  2.94k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (571:3): [True: 2.94k, False: 13.8k]
  ------------------
  572|  2.95k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (572:3): [True: 8, False: 16.7k]
  ------------------
  573|  3.65k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (573:3): [True: 708, False: 16.0k]
  ------------------
  574|  3.65k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (574:3): [True: 0, False: 16.8k]
  ------------------
  575|  3.91k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (575:3): [True: 256, False: 16.5k]
  ------------------
  576|  3.91k|		{
  577|  3.91k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  578|  3.91k|			break;
  579|  3.65k|		}
  580|  12.8k|		default:
  ------------------
  |  Branch (580:3): [True: 12.8k, False: 3.91k]
  ------------------
  581|  12.8k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (581:8): [True: 2.62k, False: 10.2k]
  ------------------
  582|  2.62k|			{
  583|  2.62k|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  584|  2.62k|			}
  585|  12.8k|			break;
  586|  16.8k|		}
  587|  16.8k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  590|  27.1k|	{
  591|  27.1k|		IcmpMessageType type = getMessageType();
  592|  27.1k|		size_t routerAdvSize = 0;
  593|  27.1k|		switch (type)
  594|  27.1k|		{
  595|  8.39k|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (595:3): [True: 8.39k, False: 18.7k]
  ------------------
  596|  15.0k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (596:3): [True: 6.66k, False: 20.4k]
  ------------------
  597|  15.0k|			return m_DataLen;
  598|    352|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (598:3): [True: 352, False: 26.7k]
  ------------------
  599|  1.13k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (599:3): [True: 784, False: 26.3k]
  ------------------
  600|  1.13k|			return sizeof(icmp_timestamp_request);
  601|     11|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (601:3): [True: 11, False: 27.1k]
  ------------------
  602|     11|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (602:3): [True: 0, False: 27.1k]
  ------------------
  603|     11|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (603:3): [True: 0, False: 27.1k]
  ------------------
  604|     11|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (604:3): [True: 0, False: 27.1k]
  ------------------
  605|     11|			return sizeof(icmphdr);
  606|  3.28k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (606:3): [True: 3.28k, False: 23.8k]
  ------------------
  607|  3.28k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (607:3): [True: 0, False: 27.1k]
  ------------------
  608|  3.28k|			return sizeof(icmp_address_mask_request);
  609|  4.71k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (609:3): [True: 4.71k, False: 22.4k]
  ------------------
  610|  4.71k|			return sizeof(icmp_destination_unreachable);
  611|      0|		case ICMP_REDIRECT:
  ------------------
  |  Branch (611:3): [True: 0, False: 27.1k]
  ------------------
  612|      0|			return sizeof(icmp_redirect);
  613|  1.14k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (613:3): [True: 1.14k, False: 25.9k]
  ------------------
  614|  1.15k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (614:3): [True: 11, False: 27.1k]
  ------------------
  615|  1.15k|			return sizeof(icmp_time_exceeded);
  616|    512|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (616:3): [True: 512, False: 26.6k]
  ------------------
  617|    512|			return sizeof(icmp_param_problem);
  618|  1.25k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (618:3): [True: 1.25k, False: 25.8k]
  ------------------
  619|       |			// clang-format off
  620|  1.25k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  621|       |			// clang-format on
  622|  1.25k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (622:8): [True: 1.23k, False: 13]
  ------------------
  623|  1.23k|				return m_DataLen;
  624|     13|			return routerAdvSize;
  625|      0|		default:
  ------------------
  |  Branch (625:3): [True: 0, False: 27.1k]
  ------------------
  626|      0|			return sizeof(icmphdr);
  627|  27.1k|		}
  628|  27.1k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  631|  3.01k|	{
  632|       |		// calculate checksum
  633|  3.01k|		getIcmpHeader()->checksum = 0;
  634|       |
  635|  3.01k|		size_t icmpLen = 0;
  636|  3.01k|		Layer* curLayer = this;
  637|  8.57k|		while (curLayer != nullptr)
  ------------------
  |  Branch (637:10): [True: 5.55k, False: 3.01k]
  ------------------
  638|  5.55k|		{
  639|  5.55k|			icmpLen += curLayer->getHeaderLen();
  640|  5.55k|			curLayer = curLayer->getNextLayer();
  641|  5.55k|		}
  642|       |
  643|  3.01k|		ScalarBuffer<uint16_t> buffer;
  644|  3.01k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  645|  3.01k|		buffer.len = icmpLen;
  646|  3.01k|		size_t checksum = computeChecksum(&buffer, 1);
  647|       |
  648|       |		getIcmpHeader()->checksum = htobe16(checksum);
  649|  3.01k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  652|  6.03k|	{
  653|  6.03k|		std::string messageTypeAsString;
  654|  6.03k|		IcmpMessageType type = getMessageType();
  655|  6.03k|		switch (type)
  656|  6.03k|		{
  657|  1.75k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (657:3): [True: 1.75k, False: 4.27k]
  ------------------
  658|  1.75k|			messageTypeAsString = "Echo (ping) reply";
  659|  1.75k|			break;
  660|    860|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (660:3): [True: 860, False: 5.17k]
  ------------------
  661|    860|			messageTypeAsString = "Destination unreachable";
  662|    860|			break;
  663|      2|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (663:3): [True: 2, False: 6.02k]
  ------------------
  664|      2|			messageTypeAsString = "Source quench (flow control)";
  665|      2|			break;
  666|      0|		case ICMP_REDIRECT:
  ------------------
  |  Branch (666:3): [True: 0, False: 6.03k]
  ------------------
  667|      0|			messageTypeAsString = "Redirect";
  668|      0|			break;
  669|  1.78k|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (669:3): [True: 1.78k, False: 4.24k]
  ------------------
  670|  1.78k|			messageTypeAsString = "Echo (ping) request";
  671|  1.78k|			break;
  672|    356|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (672:3): [True: 356, False: 5.67k]
  ------------------
  673|    356|			messageTypeAsString = "Router advertisement";
  674|    356|			break;
  675|      2|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (675:3): [True: 2, False: 6.02k]
  ------------------
  676|      2|			messageTypeAsString = "Router solicitation";
  677|      2|			break;
  678|    220|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (678:3): [True: 220, False: 5.81k]
  ------------------
  679|    220|			messageTypeAsString = "Time-to-live exceeded";
  680|    220|			break;
  681|    128|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (681:3): [True: 128, False: 5.90k]
  ------------------
  682|    128|			messageTypeAsString = "Parameter problem: bad IP header";
  683|    128|			break;
  684|     64|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (684:3): [True: 64, False: 5.96k]
  ------------------
  685|     64|			messageTypeAsString = "Timestamp request";
  686|     64|			break;
  687|    196|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (687:3): [True: 196, False: 5.83k]
  ------------------
  688|    196|			messageTypeAsString = "Timestamp reply";
  689|    196|			break;
  690|      0|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (690:3): [True: 0, False: 6.03k]
  ------------------
  691|      0|			messageTypeAsString = "Information request";
  692|      0|			break;
  693|      0|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (693:3): [True: 0, False: 6.03k]
  ------------------
  694|      0|			messageTypeAsString = "Information reply";
  695|      0|			break;
  696|      0|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (696:3): [True: 0, False: 6.03k]
  ------------------
  697|      0|			messageTypeAsString = "Address mask request";
  698|      0|			break;
  699|    660|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (699:3): [True: 660, False: 5.37k]
  ------------------
  700|    660|			messageTypeAsString = "Address mask reply";
  701|    660|			break;
  702|      0|		default:
  ------------------
  |  Branch (702:3): [True: 0, False: 6.03k]
  ------------------
  703|      0|			messageTypeAsString = "Unknown";
  704|      0|			break;
  705|  6.03k|		}
  706|       |
  707|  6.03k|		std::ostringstream typeStream;
  708|  6.03k|		typeStream << (int)getIcmpHeader()->type;
  709|       |
  710|  6.03k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  711|  6.03k|	}

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

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

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   25|  12.8k|	{
   26|  12.8k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (26:7): [True: 0, False: 12.8k]
  ------------------
   27|      0|			return;
   28|       |
   29|  12.8k|		llc_header* hdr = getLlcHeader();
   30|  12.8k|		uint8_t* payload = m_Data + sizeof(llc_header);
   31|  12.8k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   32|       |
   33|  12.8k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (33:7): [True: 5.46k, False: 7.33k]
  |  Branch (33:28): [True: 5.46k, False: 4]
  |  Branch (33:49): [True: 5.46k, False: 0]
  ------------------
   34|  5.46k|		{
   35|  5.46k|			constructNextLayerFromFactory(StpLayer::parseStpLayer, payload, payloadLen);
   36|  5.46k|		}
   37|       |
   38|  12.8k|		if (!hasNextLayer())
  ------------------
  |  Branch (38:7): [True: 7.48k, False: 5.31k]
  ------------------
   39|  7.48k|		{
   40|  7.48k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   41|  7.48k|		}
   42|  12.8k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   45|  5.02k|	{
   46|  5.02k|		return "Logical Link Control";
   47|  5.02k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   50|  13.5k|	{
   51|  13.5k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (51:10): [True: 12.9k, False: 648]
  |  Branch (51:45): [True: 4.56k, False: 8.35k]
  |  Branch (51:64): [True: 116, False: 4.44k]
  ------------------
   52|  13.5k|	}

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

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

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

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

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

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

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

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

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   24|  11.1k|	{
   25|  11.1k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   26|  11.1k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (26:7): [True: 10.4k, False: 727]
  ------------------
   27|  10.4k|		{
   28|  10.4k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (28:8): [True: 8.96k, False: 1.45k]
  |  Branch (28:39): [True: 375, False: 8.58k]
  ------------------
   29|    375|			{
   30|    375|				family >>= 16;
   31|    375|			}
   32|  10.0k|			else
   33|  10.0k|			{
   34|  10.0k|				family = BSWAP32(family);
  ------------------
  |  |   11|  10.0k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   35|  10.0k|			}
   36|  10.4k|		}
   37|    727|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (37:12): [True: 0, False: 727]
  |  Branch (37:43): [True: 0, False: 0]
  ------------------
   38|      0|		{
   39|      0|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|      0|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   40|      0|		}
   41|       |
   42|  11.1k|		return family;
   43|  11.1k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   51|  11.1k|	{
   52|  11.1k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   53|  11.1k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   54|       |
   55|  11.1k|		uint32_t family = getFamily();
   56|  11.1k|		if (family > IEEE_802_3_MAX_LEN)
  ------------------
  |  |   13|  11.1k|#define IEEE_802_3_MAX_LEN 0x5dc
  ------------------
  |  Branch (56:7): [True: 10.1k, False: 961]
  ------------------
   57|  10.1k|		{
   58|  10.1k|			uint16_t ethType = static_cast<uint16_t>(family);
   59|  10.1k|			switch (ethType)
   60|  10.1k|			{
   61|  8.41k|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  8.41k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:4): [True: 8.41k, False: 1.76k]
  ------------------
   62|  8.41k|			{
   63|  8.41k|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|  8.41k|				return;
   65|      0|			}
   66|      0|			case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:4): [True: 0, False: 10.1k]
  ------------------
   67|      0|			{
   68|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|      0|				return;
   70|      0|			}
   71|  1.76k|			default:
  ------------------
  |  Branch (71:4): [True: 1.76k, False: 8.41k]
  ------------------
   72|  1.76k|			{
   73|  1.76k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|  1.76k|				return;
   75|      0|			}
   76|  10.1k|			}
   77|  10.1k|		}
   78|       |
   79|    961|		switch (family)
   80|    961|		{
   81|    264|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|    264|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (81:3): [True: 264, False: 697]
  ------------------
   82|    264|		{
   83|    264|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   84|    264|			break;
   85|      0|		}
   86|    322|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    322|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (86:3): [True: 322, False: 639]
  ------------------
   87|    322|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    322|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (87:3): [True: 0, False: 961]
  ------------------
   88|    322|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|    322|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (88:3): [True: 0, False: 961]
  ------------------
   89|    322|		{
   90|    322|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   91|    322|			break;
   92|    322|		}
   93|    375|		default:
  ------------------
  |  Branch (93:3): [True: 375, False: 586]
  ------------------
   94|    375|		{
   95|    375|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   96|    375|			break;
   97|    322|		}
   98|    961|		}
   99|    961|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  102|  4.48k|	{
  103|  4.48k|		return "Null/Loopback";
  104|  4.48k|	}

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

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

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

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

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

_ZN4pcpp15PostgresMessage27parsePostgresBackendMessageEPKhm:
  309|      7|	{
  310|      7|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (310:7): [True: 0, False: 7]
  |  Branch (310:26): [True: 0, False: 7]
  ------------------
  311|      0|		{
  312|      0|			return nullptr;
  313|      0|		}
  314|       |
  315|      7|		if (dataLen < 5)
  ------------------
  |  Branch (315:7): [True: 6, False: 1]
  ------------------
  316|      6|		{
  317|      6|			return std::unique_ptr<PostgresMessage>(
  318|      6|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  319|      6|		}
  320|       |
  321|      1|		auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  322|      1|		if (dataLen < messageLength + 1)
  ------------------
  |  Branch (322:7): [True: 1, False: 0]
  ------------------
  323|      1|		{
  324|      1|			return std::unique_ptr<PostgresMessage>(
  325|      1|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  326|      1|		}
  327|       |
  328|      0|		auto messageTypeValue = data[0];
  329|      0|		auto messageType = PostgresMessageType::Backend_Unknown;
  330|       |
  331|      0|		switch (messageTypeValue)
  332|      0|		{
  333|      0|		case PostgresBackendMessage_R:
  ------------------
  |  Branch (333:3): [True: 0, False: 0]
  ------------------
  334|      0|		{
  335|      0|			uint32_t authType = be32toh(*reinterpret_cast<const uint32_t*>(data + 5));
  336|      0|			switch (authType)
  337|      0|			{
  338|      0|			case 0:
  ------------------
  |  Branch (338:4): [True: 0, False: 0]
  ------------------
  339|      0|			{
  340|      0|				messageType = PostgresMessageType::Backend_AuthenticationOk;
  341|      0|				break;
  342|      0|			}
  343|      0|			case 1:
  ------------------
  |  Branch (343:4): [True: 0, False: 0]
  ------------------
  344|      0|			{
  345|      0|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV4;
  346|      0|				break;
  347|      0|			}
  348|      0|			case 2:
  ------------------
  |  Branch (348:4): [True: 0, False: 0]
  ------------------
  349|      0|			{
  350|      0|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV5;
  351|      0|				break;
  352|      0|			}
  353|      0|			case 3:
  ------------------
  |  Branch (353:4): [True: 0, False: 0]
  ------------------
  354|      0|			{
  355|      0|				messageType = PostgresMessageType::Backend_AuthenticationCleartextPassword;
  356|      0|				break;
  357|      0|			}
  358|      0|			case 5:
  ------------------
  |  Branch (358:4): [True: 0, False: 0]
  ------------------
  359|      0|			{
  360|      0|				messageType = PostgresMessageType::Backend_AuthenticationMD5Password;
  361|      0|				break;
  362|      0|			}
  363|      0|			case 7:
  ------------------
  |  Branch (363:4): [True: 0, False: 0]
  ------------------
  364|      0|			{
  365|      0|				messageType = PostgresMessageType::Backend_AuthenticationGSS;
  366|      0|				break;
  367|      0|			}
  368|      0|			case 8:
  ------------------
  |  Branch (368:4): [True: 0, False: 0]
  ------------------
  369|      0|			{
  370|      0|				messageType = PostgresMessageType::Backend_AuthenticationGSSContinue;
  371|      0|				break;
  372|      0|			}
  373|      0|			case 9:
  ------------------
  |  Branch (373:4): [True: 0, False: 0]
  ------------------
  374|      0|			{
  375|      0|				messageType = PostgresMessageType::Backend_AuthenticationSSPI;
  376|      0|				break;
  377|      0|			}
  378|      0|			case 10:
  ------------------
  |  Branch (378:4): [True: 0, False: 0]
  ------------------
  379|      0|			{
  380|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASL;
  381|      0|				break;
  382|      0|			}
  383|      0|			case 11:
  ------------------
  |  Branch (383:4): [True: 0, False: 0]
  ------------------
  384|      0|			{
  385|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLContinue;
  386|      0|				break;
  387|      0|			}
  388|      0|			case 12:
  ------------------
  |  Branch (388:4): [True: 0, False: 0]
  ------------------
  389|      0|			{
  390|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLFinal;
  391|      0|				break;
  392|      0|			}
  393|      0|			default:
  ------------------
  |  Branch (393:4): [True: 0, False: 0]
  ------------------
  394|      0|			{
  395|      0|				break;
  396|      0|			}
  397|      0|			}
  398|      0|			break;
  399|      0|		}
  400|      0|		case PostgresBackendMessage_K:
  ------------------
  |  Branch (400:3): [True: 0, False: 0]
  ------------------
  401|      0|		{
  402|      0|			messageType = PostgresMessageType::Backend_BackendKeyData;
  403|      0|			break;
  404|      0|		}
  405|      0|		case PostgresBackendMessage_2:
  ------------------
  |  Branch (405:3): [True: 0, False: 0]
  ------------------
  406|      0|		{
  407|      0|			messageType = PostgresMessageType::Backend_BindComplete;
  408|      0|			break;
  409|      0|		}
  410|      0|		case PostgresBackendMessage_3:
  ------------------
  |  Branch (410:3): [True: 0, False: 0]
  ------------------
  411|      0|		{
  412|      0|			messageType = PostgresMessageType::Backend_CloseComplete;
  413|      0|			break;
  414|      0|		}
  415|      0|		case PostgresBackendMessage_S:
  ------------------
  |  Branch (415:3): [True: 0, False: 0]
  ------------------
  416|      0|		{
  417|      0|			return std::make_unique<PostgresParameterStatus>(data, messageLength + 1);
  418|      0|		}
  419|      0|		case PostgresBackendMessage_Z:
  ------------------
  |  Branch (419:3): [True: 0, False: 0]
  ------------------
  420|      0|		{
  421|      0|			messageType = PostgresMessageType::Backend_ReadyForQuery;
  422|      0|			break;
  423|      0|		}
  424|      0|		case PostgresBackendMessage_C:
  ------------------
  |  Branch (424:3): [True: 0, False: 0]
  ------------------
  425|      0|		{
  426|      0|			messageType = PostgresMessageType::Backend_CommandComplete;
  427|      0|			break;
  428|      0|		}
  429|      0|		case PostgresBackendMessage_d:
  ------------------
  |  Branch (429:3): [True: 0, False: 0]
  ------------------
  430|      0|		{
  431|      0|			messageType = PostgresMessageType::Backend_CopyData;
  432|      0|			break;
  433|      0|		}
  434|      0|		case PostgresBackendMessage_c:
  ------------------
  |  Branch (434:3): [True: 0, False: 0]
  ------------------
  435|      0|		{
  436|      0|			messageType = PostgresMessageType::Backend_CopyDone;
  437|      0|			break;
  438|      0|		}
  439|      0|		case PostgresBackendMessage_G:
  ------------------
  |  Branch (439:3): [True: 0, False: 0]
  ------------------
  440|      0|		{
  441|      0|			messageType = PostgresMessageType::Backend_CopyInResponse;
  442|      0|			break;
  443|      0|		}
  444|      0|		case PostgresBackendMessage_H:
  ------------------
  |  Branch (444:3): [True: 0, False: 0]
  ------------------
  445|      0|		{
  446|      0|			messageType = PostgresMessageType::Backend_CopyOutResponse;
  447|      0|			break;
  448|      0|		}
  449|      0|		case PostgresBackendMessage_W:
  ------------------
  |  Branch (449:3): [True: 0, False: 0]
  ------------------
  450|      0|		{
  451|      0|			messageType = PostgresMessageType::Backend_CopyBothResponse;
  452|      0|			break;
  453|      0|		}
  454|      0|		case PostgresBackendMessage_D:
  ------------------
  |  Branch (454:3): [True: 0, False: 0]
  ------------------
  455|      0|		{
  456|      0|			return std::make_unique<PostgresDataRowMessage>(data, messageLength + 1);
  457|      0|		}
  458|      0|		case PostgresBackendMessage_I:
  ------------------
  |  Branch (458:3): [True: 0, False: 0]
  ------------------
  459|      0|		{
  460|      0|			messageType = PostgresMessageType::Backend_EmptyQueryResponse;
  461|      0|			break;
  462|      0|		}
  463|      0|		case PostgresBackendMessage_E:
  ------------------
  |  Branch (463:3): [True: 0, False: 0]
  ------------------
  464|      0|		{
  465|      0|			return std::make_unique<PostgresErrorResponseMessage>(data, messageLength + 1);
  466|      0|		}
  467|      0|		case PostgresBackendMessage_V:
  ------------------
  |  Branch (467:3): [True: 0, False: 0]
  ------------------
  468|      0|		{
  469|      0|			messageType = PostgresMessageType::Backend_FunctionCallResponse;
  470|      0|			break;
  471|      0|		}
  472|      0|		case PostgresBackendMessage_v:
  ------------------
  |  Branch (472:3): [True: 0, False: 0]
  ------------------
  473|      0|		{
  474|      0|			messageType = PostgresMessageType::Backend_NegotiateProtocolVersion;
  475|      0|			break;
  476|      0|		}
  477|      0|		case PostgresBackendMessage_n:
  ------------------
  |  Branch (477:3): [True: 0, False: 0]
  ------------------
  478|      0|		{
  479|      0|			messageType = PostgresMessageType::Backend_NoData;
  480|      0|			break;
  481|      0|		}
  482|      0|		case PostgresBackendMessage_N:
  ------------------
  |  Branch (482:3): [True: 0, False: 0]
  ------------------
  483|      0|		{
  484|      0|			messageType = PostgresMessageType::Backend_NoticeResponse;
  485|      0|			break;
  486|      0|		}
  487|      0|		case PostgresBackendMessage_A:
  ------------------
  |  Branch (487:3): [True: 0, False: 0]
  ------------------
  488|      0|		{
  489|      0|			messageType = PostgresMessageType::Backend_NotificationResponse;
  490|      0|			break;
  491|      0|		}
  492|      0|		case PostgresBackendMessage_t:
  ------------------
  |  Branch (492:3): [True: 0, False: 0]
  ------------------
  493|      0|		{
  494|      0|			messageType = PostgresMessageType::Backend_ParameterDescription;
  495|      0|			break;
  496|      0|		}
  497|      0|		case PostgresBackendMessage_1:
  ------------------
  |  Branch (497:3): [True: 0, False: 0]
  ------------------
  498|      0|		{
  499|      0|			messageType = PostgresMessageType::Backend_ParseComplete;
  500|      0|			break;
  501|      0|		}
  502|      0|		case PostgresBackendMessage_s:
  ------------------
  |  Branch (502:3): [True: 0, False: 0]
  ------------------
  503|      0|		{
  504|      0|			messageType = PostgresMessageType::Backend_PortalSuspended;
  505|      0|			break;
  506|      0|		}
  507|      0|		case PostgresBackendMessage_T:
  ------------------
  |  Branch (507:3): [True: 0, False: 0]
  ------------------
  508|      0|		{
  509|      0|			return std::make_unique<PostgresRowDescriptionMessage>(data, messageLength + 1);
  510|      0|		}
  511|      0|		default:
  ------------------
  |  Branch (511:3): [True: 0, False: 0]
  ------------------
  512|      0|		{
  513|      0|			break;
  514|      0|		}
  515|      0|		}
  516|       |
  517|      0|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  518|      0|	}
_ZN4pcpp15PostgresMessage28parsePostgresFrontendMessageEPKhm:
  521|     11|	{
  522|     11|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (522:7): [True: 0, False: 11]
  |  Branch (522:26): [True: 0, False: 11]
  ------------------
  523|      0|		{
  524|      0|			return nullptr;
  525|      0|		}
  526|       |
  527|     11|		uint8_t messageTypeValue = data[0];
  528|     11|		if (messageTypeValue == PostgresMessage_0)
  ------------------
  |  Branch (528:7): [True: 4, False: 7]
  ------------------
  529|      4|		{
  530|      4|			if (dataLen < 8)
  ------------------
  |  Branch (530:8): [True: 1, False: 3]
  ------------------
  531|      1|			{
  532|      1|				return std::unique_ptr<PostgresMessage>(
  533|      1|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  534|      1|			}
  535|       |
  536|      3|			auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data));
  537|      3|			if (messageLength > dataLen)
  ------------------
  |  Branch (537:8): [True: 2, False: 1]
  ------------------
  538|      2|			{
  539|      2|				return std::unique_ptr<PostgresMessage>(
  540|      2|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  541|      2|			}
  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|      0|			case PostgresFrontendTag_GSSENCRequest:
  ------------------
  |  Branch (562:4): [True: 0, False: 1]
  ------------------
  563|      0|			{
  564|      0|				messageType = PostgresMessageType::Frontend_GSSENCRequest;
  565|      0|				break;
  566|      0|			}
  567|      1|			default:
  ------------------
  |  Branch (567:4): [True: 1, False: 0]
  ------------------
  568|      1|			{
  569|      1|				break;
  570|      0|			}
  571|      1|			}
  572|       |
  573|      1|			return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength, messageType));
  574|      1|		}
  575|       |
  576|      7|		if (dataLen < 5)
  ------------------
  |  Branch (576:7): [True: 2, False: 5]
  ------------------
  577|      2|		{
  578|      2|			return std::unique_ptr<PostgresMessage>(
  579|      2|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  580|      2|		}
  581|       |
  582|      5|		auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  583|      5|		if (dataLen < messageLength + 1)
  ------------------
  |  Branch (583:7): [True: 4, False: 1]
  ------------------
  584|      4|		{
  585|      4|			return std::unique_ptr<PostgresMessage>(
  586|      4|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  587|      4|		}
  588|       |
  589|      1|		auto messageType = PostgresMessageType::Frontend_Unknown;
  590|      1|		switch (messageTypeValue)
  591|      1|		{
  592|      0|		case PostgresFrontendMessage_Q:
  ------------------
  |  Branch (592:3): [True: 0, False: 1]
  ------------------
  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: 1]
  ------------------
  598|      0|		{
  599|      0|			messageType = PostgresMessageType::Frontend_Parse;
  600|      0|			break;
  601|      0|		}
  602|      0|		case PostgresFrontendMessage_B:
  ------------------
  |  Branch (602:3): [True: 0, False: 1]
  ------------------
  603|      0|		{
  604|      0|			messageType = PostgresMessageType::Frontend_Bind;
  605|      0|			break;
  606|      0|		}
  607|      0|		case PostgresFrontendMessage_E:
  ------------------
  |  Branch (607:3): [True: 0, False: 1]
  ------------------
  608|      0|		{
  609|      0|			messageType = PostgresMessageType::Frontend_Execute;
  610|      0|			break;
  611|      0|		}
  612|      0|		case PostgresFrontendMessage_C:
  ------------------
  |  Branch (612:3): [True: 0, False: 1]
  ------------------
  613|      0|		{
  614|      0|			messageType = PostgresMessageType::Frontend_Close;
  615|      0|			break;
  616|      0|		}
  617|      0|		case PostgresFrontendMessage_D:
  ------------------
  |  Branch (617:3): [True: 0, False: 1]
  ------------------
  618|      0|		{
  619|      0|			messageType = PostgresMessageType::Frontend_Describe;
  620|      0|			break;
  621|      0|		}
  622|      0|		case PostgresFrontendMessage_F:
  ------------------
  |  Branch (622:3): [True: 0, False: 1]
  ------------------
  623|      0|		{
  624|      0|			messageType = PostgresMessageType::Frontend_FunctionCall;
  625|      0|			break;
  626|      0|		}
  627|      0|		case PostgresFrontendMessage_H:
  ------------------
  |  Branch (627:3): [True: 0, False: 1]
  ------------------
  628|      0|		{
  629|      0|			messageType = PostgresMessageType::Frontend_Flush;
  630|      0|			break;
  631|      0|		}
  632|      0|		case PostgresFrontendMessage_S:
  ------------------
  |  Branch (632:3): [True: 0, False: 1]
  ------------------
  633|      0|		{
  634|      0|			messageType = PostgresMessageType::Frontend_Sync;
  635|      0|			break;
  636|      0|		}
  637|      0|		case PostgresFrontendMessage_d:
  ------------------
  |  Branch (637:3): [True: 0, False: 1]
  ------------------
  638|      0|		{
  639|      0|			messageType = PostgresMessageType::Frontend_CopyData;
  640|      0|			break;
  641|      0|		}
  642|      0|		case PostgresFrontendMessage_c:
  ------------------
  |  Branch (642:3): [True: 0, False: 1]
  ------------------
  643|      0|		{
  644|      0|			messageType = PostgresMessageType::Frontend_CopyDone;
  645|      0|			break;
  646|      0|		}
  647|      0|		case PostgresFrontendMessage_f:
  ------------------
  |  Branch (647:3): [True: 0, False: 1]
  ------------------
  648|      0|		{
  649|      0|			messageType = PostgresMessageType::Frontend_CopyFail;
  650|      0|			break;
  651|      0|		}
  652|      0|		case PostgresFrontendMessage_X:
  ------------------
  |  Branch (652:3): [True: 0, False: 1]
  ------------------
  653|      0|		{
  654|      0|			messageType = PostgresMessageType::Frontend_Terminate;
  655|      0|			break;
  656|      0|		}
  657|      1|		default:
  ------------------
  |  Branch (657:3): [True: 1, False: 0]
  ------------------
  658|      1|		{
  659|      1|			break;
  660|      0|		}
  661|      1|		}
  662|       |
  663|      1|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  664|      1|	}
_ZN4pcpp13PostgresLayer28parsePostgresBackendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1010|     35|	{
 1011|     35|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Backend);
 1012|     35|	}
_ZN4pcpp13PostgresLayer29parsePostgresFrontendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1016|     45|	{
 1017|     45|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Frontend);
 1018|     45|	}
_ZNK4pcpp13PostgresLayer19getPostgresMessagesEv:
 1021|     32|	{
 1022|     32|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (1022:7): [True: 16, False: 16]
  ------------------
 1023|     16|		{
 1024|     16|			auto parseFunc = (m_MessageOrigin == PostgresMessageOrigin::Backend)
  ------------------
  |  Branch (1024:21): [True: 7, False: 9]
  ------------------
 1025|     16|			                     ? &PostgresMessage::parsePostgresBackendMessage
 1026|     16|			                     : &PostgresMessage::parsePostgresFrontendMessage;
 1027|       |
 1028|     16|			auto data = m_Data;
 1029|     16|			auto dataLen = m_DataLen;
 1030|       |
 1031|     34|			while (dataLen > 0)
  ------------------
  |  Branch (1031:11): [True: 18, False: 16]
  ------------------
 1032|     18|			{
 1033|     18|				auto curMessage = parseFunc(data, dataLen);
 1034|     18|				if (curMessage == nullptr)
  ------------------
  |  Branch (1034:9): [True: 0, False: 18]
  ------------------
 1035|      0|				{
 1036|      0|					break;
 1037|      0|				}
 1038|       |
 1039|     18|				dataLen -= curMessage->getTotalMessageLength();
 1040|     18|				data += curMessage->getTotalMessageLength();
 1041|     18|				m_Messages.pushBack(std::move(curMessage));
 1042|     18|			}
 1043|       |
 1044|     16|			m_MessagesInitialized = true;
 1045|     16|		}
 1046|       |
 1047|     32|		return m_Messages;
 1048|     32|	}
_ZNK4pcpp13PostgresLayer8toStringEv:
 1061|     32|	{
 1062|     32|		const auto& messages = getPostgresMessages();
 1063|     32|		return std::string("PostgreSQL ") +
 1064|     32|		       (m_MessageOrigin == PostgresMessageOrigin::Frontend ? "Frontend" : "Backend") + " Layer, " +
  ------------------
  |  Branch (1064:11): [True: 18, False: 14]
  ------------------
 1065|     32|		       std::to_string(messages.size()) + " message(s)";
 1066|     32|	}

_ZN4pcpp11RadiusLayer22getRadiusMessageStringEh:
   93|  9.14k|	{
   94|  9.14k|		switch (radiusMessageCode)
   95|  9.14k|		{
   96|  2.45k|		case 1:
  ------------------
  |  Branch (96:3): [True: 2.45k, False: 6.68k]
  ------------------
   97|  2.45k|			return "Access-Request";
   98|    582|		case 2:
  ------------------
  |  Branch (98:3): [True: 582, False: 8.55k]
  ------------------
   99|    582|			return "Access-Accept";
  100|    656|		case 3:
  ------------------
  |  Branch (100:3): [True: 656, False: 8.48k]
  ------------------
  101|    656|			return "Access-Reject";
  102|    198|		case 4:
  ------------------
  |  Branch (102:3): [True: 198, False: 8.94k]
  ------------------
  103|    198|			return "Accounting-Request";
  104|     86|		case 5:
  ------------------
  |  Branch (104:3): [True: 86, False: 9.05k]
  ------------------
  105|     86|			return "Accounting-Response";
  106|  1.45k|		case 11:
  ------------------
  |  Branch (106:3): [True: 1.45k, False: 7.68k]
  ------------------
  107|  1.45k|			return "Access-Challenge";
  108|      0|		case 12:
  ------------------
  |  Branch (108:3): [True: 0, False: 9.14k]
  ------------------
  109|      0|			return "Status-Server";
  110|      0|		case 13:
  ------------------
  |  Branch (110:3): [True: 0, False: 9.14k]
  ------------------
  111|      0|			return "Status-Client";
  112|  1.93k|		case 40:
  ------------------
  |  Branch (112:3): [True: 1.93k, False: 7.20k]
  ------------------
  113|  1.93k|			return "Disconnect-Request";
  114|  1.23k|		case 41:
  ------------------
  |  Branch (114:3): [True: 1.23k, False: 7.90k]
  ------------------
  115|  1.23k|			return "Disconnect-ACK";
  116|    186|		case 42:
  ------------------
  |  Branch (116:3): [True: 186, False: 8.95k]
  ------------------
  117|    186|			return "Disconnect-NAK";
  118|      0|		case 43:
  ------------------
  |  Branch (118:3): [True: 0, False: 9.14k]
  ------------------
  119|      0|			return "CoA-Request";
  120|    114|		case 44:
  ------------------
  |  Branch (120:3): [True: 114, False: 9.02k]
  ------------------
  121|    114|			return "CoA-ACK";
  122|      0|		case 45:
  ------------------
  |  Branch (122:3): [True: 0, False: 9.14k]
  ------------------
  123|      0|			return "CoA-NAK";
  124|     32|		case 255:
  ------------------
  |  Branch (124:3): [True: 32, False: 9.10k]
  ------------------
  125|     32|			return "Reserved";
  126|    214|		default:
  ------------------
  |  Branch (126:3): [True: 214, False: 8.92k]
  ------------------
  127|    214|			return "Unknown";
  128|  9.14k|		}
  129|  9.14k|	}
_ZNK4pcpp11RadiusLayer12getHeaderLenEv:
  132|  4.57k|	{
  133|  4.57k|		uint16_t len = be16toh(getRadiusHeader()->length);
  134|  4.57k|		if (len > m_DataLen)
  ------------------
  |  Branch (134:7): [True: 0, False: 4.57k]
  ------------------
  135|      0|			return m_DataLen;
  136|       |
  137|  4.57k|		return len;
  138|  4.57k|	}
_ZN4pcpp11RadiusLayer22computeCalculateFieldsEv:
  141|  4.57k|	{
  142|       |		getRadiusHeader()->length = htobe16(m_DataLen);
  143|  4.57k|	}
_ZNK4pcpp11RadiusLayer8toStringEv:
  146|  9.14k|	{
  147|  9.14k|		std::ostringstream str;
  148|  9.14k|		str << "RADIUS Layer, " << RadiusLayer::getRadiusMessageString(getRadiusHeader()->code) << "("
  149|  9.14k|		    << (int)getRadiusHeader()->code
  150|  9.14k|		    << "), "
  151|  9.14k|		       "Id="
  152|  9.14k|		    << (int)getRadiusHeader()->id << ", "
  153|  9.14k|		    << "Length=" << be16toh(getRadiusHeader()->length);
  154|       |
  155|  9.14k|		return str.str();
  156|  9.14k|	}
_ZN4pcpp11RadiusLayer11isDataValidEPKhm:
  239|  29.9k|	{
  240|  29.9k|		if (udpData != nullptr && udpDataLen >= sizeof(radius_header))
  ------------------
  |  Branch (240:7): [True: 29.9k, False: 0]
  |  Branch (240:29): [True: 29.7k, False: 140]
  ------------------
  241|  29.7k|		{
  242|  29.7k|			const radius_header* radHdr = reinterpret_cast<const radius_header*>(udpData);
  243|  29.7k|			size_t radLen = be16toh(radHdr->length);
  244|  29.7k|			return radLen >= sizeof(radius_header) && radLen <= udpDataLen;
  ------------------
  |  Branch (244:11): [True: 29.6k, False: 105]
  |  Branch (244:46): [True: 22.8k, False: 6.80k]
  ------------------
  245|  29.7k|		}
  246|    140|		return false;
  247|  29.9k|	}

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

_ZNK4pcpp11S7CommLayer8toStringEv:
   46|  2.06k|	{
   47|  2.06k|		std::ostringstream str;
   48|  2.06k|		str << "S7Comm Layer, ";
   49|       |
   50|  2.06k|		switch (getS7commHeader()->msgType)
   51|  2.06k|		{
   52|    110|		case 0x01:
  ------------------
  |  Branch (52:3): [True: 110, False: 1.95k]
  ------------------
   53|    110|			str << "Job Request";
   54|    110|			break;
   55|      4|		case 0x02:
  ------------------
  |  Branch (55:3): [True: 4, False: 2.06k]
  ------------------
   56|      4|			str << "Ack";
   57|      4|			break;
   58|    102|		case 0x03:
  ------------------
  |  Branch (58:3): [True: 102, False: 1.96k]
  ------------------
   59|    102|			str << "Ack-Data";
   60|    102|			break;
   61|  1.07k|		case 0x07:
  ------------------
  |  Branch (61:3): [True: 1.07k, False: 994]
  ------------------
   62|  1.07k|			str << "Userdata";
   63|  1.07k|			break;
   64|    778|		default:
  ------------------
  |  Branch (64:3): [True: 778, False: 1.29k]
  ------------------
   65|    778|			str << "Unknown message";
   66|  2.06k|		}
   67|       |
   68|  2.06k|		return str.str();
   69|  2.06k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   72|  8.45k|	{
   73|  8.45k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (73:7): [True: 0, False: 8.45k]
  |  Branch (73:16): [True: 0, False: 8.45k]
  ------------------
   74|      0|			return false;
   75|       |
   76|  8.45k|		return data[0] == 0x32;
   77|  8.45k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  14.9k|	{
   20|  14.9k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  14.9k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 1.14k, False: 13.8k]
  ------------------
   22|  1.14k|			return sshIdnetMsg;
   23|       |
   24|  13.8k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  13.8k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 2.17k, False: 11.6k]
  ------------------
   26|  2.17k|			return sshHandshakeMessage;
   27|       |
   28|  11.6k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  13.8k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  14.9k|	{
   33|  14.9k|		size_t headerLen = getHeaderLen();
   34|  14.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 14.2k, False: 744]
  ------------------
   35|  14.2k|			return;
   36|       |
   37|    744|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|    744|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  14.9k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  14.9k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 245, False: 14.7k]
  ------------------
   49|    245|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  14.7k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 10.0k, False: 4.63k]
  |  Branch (52:26): [True: 9.71k, False: 377]
  |  Branch (52:45): [True: 9.65k, False: 66]
  |  Branch (52:64): [True: 9.62k, False: 25]
  |  Branch (52:83): [True: 1.14k, False: 8.48k]
  ------------------
   53|  1.14k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  13.5k|		return nullptr;
   56|  14.7k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|    458|	{
   67|    458|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Identification message";
  ------------------
  |  |   12|    458|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
   68|    458|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|    798|	{
   76|    798|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|    798|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 232, False: 566]
  |  Branch (77:28): [True: 206, False: 360]
  |  Branch (77:50): [True: 360, False: 0]
  |  Branch (77:71): [True: 360, False: 0]
  ------------------
   78|    798|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|      0|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|    798|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|    798|	{
   84|    798|		switch (getMessageType())
   85|    798|		{
   86|    232|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 232, False: 566]
  ------------------
   87|    232|			return "Key Exchange Init";
   88|    206|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 206, False: 592]
  ------------------
   89|    206|			return "New Keys";
   90|      4|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 4, False: 794]
  ------------------
   91|      4|			return "Diffie-Hellman Key Exchange Init";
   92|     86|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 86, False: 712]
  ------------------
   93|     86|			return "Diffie-Hellman Key Exchange Reply";
   94|     74|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 74, False: 724]
  ------------------
   95|     74|			return "Diffie-Hellman Group Exchange Init";
   96|    114|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 114, False: 684]
  ------------------
   97|    114|			return "Diffie-Hellman Group Exchange Reply";
   98|     82|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 82, False: 716]
  ------------------
   99|     82|			return "Diffie-Hellman Group Exchange Request";
  100|      0|		default:
  ------------------
  |  Branch (100:3): [True: 0, False: 798]
  ------------------
  101|      0|			return "Unknown";
  102|    798|		}
  103|    798|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  122|  2.56k|	{
  123|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  124|  2.56k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  127|    798|	{
  128|    798|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Handshake Message: " + getMessageTypeStr();
  ------------------
  |  |   12|    798|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  129|    798|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  132|  13.8k|	{
  133|  13.8k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (133:7): [True: 260, False: 13.5k]
  ------------------
  134|    260|		{
  135|    260|			PCPP_LOG_DEBUG(
  ------------------
  |  |  425|    260|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    260|	do                                                                                                                 \
  |  |  |  |  413|    260|	{                                                                                                                  \
  |  |  |  |  414|    260|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    260|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    260|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 260]
  |  |  |  |  ------------------
  |  |  |  |  416|    260|		{                                                                                                              \
  |  |  |  |  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|    260|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 260]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|    260|			    "Data length is smaller than the minimum size of an SSH handshake message. It's probably not an SSH handshake message");
  137|    260|			return nullptr;
  138|    260|		}
  139|       |
  140|  13.5k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  141|       |
  142|  13.5k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  143|  13.5k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (143:7): [True: 11.3k, False: 2.25k]
  ------------------
  144|  11.3k|		{
  145|  11.3k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|  11.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  11.3k|	do                                                                                                                 \
  |  |  |  |  413|  11.3k|	{                                                                                                                  \
  |  |  |  |  414|  11.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  11.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  11.3k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 11.3k]
  |  |  |  |  ------------------
  |  |  |  |  416|  11.3k|		{                                                                                                              \
  |  |  |  |  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|  11.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 11.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|  11.3k|			return nullptr;
  147|  11.3k|		}
  148|       |
  149|  2.25k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (149:7): [True: 0, False: 2.25k]
  ------------------
  150|      0|		{
  151|      0|			PCPP_LOG_DEBUG("Message padding is larger than message size. It's probably not an SSH handshake message");
  ------------------
  |  |  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 PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  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|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|      0|			return nullptr;
  153|      0|		}
  154|       |
  155|  2.25k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (155:7): [True: 1.61k, False: 646]
  |  Branch (155:37): [True: 1.04k, False: 566]
  ------------------
  156|  1.04k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (156:8): [True: 16, False: 1.02k]
  |  Branch (156:37): [True: 70, False: 958]
  ------------------
  157|     86|		{
  158|     86|			PCPP_LOG_DEBUG("Unknown message type " << (int)msgBase->messageCode
  ------------------
  |  |  425|     86|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     86|	do                                                                                                                 \
  |  |  |  |  413|     86|	{                                                                                                                  \
  |  |  |  |  414|     86|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     86|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     86|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 86]
  |  |  |  |  ------------------
  |  |  |  |  416|     86|		{                                                                                                              \
  |  |  |  |  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|     86|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 86]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|     86|			                                       << ". It's probably not an SSH handshake message");
  160|     86|			return nullptr;
  161|     86|		}
  162|       |
  163|  2.17k|		switch (msgBase->messageCode)
  164|  2.17k|		{
  165|    646|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (165:3): [True: 646, False: 1.52k]
  ------------------
  166|    646|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  167|  1.52k|		default:
  ------------------
  |  Branch (167:3): [True: 1.52k, False: 646]
  ------------------
  168|  1.52k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  169|  2.17k|		}
  170|  2.17k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  178|    646|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  179|    646|	{
  180|    646|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  181|    646|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  256|  4.53k|	{
  257|  4.53k|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Encrypted Message";
  ------------------
  |  |   12|  4.53k|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  258|  4.53k|	}

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

_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|   140k|	{
 1057|   140k|		std::unordered_map<uint16_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteIdToObjectMap.find(id);
 1058|   140k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 45.4k, False: 95.2k]
  ------------------
 1059|  45.4k|			return nullptr;
 1060|  95.2k|		else
 1061|  95.2k|			return pos->second;
 1062|   140k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  6.78k|	{
 1066|  6.78k|		uint32_t nameHash = hashString(std::move(name));
 1067|  6.78k|		std::unordered_map<uint32_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  6.78k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 6.78k]
  ------------------
 1069|      0|			return nullptr;
 1070|  6.78k|		else
 1071|  6.78k|			return pos->second;
 1072|  6.78k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   363k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   363k|	{
 1083|   363k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 363k]
  |  Branch (1083:26): [True: 0, False: 363k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   363k|		uint16_t extDataLen = getLength();
 1089|   363k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 363k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   363k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  19.5k|	{
 1097|  19.5k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  19.5k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 9.93k, False: 9.63k]
  |  Branch (1098:26): [True: 534, False: 9.09k]
  |  Branch (1098:45): [True: 2.32k, False: 6.76k]
  ------------------
 1099|  12.7k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  6.76k|		return SSL_EXT_Unknown;
 1102|  19.5k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|  94.6k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|  94.6k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   767k|	{
 1111|   767k|		return getExtensionStruct()->getDataLength();
 1112|   767k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   363k|	{
 1116|   363k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   363k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  25.2k|	{
 1121|  25.2k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 24.0k, False: 1.19k]
  ------------------
 1122|  24.0k|		{
 1123|  24.0k|			return getExtensionStruct()->extensionData;
 1124|  24.0k|		}
 1125|       |
 1126|  1.19k|		return nullptr;
 1127|  25.2k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|  1.14M|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|  1.14M|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  5.57k|	{
 1140|  5.57k|		auto* extensionDataPtr = getData();
 1141|  5.57k|		if (extensionDataPtr == nullptr)
  ------------------
  |  Branch (1141:7): [True: 1.19k, False: 4.38k]
  ------------------
 1142|  1.19k|		{
 1143|  1.19k|			return "";
 1144|  1.19k|		}
 1145|       |
 1146|  4.38k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1147|  4.38k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1148|       |
 1149|  4.38k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1150|  4.38k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1151|  4.38k|		uint8_t const* extensionDataEndIt = extensionDataPtr + getLength();
 1152|       |
 1153|  4.38k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1153:7): [True: 36, False: 4.34k]
  ------------------
 1154|     36|		{
 1155|     36|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  431|     36|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|     36|	do                                                                                                                 \
  |  |  |  |  413|     36|	{                                                                                                                  \
  |  |  |  |  414|     36|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     36|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     36|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 36, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     36|		{                                                                                                              \
  |  |  |  |  417|     36|			auto ctx =                                                                                                 \
  |  |  |  |  418|     36|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     36|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     36|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     36|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     36|		}                                                                                                              \
  |  |  |  |  422|     36|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 36]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1156|     36|			hostNameDataEndIt = extensionDataEndIt;
 1157|     36|		}
 1158|       |
 1159|  4.38k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1160|  5.57k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1167|  3.84k|	{
 1168|  3.84k|		std::vector<SSLVersion> result;
 1169|  3.84k|		uint16_t extensionLength = getLength();
 1170|  3.84k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1170:7): [True: 1.89k, False: 1.94k]
  ------------------
 1171|  1.89k|		{
 1172|  1.89k|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1173|  1.89k|		}
 1174|  1.94k|		else  // client-hello message
 1175|  1.94k|		{
 1176|  1.94k|			uint8_t listLength = *getData();
 1177|  1.94k|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1177:8): [True: 0, False: 1.94k]
  |  Branch (1177:67): [True: 0, False: 1.94k]
  ------------------
 1178|      0|				return result;  // bad extension data
 1179|       |
 1180|  1.94k|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1181|  7.09k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1181:20): [True: 5.14k, False: 1.94k]
  ------------------
 1182|  5.14k|			{
 1183|  5.14k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1184|  5.14k|				dataPtr += sizeof(uint16_t);
 1185|  5.14k|			}
 1186|  1.94k|		}
 1187|       |
 1188|  3.84k|		return result;
 1189|  3.84k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1196|  4.62k|	{
 1197|  4.62k|		std::vector<uint16_t> result;
 1198|       |
 1199|  4.62k|		uint16_t extensionLength = getLength();
 1200|  4.62k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1200:7): [True: 1, False: 4.62k]
  ------------------
 1201|      1|			return result;  // bad extension data
 1202|       |
 1203|  4.62k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1204|  4.62k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1204:7): [True: 243, False: 4.38k]
  |  Branch (1204:61): [True: 0, False: 4.38k]
  ------------------
 1205|    243|			return result;  // bad extension data
 1206|       |
 1207|  4.38k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1208|  23.9k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1208:19): [True: 19.6k, False: 4.38k]
  ------------------
 1209|  19.6k|		{
 1210|  19.6k|			result.push_back(be16toh(*(uint16_t*)dataPtr));
 1211|  19.6k|			dataPtr += sizeof(uint16_t);
 1212|  19.6k|		}
 1213|       |
 1214|  4.38k|		return result;
 1215|  4.62k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1222|  2.44k|	{
 1223|  2.44k|		std::vector<uint8_t> result;
 1224|       |
 1225|  2.44k|		uint16_t extensionLength = getLength();
 1226|       |
 1227|  2.44k|		if (extensionLength < 1)
  ------------------
  |  Branch (1227:7): [True: 0, False: 2.44k]
  ------------------
 1228|      0|			return result;
 1229|       |
 1230|  2.44k|		uint8_t listLength = *getData();
 1231|       |
 1232|  2.44k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1232:7): [True: 2, False: 2.44k]
  ------------------
 1233|      2|			return result;  // bad extension data
 1234|       |
 1235|  2.44k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1236|  5.63k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1236:19): [True: 3.19k, False: 2.44k]
  ------------------
 1237|  3.19k|		{
 1238|  3.19k|			result.push_back(*dataPtr);
 1239|  3.19k|			dataPtr += sizeof(uint8_t);
 1240|  3.19k|		}
 1241|       |
 1242|  2.44k|		return result;
 1243|  2.44k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1281|   127k|	{
 1282|   127k|		m_Data = data;
 1283|   127k|		m_DataLen = dataLen;
 1284|   127k|		m_Container = container;
 1285|   127k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1289|   221k|	{
 1290|   221k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1290:7): [True: 94.2k, False: 127k]
  ------------------
 1291|  94.2k|			return nullptr;
 1292|       |
 1293|   127k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1294|       |
 1295|   127k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1295:7): [True: 127k, False: 239]
  |  Branch (1295:25): [True: 4.03k, False: 123k]
  |  Branch (1295:66): [True: 17.4k, False: 105k]
  ------------------
 1296|  21.4k|		{
 1297|       |			// possibly Encrypted Handshake Message
 1298|       |			// used heuristic:
 1299|       |			// - handshake layer of more than 16 byte
 1300|       |			// - first 5 bytes of the handshake message are zeroes
 1301|       |			// - or wrong message length is over 64K
 1302|       |			// - or message type makes so sense (handled through the switch statement)
 1303|  21.4k|			return new SSLUnknownMessage(data, dataLen, container);
 1304|  21.4k|		}
 1305|       |
 1306|   105k|		switch (hsMsgHeader->handshakeType)
 1307|   105k|		{
 1308|  37.2k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1308:3): [True: 37.2k, False: 68.7k]
  ------------------
 1309|  37.2k|			return new SSLClientHelloMessage(data, dataLen, container);
 1310|  35.5k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1310:3): [True: 35.5k, False: 70.3k]
  ------------------
 1311|  35.5k|			return new SSLServerHelloMessage(data, dataLen, container);
 1312|  8.37k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1312:3): [True: 8.37k, False: 97.5k]
  ------------------
 1313|  8.37k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1314|  4.16k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1314:3): [True: 4.16k, False: 101k]
  ------------------
 1315|  4.16k|			return new SSLCertificateMessage(data, dataLen, container);
 1316|     41|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1316:3): [True: 41, False: 105k]
  ------------------
 1317|     41|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1318|     10|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 10, False: 105k]
  ------------------
 1319|     10|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1320|      0|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1320:3): [True: 0, False: 105k]
  ------------------
 1321|      0|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1322|  5.95k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 5.95k, False: 99.9k]
  ------------------
 1323|  5.95k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1324|  1.93k|		case SSL_FINISHED:
  ------------------
  |  Branch (1324:3): [True: 1.93k, False: 103k]
  ------------------
 1325|  1.93k|			return new SSLFinishedMessage(data, dataLen, container);
 1326|  11.8k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1326:3): [True: 11.8k, False: 94.0k]
  ------------------
 1327|  11.8k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1328|    638|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1328:3): [True: 638, False: 105k]
  ------------------
 1329|    638|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1330|    197|		default:
  ------------------
  |  Branch (1330:3): [True: 197, False: 105k]
  ------------------
 1331|    197|			return new SSLUnknownMessage(data, dataLen, container);
 1332|   105k|		}
 1333|   105k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1336|  6.78k|	{
 1337|  6.78k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1338|  6.78k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1339|  6.78k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1342|   274k|	{
 1343|   274k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|       |		// TODO: add handshakeLayer->length1 to the calculation
 1345|   274k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1346|   274k|		if (len > m_DataLen)
  ------------------
  |  Branch (1346:7): [True: 56.1k, False: 218k]
  ------------------
 1347|  56.1k|			return m_DataLen;
 1348|       |
 1349|   218k|		return len;
 1350|   274k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1353|  13.8k|	{
 1354|  13.8k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1354:7): [True: 0, False: 13.8k]
  ------------------
 1355|      0|			return false;
 1356|       |
 1357|  13.8k|		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|  13.8k|		return len <= m_DataLen;
 1360|  13.8k|	}
_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: 3.07k, False: 34.1k]
  ------------------
 1373|  3.07k|			return;
 1374|       |
 1375|  34.1k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1376|  34.1k|		uint16_t extensionLength = getExtensionsLength();
 1377|  34.1k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1378|       |
 1379|  34.1k|		size_t messageLen = getMessageLength();
 1380|       |
 1381|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1382|  34.1k|		uint8_t* extensionIt = extensionPos;
 1383|  34.1k|		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|  34.1k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1388|  34.1k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1388:7): [True: 10.5k, False: 23.6k]
  ------------------
 1389|  10.5k|		{
 1390|  10.5k|			extensionEndIt = endOfMessageIt;
 1391|  10.5k|		}
 1392|       |
 1393|  34.1k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1394|   354k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1394:10): [True: 340k, False: 13.4k]
  ------------------
 1395|   340k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1395:10): [True: 334k, False: 6.50k]
  ------------------
 1396|   334k|		{
 1397|   334k|			std::unique_ptr<SSLExtension> newExt;
 1398|       |
 1399|   334k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1400|   334k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1401|       |
 1402|   334k|			switch (sslExtType)
 1403|   334k|			{
 1404|  40.5k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1404:4): [True: 40.5k, False: 293k]
  ------------------
 1405|  40.5k|			{
 1406|  40.5k|				newExt =
 1407|  40.5k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1408|  40.5k|				break;
 1409|      0|			}
 1410|  9.61k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1410:4): [True: 9.61k, False: 324k]
  ------------------
 1411|  9.61k|			{
 1412|  9.61k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1413|  9.61k|				break;
 1414|      0|			}
 1415|  23.1k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1415:4): [True: 23.1k, False: 311k]
  ------------------
 1416|  23.1k|			{
 1417|  23.1k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1418|  23.1k|				break;
 1419|      0|			}
 1420|  12.2k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1420:4): [True: 12.2k, False: 321k]
  ------------------
 1421|  12.2k|			{
 1422|  12.2k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1423|  12.2k|				break;
 1424|      0|			}
 1425|   248k|			default:
  ------------------
  |  Branch (1425:4): [True: 248k, False: 85.5k]
  ------------------
 1426|   248k|			{
 1427|   248k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1428|   248k|			}
 1429|   334k|			}
 1430|       |
 1431|   334k|			if (newExt == nullptr)
  ------------------
  |  Branch (1431:8): [True: 14.1k, False: 320k]
  ------------------
 1432|  14.1k|			{
 1433|  14.1k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  14.1k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  14.1k|	do                                                                                                                 \
  |  |  |  |  413|  14.1k|	{                                                                                                                  \
  |  |  |  |  414|  14.1k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  14.1k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  14.1k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 14.1k]
  |  |  |  |  ------------------
  |  |  |  |  416|  14.1k|		{                                                                                                              \
  |  |  |  |  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|  14.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 14.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1434|  14.1k|				                                                        << " skipping remaining extensions.");
 1435|  14.1k|				break;
 1436|  14.1k|			}
 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|   320k|			size_t newExtTotalLen = newExt->getTotalLength();
 1441|   320k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1441:8): [True: 0, False: 320k]
  ------------------
 1442|      0|			{
 1443|      0|				break;
 1444|      0|			}
 1445|       |
 1446|   320k|			m_ExtensionList.pushBack(std::move(newExt));
 1447|   320k|			std::advance(extensionIt, newExtTotalLen);
 1448|   320k|		}
 1449|  34.1k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1452|  13.5k|	{
 1453|  13.5k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1453:7): [True: 0, False: 13.5k]
  ------------------
 1454|      0|			return SSLVersion(0);
 1455|       |
 1456|  13.5k|		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1457|  13.5k|		return SSLVersion(handshakeVersion);
 1458|  13.5k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1461|  20.9M|	{
 1462|  20.9M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1462:7): [True: 1.35k, False: 20.9M]
  ------------------
 1463|  1.35k|			return 0;
 1464|       |
 1465|  20.9M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1466|  20.9M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1466:7): [True: 774, False: 20.9M]
  ------------------
 1467|    774|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1468|       |
 1469|  20.9M|		return val;
 1470|  20.9M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1473|  6.78k|	{
 1474|  6.78k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1474:7): [True: 2.27k, False: 4.51k]
  ------------------
 1475|  2.27k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1476|  4.51k|		else
 1477|  4.51k|			return nullptr;
 1478|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1481|  11.9M|	{
 1482|  11.9M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1483|  11.9M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1483:7): [True: 1.14k, False: 11.9M]
  ------------------
 1484|  1.14k|			return 0;
 1485|       |
 1486|  11.9M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1487|       |		return be16toh(cipherSuiteLen) / 2;
 1488|  11.9M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1491|  2.96M|	{
 1492|  2.96M|		bool isValid;
 1493|  2.96M|		uint16_t id = getCipherSuiteID(index, isValid);
 1494|  2.96M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1494:11): [True: 137k, False: 2.83M]
  ------------------
 1495|  2.96M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1498|  8.90M|	{
 1499|  8.90M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1499:7): [True: 0, False: 8.90M]
  |  Branch (1499:20): [True: 0, False: 8.90M]
  ------------------
 1500|      0|		{
 1501|      0|			isValid = false;
 1502|      0|			return 0;
 1503|      0|		}
 1504|       |
 1505|  8.90M|		size_t cipherSuiteStartOffset =
 1506|  8.90M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1507|  8.90M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1507:7): [True: 8.49M, False: 411k]
  ------------------
 1508|  8.49M|		{
 1509|  8.49M|			isValid = false;
 1510|  8.49M|			return 0;
 1511|  8.49M|		}
 1512|       |
 1513|   411k|		isValid = true;
 1514|   411k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1515|       |		return be16toh(*(cipherSuiteStartPos + index));
 1516|  8.90M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1519|  6.78k|	{
 1520|  6.78k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1521|  6.78k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1522|  6.78k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1522:7): [True: 497, False: 6.28k]
  ------------------
 1523|    497|			return 0xff;
 1524|       |
 1525|  6.28k|		uint8_t* pos = m_Data + offset;
 1526|  6.28k|		return *pos;
 1527|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1530|  6.78k|	{
 1531|  6.78k|		return m_ExtensionList.size();
 1532|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1535|  34.1k|	{
 1536|  34.1k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1537|  34.1k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1538|  34.1k|		                               2 * sizeof(uint8_t);
 1539|  34.1k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1539:7): [True: 0, False: 34.1k]
  ------------------
 1540|      0|			return 0;
 1541|       |
 1542|  34.1k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1543|       |		return be16toh(*(uint16_t*)extensionLengthPos);
 1544|  34.1k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1547|  55.9k|	{
 1548|  55.9k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1549|  55.9k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1552|  6.78k|	{
 1553|  6.78k|		size_t vecSize = m_ExtensionList.size();
 1554|  13.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1554:22): [True: 12.1k, False: 1.21k]
  ------------------
 1555|  12.1k|		{
 1556|  12.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1557|  12.1k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1557:8): [True: 5.57k, False: 6.56k]
  ------------------
 1558|  5.57k|				return curElem;
 1559|  12.1k|		}
 1560|       |
 1561|  1.21k|		return nullptr;
 1562|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1565|  6.78k|	{
 1566|  6.78k|		size_t vecSize = m_ExtensionList.size();
 1567|  13.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1567:22): [True: 12.1k, False: 1.21k]
  ------------------
 1568|  12.1k|		{
 1569|  12.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1570|  12.1k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1570:8): [True: 5.57k, False: 6.56k]
  ------------------
 1571|  5.57k|				return curElem;
 1572|  12.1k|		}
 1573|       |
 1574|  1.21k|		return nullptr;
 1575|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1578|  6.78k|	{
 1579|  6.78k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1580|       |
 1581|       |		// extract version
 1582|  6.78k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1583|       |
 1584|       |		// extract cipher suites
 1585|  6.78k|		int cipherSuiteCount = getCipherSuiteCount();
 1586|  2.97M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1586:19): [True: 2.96M, False: 6.78k]
  ------------------
 1587|  2.96M|		{
 1588|  2.96M|			bool isValid = false;
 1589|  2.96M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1590|  2.96M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1590:8): [True: 137k, False: 2.83M]
  |  Branch (1590:8): [True: 135k, False: 2.83M]
  |  Branch (1590:19): [True: 135k, False: 1.39k]
  ------------------
 1591|   135k|				result.cipherSuites.push_back(cipherSuiteID);
 1592|  2.96M|		}
 1593|       |
 1594|       |		// extract extensions
 1595|  6.78k|		int extensionCount = getExtensionCount();
 1596|  62.7k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1596:19): [True: 55.9k, False: 6.78k]
  ------------------
 1597|  55.9k|		{
 1598|  55.9k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1599|  55.9k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1599:8): [True: 1.40k, False: 54.5k]
  ------------------
 1600|  1.40k|				continue;
 1601|       |
 1602|  54.5k|			result.extensions.push_back(extensionType);
 1603|  54.5k|		}
 1604|       |
 1605|       |		// extract supported groups
 1606|  6.78k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1607|  6.78k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1607:7): [True: 4.62k, False: 2.15k]
  ------------------
 1608|  4.62k|		{
 1609|  4.62k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1610|  4.62k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1610:26): [True: 19.6k, False: 4.62k]
  ------------------
 1611|  19.6k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1611:9): [True: 19.1k, False: 479]
  ------------------
 1612|  19.1k|					result.supportedGroups.push_back(iter);
 1613|  4.62k|		}
 1614|       |
 1615|       |		// extract EC point formats
 1616|  6.78k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1617|  6.78k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1617:7): [True: 2.44k, False: 4.34k]
  ------------------
 1618|  2.44k|		{
 1619|  2.44k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1620|  2.44k|		}
 1621|       |
 1622|  6.78k|		return result;
 1623|  6.78k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1626|  13.7k|	{
 1627|  13.7k|		return "Client Hello message";
 1628|  13.7k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1635|  6.78k|	{
 1636|  6.78k|		std::stringstream tlsFingerprint;
 1637|       |
 1638|       |		// add version
 1639|  6.78k|		tlsFingerprint << tlsVersion << ",";
 1640|       |
 1641|       |		// add cipher suites
 1642|  6.78k|		bool firstCipher = true;
 1643|  6.78k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1643:25): [True: 135k, False: 6.78k]
  ------------------
 1644|   135k|		{
 1645|   135k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1645:23): [True: 6.54k, False: 129k]
  ------------------
 1646|   135k|			firstCipher = false;
 1647|   135k|		}
 1648|  6.78k|		tlsFingerprint << ",";
 1649|       |
 1650|       |		// add extensions
 1651|  6.78k|		bool firstExtension = true;
 1652|  6.78k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1652:25): [True: 54.5k, False: 6.78k]
  ------------------
 1653|  54.5k|		{
 1654|  54.5k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1654:23): [True: 6.11k, False: 48.4k]
  ------------------
 1655|  54.5k|			firstExtension = false;
 1656|  54.5k|		}
 1657|  6.78k|		tlsFingerprint << ",";
 1658|       |
 1659|       |		// add supported groups
 1660|  6.78k|		bool firstGroup = true;
 1661|  6.78k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1661:25): [True: 19.1k, False: 6.78k]
  ------------------
 1662|  19.1k|		{
 1663|  19.1k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1663:23): [True: 4.38k, False: 14.7k]
  ------------------
 1664|  19.1k|			firstGroup = false;
 1665|  19.1k|		}
 1666|  6.78k|		tlsFingerprint << ",";
 1667|       |
 1668|       |		// add EC point formats
 1669|  6.78k|		bool firstPointFormat = true;
 1670|  6.78k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1670:18): [True: 3.19k, False: 6.78k]
  ------------------
 1671|  3.19k|		{
 1672|  3.19k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1672:23): [True: 2.43k, False: 754]
  ------------------
 1673|  3.19k|			firstPointFormat = false;
 1674|  3.19k|		}
 1675|       |
 1676|  6.78k|		return tlsFingerprint.str();
 1677|  6.78k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1680|  6.78k|	{
 1681|  6.78k|		return toStringAndMD5().second;
 1682|  6.78k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1685|  6.78k|	{
 1686|  6.78k|		std::string str = toString();
 1687|  6.78k|		MD5 md5;
 1688|  6.78k|		return std::pair<std::string, std::string>(str, md5(str));
 1689|  6.78k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1696|  35.5k|	    : SSLHandshakeMessage(data, dataLen, container)
 1697|  35.5k|	{
 1698|  35.5k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1699|  35.5k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1700|  35.5k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1700:7): [True: 10.9k, False: 24.6k]
  ------------------
 1701|  10.9k|			return;
 1702|       |
 1703|  24.6k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1704|  24.6k|		uint16_t extensionLength = getExtensionsLength();
 1705|  24.6k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1706|  24.6k|		size_t messageLen = getMessageLength();
 1707|       |
 1708|  24.6k|		uint8_t* extensionIt = extensionPos;
 1709|  24.6k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1710|       |
 1711|  24.6k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1712|  24.6k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1712:7): [True: 12.0k, False: 12.5k]
  ------------------
 1713|  12.0k|		{
 1714|  12.0k|			extensionEndIt = endOfMessageIt;
 1715|  12.0k|		}
 1716|       |
 1717|  24.6k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1718|  67.8k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1718:10): [True: 43.7k, False: 24.0k]
  ------------------
 1719|  43.7k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1719:10): [True: 43.7k, False: 10]
  ------------------
 1720|  43.7k|		{
 1721|  43.7k|			std::unique_ptr<SSLExtension> newExt;
 1722|       |
 1723|  43.7k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1724|  43.7k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1725|       |
 1726|  43.7k|			switch (sslExtType)
 1727|  43.7k|			{
 1728|  8.24k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1728:4): [True: 8.24k, False: 35.5k]
  ------------------
 1729|  8.24k|			{
 1730|  8.24k|				newExt =
 1731|  8.24k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1732|  8.24k|				break;
 1733|      0|			}
 1734|  7.00k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1734:4): [True: 7.00k, False: 36.7k]
  ------------------
 1735|  7.00k|			{
 1736|  7.00k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1737|  7.00k|				break;
 1738|      0|			}
 1739|      0|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1739:4): [True: 0, False: 43.7k]
  ------------------
 1740|      0|			{
 1741|      0|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1742|      0|				break;
 1743|      0|			}
 1744|  3.93k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1744:4): [True: 3.93k, False: 39.8k]
  ------------------
 1745|  3.93k|			{
 1746|  3.93k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1747|  3.93k|				break;
 1748|      0|			}
 1749|  24.6k|			default:
  ------------------
  |  Branch (1749:4): [True: 24.6k, False: 19.1k]
  ------------------
 1750|  24.6k|			{
 1751|  24.6k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1752|  24.6k|			}
 1753|  43.7k|			}
 1754|       |
 1755|  43.7k|			if (newExt == nullptr)
  ------------------
  |  Branch (1755:8): [True: 594, False: 43.1k]
  ------------------
 1756|    594|			{
 1757|    594|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|    594|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    594|	do                                                                                                                 \
  |  |  |  |  413|    594|	{                                                                                                                  \
  |  |  |  |  414|    594|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    594|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    594|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 594]
  |  |  |  |  ------------------
  |  |  |  |  416|    594|		{                                                                                                              \
  |  |  |  |  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|    594|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 594]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|    594|				                                                        << " skipping remaining extensions.");
 1759|    594|				break;
 1760|    594|			}
 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|  43.1k|			size_t newExtTotalLen = newExt->getTotalLength();
 1765|  43.1k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1765:8): [True: 0, False: 43.1k]
  ------------------
 1766|      0|			{
 1767|      0|				break;
 1768|      0|			}
 1769|       |
 1770|  43.1k|			m_ExtensionList.pushBack(std::move(newExt));
 1771|  43.1k|			std::advance(extensionIt, newExtTotalLen);
 1772|  43.1k|		}
 1773|  24.6k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1776|  8.88k|	{
 1777|  8.88k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1778|  8.88k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1778:7): [True: 1.92k, False: 6.95k]
  ------------------
 1779|  1.92k|		{
 1780|  1.92k|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1781|  1.92k|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1781:8): [True: 1.89k, False: 30]
  ------------------
 1782|  1.89k|				return supportedVersions[0];
 1783|  1.92k|		}
 1784|       |
 1785|  6.98k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1785:7): [True: 0, False: 6.98k]
  ------------------
 1786|      0|			return SSLVersion(0);
 1787|       |
 1788|  6.98k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1789|  6.98k|		return SSLVersion(handshakeVersion);
 1790|  6.98k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1792|  77.9k|	{
 1793|  77.9k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1793:7): [True: 635, False: 77.2k]
  ------------------
 1794|    635|			return 0;
 1795|       |
 1796|  77.2k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1797|  77.2k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1797:7): [True: 12.5k, False: 64.7k]
  ------------------
 1798|  12.5k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1799|       |
 1800|  64.7k|		return val;
 1801|  77.2k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1804|  4.44k|	{
 1805|  4.44k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1805:7): [True: 4.16k, False: 278]
  ------------------
 1806|  4.16k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1807|    278|		else
 1808|    278|			return nullptr;
 1809|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1812|  4.44k|	{
 1813|  4.44k|		bool isValid;
 1814|  4.44k|		uint16_t id = getCipherSuiteID(isValid);
 1815|  4.44k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1815:11): [True: 3.51k, False: 921]
  ------------------
 1816|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1819|  8.88k|	{
 1820|  8.88k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1821|  8.88k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1821:7): [True: 1.84k, False: 7.03k]
  ------------------
 1822|  1.84k|		{
 1823|  1.84k|			isValid = false;
 1824|  1.84k|			return 0;
 1825|  1.84k|		}
 1826|       |
 1827|  7.03k|		isValid = true;
 1828|  7.03k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1829|       |		return be16toh(*(cipherSuiteStartPos));
 1830|  8.88k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1833|  4.44k|	{
 1834|  4.44k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1835|  4.44k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1835:7): [True: 922, False: 3.51k]
  ------------------
 1836|    922|			return 0xff;
 1837|       |
 1838|  3.51k|		uint8_t* pos = m_Data + offset;
 1839|  3.51k|		return *pos;
 1840|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1843|  4.44k|	{
 1844|  4.44k|		return m_ExtensionList.size();
 1845|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1848|  24.6k|	{
 1849|  24.6k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1850|  24.6k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1851|  24.6k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1851:7): [True: 0, False: 24.6k]
  ------------------
 1852|      0|			return 0;
 1853|       |
 1854|  24.6k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1855|       |		return be16toh(*extensionLengthPos);
 1856|  24.6k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1859|  6.95k|	{
 1860|  6.95k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1860:7): [True: 0, False: 6.95k]
  |  Branch (1860:20): [True: 0, False: 6.95k]
  ------------------
 1861|      0|			return nullptr;
 1862|       |
 1863|  6.95k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1864|  6.95k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1867|  4.44k|	{
 1868|  4.44k|		size_t vecSize = m_ExtensionList.size();
 1869|  7.56k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1869:22): [True: 3.71k, False: 3.85k]
  ------------------
 1870|  3.71k|		{
 1871|  3.71k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1872|  3.71k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1872:8): [True: 586, False: 3.12k]
  ------------------
 1873|    586|				return curElem;
 1874|  3.71k|		}
 1875|       |
 1876|  3.85k|		return nullptr;
 1877|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1880|  4.44k|	{
 1881|  4.44k|		size_t vecSize = m_ExtensionList.size();
 1882|  7.56k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1882:22): [True: 3.71k, False: 3.85k]
  ------------------
 1883|  3.71k|		{
 1884|  3.71k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1885|  3.71k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1885:8): [True: 586, False: 3.12k]
  ------------------
 1886|    586|				return curElem;
 1887|  3.71k|		}
 1888|       |
 1889|  3.85k|		return nullptr;
 1890|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1893|  4.44k|	{
 1894|  4.44k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1895|       |
 1896|       |		// extract version
 1897|  4.44k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1898|       |
 1899|       |		// extract cipher suite
 1900|  4.44k|		bool isValid;
 1901|  4.44k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1902|  4.44k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1902:25): [True: 3.51k, False: 921]
  ------------------
 1903|       |
 1904|       |		// extract extensions
 1905|  4.44k|		int extensionCount = getExtensionCount();
 1906|  11.3k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1906:19): [True: 6.95k, False: 4.44k]
  ------------------
 1907|  6.95k|		{
 1908|  6.95k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1909|  6.95k|			result.extensions.push_back(extensionType);
 1910|  6.95k|		}
 1911|       |
 1912|  4.44k|		return result;
 1913|  4.44k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1916|  9.17k|	{
 1917|  9.17k|		return "Server Hello message";
 1918|  9.17k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1925|  4.44k|	{
 1926|  4.44k|		std::stringstream tlsFingerprint;
 1927|       |
 1928|       |		// add version and cipher suite
 1929|  4.44k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1930|       |
 1931|       |		// add extensions
 1932|  4.44k|		bool firstExtension = true;
 1933|  4.44k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1933:25): [True: 6.95k, False: 4.44k]
  ------------------
 1934|  6.95k|		{
 1935|  6.95k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1935:23): [True: 1.92k, False: 5.02k]
  ------------------
 1936|  6.95k|			firstExtension = false;
 1937|  6.95k|		}
 1938|       |
 1939|  4.44k|		return tlsFingerprint.str();
 1940|  4.44k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1943|  4.44k|	{
 1944|  4.44k|		return toStringAndMD5().second;
 1945|  4.44k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1948|  4.44k|	{
 1949|  4.44k|		std::string str = toString();
 1950|  4.44k|		MD5 md5;
 1951|  4.44k|		return std::pair<std::string, std::string>(str, md5(str));
 1952|  4.44k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1959|  4.16k|	    : SSLHandshakeMessage(data, dataLen, container)
 1960|  4.16k|	{
 1961|  4.16k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1961:7): [True: 65, False: 4.10k]
  ------------------
 1962|     65|			return;
 1963|       |
 1964|  4.10k|		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|  4.10k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1968|  4.10k|		uint16_t certificatesLength = be16toh(*(uint16_t*)(curPos));
 1969|  4.10k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1969:7): [True: 0, False: 4.10k]
  ------------------
 1970|      0|			return;
 1971|       |
 1972|       |		// advance to position of first certificate
 1973|  4.10k|		curPos += sizeof(uint16_t);
 1974|       |
 1975|  8.72k|		while (true)
  ------------------
  |  Branch (1975:10): [True: 8.72k, Folded]
  ------------------
 1976|  8.72k|		{
 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|  8.72k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1979:8): [True: 4.10k, False: 4.62k]
  ------------------
 1980|  4.10k|				break;
 1981|       |
 1982|       |			// read certificate length
 1983|  4.62k|			curPos += sizeof(uint8_t);
 1984|  4.62k|			uint16_t certificateLength = be16toh(*(uint16_t*)(curPos));
 1985|       |
 1986|       |			// advance to start position of certificate
 1987|  4.62k|			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|  4.62k|			bool certificateFull = true;
 1992|  4.62k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1992:8): [True: 4.02k, False: 598]
  ------------------
 1993|  4.02k|			{
 1994|  4.02k|				certificateLength = messageLen - (curPos - data);
 1995|  4.02k|				certificateFull = false;
 1996|  4.02k|			}
 1997|       |
 1998|  4.62k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  425|  4.62k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  4.62k|	do                                                                                                                 \
  |  |  |  |  413|  4.62k|	{                                                                                                                  \
  |  |  |  |  414|  4.62k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.62k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.62k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 4.62k]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.62k|		{                                                                                                              \
  |  |  |  |  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.62k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.62k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1999|  4.62k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 2000|  4.62k|			m_CertificateList.pushBack(newCert);
 2001|       |
 2002|  4.62k|			curPos += certificateLength;
 2003|  4.62k|		}
 2004|  4.10k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2007|  1.41k|	{
 2008|  1.41k|		return "Certificate message";
 2009|  1.41k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2033|  1.61k|	{
 2034|  1.61k|		return "Hello Request message";
 2035|  1.61k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2042|  2.91k|	{
 2043|  2.91k|		return "Server Hello Done message";
 2044|  2.91k|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2068|     12|	{
 2069|     12|		return "Server Key Exchange message";
 2070|     12|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2094|  1.75k|	{
 2095|  1.75k|		return "Client Key Exchange message";
 2096|  1.75k|	}
_ZN4pcpp28SSLCertificateRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
 2104|     10|	    : SSLHandshakeMessage(data, dataLen, container)
 2105|     10|	{
 2106|     10|		size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
 2107|     10|		if (dataLen < minMessageSize)
  ------------------
  |  Branch (2107:7): [True: 0, False: 10]
  ------------------
 2108|      0|			return;
 2109|       |
 2110|     10|		size_t messageLen = getMessageLength();
 2111|     10|		if (messageLen < minMessageSize)
  ------------------
  |  Branch (2111:7): [True: 0, False: 10]
  ------------------
 2112|      0|			return;
 2113|       |
 2114|     10|		uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
 2115|       |
 2116|     10|		if (certificateTypesCount > messageLen - minMessageSize)
  ------------------
  |  Branch (2116:7): [True: 0, False: 10]
  ------------------
 2117|      0|			certificateTypesCount = messageLen - minMessageSize;
 2118|       |
 2119|     10|		uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 2120|  1.20k|		for (uint8_t i = 0; i < certificateTypesCount; i++)
  ------------------
  |  Branch (2120:23): [True: 1.19k, False: 10]
  ------------------
 2121|  1.19k|		{
 2122|  1.19k|			uint8_t certType = *(uint8_t*)(pos + i);
 2123|  1.19k|			if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
  ------------------
  |  Branch (2123:8): [True: 200, False: 995]
  |  Branch (2123:26): [True: 930, False: 65]
  |  Branch (2123:42): [True: 70, False: 860]
  |  Branch (2123:61): [True: 845, False: 80]
  |  Branch (2123:78): [True: 155, False: 690]
  |  Branch (2123:96): [True: 670, False: 100]
  ------------------
 2124|  1.09k|				m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
 2125|    100|			else
 2126|    100|				m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
 2127|  1.19k|		}
 2128|     10|	}
_ZNK4pcpp28SSLCertificateRequestMessage8toStringEv:
 2164|      4|	{
 2165|      4|		return "Certificate Request message";
 2166|      4|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2216|     90|	{
 2217|     90|		return "Finished message";
 2218|     90|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2242|    196|	{
 2243|    196|		return "New Session Ticket message";
 2244|    196|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2258|  43.2k|	{
 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|  43.2k|		return m_DataLen;
 2262|  43.2k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2265|  5.59k|	{
 2266|  5.59k|		return "Unknown message";
 2267|  5.59k|	}
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.78k|	{
  695|  6.78k|		unsigned h = FIRST_HASH;
  ------------------
  |  |  691|  6.78k|#define FIRST_HASH 37  ///< also prime
  ------------------
  696|   149k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 142k, False: 6.78k]
  ------------------
  697|   142k|		{
  698|   142k|			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  688|   142k|#define A 54059        ///< a prime
  ------------------
              			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  689|   142k|#define B 76963        ///< another prime
  ------------------
  699|   142k|		}
  700|  6.78k|		return h;
  701|  6.78k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   588k|	{
   16|       |		// check the port map first
   17|   588k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 473k, False: 114k]
  |  Branch (17:23): [True: 328k, False: 145k]
  |  Branch (17:46): [True: 211k, False: 117k]
  ------------------
   18|   211k|			return false;
   19|       |
   20|   377k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 3.66k, False: 373k]
  ------------------
   21|  3.66k|			return false;
   22|       |
   23|   373k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   373k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 3.14k, False: 370k]
  ------------------
   27|  3.14k|			return false;
   28|       |
   29|   370k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 6.06k, False: 364k]
  |  Branch (29:39): [True: 33.9k, False: 330k]
  ------------------
   30|  39.9k|			return false;
   31|       |
   32|   330k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   330k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 9.97k, False: 320k]
  |  Branch (34:46): [True: 261k, False: 59.0k]
  ------------------
   35|  59.0k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 48, False: 59.0k]
  |  Branch (35:46): [True: 46.9k, False: 12.0k]
  ------------------
   36|  12.0k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 10.2k, False: 1.74k]
  ------------------
   37|   328k|			return true;
   38|  1.74k|		else
   39|  1.74k|			return false;
   40|   330k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   328k|	{
   44|   328k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 328k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   328k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   328k|		switch (recordLayer->recordType)
   51|   328k|		{
   52|  94.2k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 94.2k, False: 234k]
  ------------------
   53|  94.2k|		{
   54|  94.2k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  8.79k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 8.79k, False: 320k]
  ------------------
   58|  8.79k|		{
   59|  8.79k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  31.3k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 31.3k, False: 297k]
  ------------------
   63|  31.3k|		{
   64|  31.3k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|   194k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 194k, False: 134k]
  ------------------
   68|   194k|		{
   69|   194k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 328k]
  ------------------
   73|      0|			return nullptr;
   74|   328k|		}
   75|   328k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|   110k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|   110k|		return SSLVersion(recordVersion);
   81|   110k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   383k|	{
   90|   383k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   383k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 40.8k, False: 343k]
  ------------------
   92|  40.8k|			return m_DataLen;
   93|   343k|		return len;
   94|   383k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   328k|	{
   98|   328k|		size_t headerLen = getHeaderLen();
   99|   328k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 214k, False: 114k]
  ------------------
  100|   214k|			return;
  101|       |
  102|   114k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 110k, False: 4.02k]
  ------------------
  103|   110k|		{
  104|   110k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|   110k|		}
  106|   114k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  29.1k|	{
  114|  29.1k|		std::stringstream result;
  115|  29.1k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  65.6k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 36.4k, False: 29.1k]
  ------------------
  117|  36.4k|		{
  118|  36.4k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 27.7k, False: 8.70k]
  ------------------
  119|  27.7k|				result << " " << m_MessageList.at(i)->toString();
  120|  8.70k|			else
  121|  8.70k|				result << ", " << m_MessageList.at(i)->toString();
  122|  36.4k|		}
  123|  29.1k|		return result.str();
  124|  29.1k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|  94.2k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|  94.2k|	{
  129|  94.2k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|  94.2k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|  94.2k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|  94.2k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 23.8k, False: 70.4k]
  ------------------
  134|  23.8k|		{
  135|  23.8k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 23.8k, False: 0]
  ------------------
  136|  23.8k|		}
  137|       |
  138|  94.2k|		size_t curPosIndex = 0;
  139|   221k|		while (true)
  ------------------
  |  Branch (139:10): [True: 221k, Folded]
  ------------------
  140|   221k|		{
  141|   221k|			SSLHandshakeMessage* message =
  142|   221k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   221k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 94.2k, False: 127k]
  ------------------
  144|  94.2k|				break;
  145|       |
  146|   127k|			m_MessageList.pushBack(message);
  147|   127k|			curPos += message->getMessageLength();
  148|   127k|			curPosIndex += message->getMessageLength();
  149|   127k|		}
  150|  94.2k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  9.06k|	{
  166|  9.06k|		std::stringstream result;
  167|  9.06k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  9.06k|		return result.str();
  169|  9.06k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  2.43k|	{
  177|  2.43k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  178|  2.43k|		uint8_t alertLevel = *pos;
  179|  2.43k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (179:7): [True: 1.33k, False: 1.10k]
  |  Branch (179:48): [True: 260, False: 842]
  ------------------
  180|  1.59k|			return (SSLAlertLevel)alertLevel;
  181|    842|		else
  182|    842|			return SSL_ALERT_LEVEL_ENCRYPTED;
  183|  2.43k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  227|  2.43k|	{
  228|  2.43k|		std::stringstream result;
  229|  2.43k|		result << getRecordVersion().toString(true) << " Layer, ";
  230|  2.43k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (230:7): [True: 842, False: 1.59k]
  ------------------
  231|    842|			result << "Encrypted Alert";
  232|  1.59k|		else
  233|       |			// TODO: add alert level and description here
  234|  1.59k|			result << "Alert";
  235|  2.43k|		return result.str();
  236|  2.43k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  260|  69.4k|	{
  261|  69.4k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  262|  69.4k|	}

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

_ZNK4pcpp25SingleCommandTextProtocol22getArgumentFieldOffsetEv:
   15|  24.0k|	{
   16|  24.0k|		size_t maxLen;
   17|  24.0k|		if (m_DataLen < MAX_COMMAND_LENGTH)
  ------------------
  |  |    8|  24.0k|#define MAX_COMMAND_LENGTH 9  // From SMTP command "STARTTLS" + 1 byte hyphen or space
  ------------------
  |  Branch (17:7): [True: 5.90k, False: 18.1k]
  ------------------
   18|  5.90k|			maxLen = m_DataLen;
   19|  18.1k|		else
   20|  18.1k|			maxLen = MAX_COMMAND_LENGTH;
  ------------------
  |  |    8|  18.1k|#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|  24.0k|		std::string field(reinterpret_cast<char*>(m_Data), maxLen);
   27|       |
   28|  24.0k|		size_t posHyphen = field.find_first_of(ASCII_HYPHEN);
  ------------------
  |  |    6|  24.0k|#define ASCII_HYPHEN 0x2d
  ------------------
   29|  24.0k|		size_t posSpace = field.find_first_of(ASCII_SPACE);
  ------------------
  |  |    7|  24.0k|#define ASCII_SPACE 0x20
  ------------------
   30|  24.0k|		size_t posCRLF = field.rfind("\r\n");
   31|       |
   32|       |		// No delimiter or packet end
   33|  24.0k|		if (posHyphen == std::string::npos && posSpace == std::string::npos && posCRLF == std::string::npos)
  ------------------
  |  Branch (33:7): [True: 22.3k, False: 1.65k]
  |  Branch (33:41): [True: 9.40k, False: 12.9k]
  |  Branch (33:74): [True: 4.92k, False: 4.47k]
  ------------------
   34|  4.92k|			return 0;
   35|       |		// Both hyphen and space found
   36|  19.0k|		else if (posHyphen != std::string::npos || posSpace != std::string::npos)
  ------------------
  |  Branch (36:12): [True: 1.65k, False: 17.4k]
  |  Branch (36:46): [True: 12.9k, False: 4.47k]
  ------------------
   37|  14.6k|			return std::min(posSpace, posHyphen);
   38|       |		// If nothing found but there is a CRLF it is a only command packet
   39|  4.47k|		else if (posCRLF != std::string::npos)
  ------------------
  |  Branch (39:12): [True: 4.47k, False: 0]
  ------------------
   40|  4.47k|			return posCRLF;
   41|       |
   42|      0|		return 0;
   43|  24.0k|	}
_ZNK4pcpp25SingleCommandTextProtocol18getCommandInternalEv:
  123|  17.6k|	{
  124|  17.6k|		size_t offset = getArgumentFieldOffset();
  125|       |
  126|       |		// If there is no option remove trailing newline characters
  127|  17.6k|		if (offset == (m_DataLen - 1) && offset > 1)
  ------------------
  |  Branch (127:7): [True: 0, False: 17.6k]
  |  Branch (127:36): [True: 0, False: 0]
  ------------------
  128|      0|			return std::string(reinterpret_cast<char*>(m_Data), offset - 1);
  129|  17.6k|		return std::string(reinterpret_cast<char*>(m_Data), offset);
  130|  17.6k|	}
_ZNK4pcpp25SingleCommandTextProtocol24getCommandOptionInternalEv:
  133|  6.38k|	{
  134|  6.38k|		size_t offset = getArgumentFieldOffset();
  135|       |
  136|       |		// We don't want to get delimiter so add 1 for start unless there is no command,
  137|  6.38k|		int addition = offset ? 1 : 0;
  ------------------
  |  Branch (137:18): [True: 3.42k, False: 2.95k]
  ------------------
  138|       |
  139|       |		// Check if command-only packet (-2 to account for len/position comparison and size of CRLF)
  140|  6.38k|		if (offset != (m_DataLen - 2))
  ------------------
  |  Branch (140:7): [True: 4.61k, False: 1.76k]
  ------------------
  141|  4.61k|		{
  142|       |			// We don't want to trailing newline characters so remove 2 and remove addition from start point
  143|  4.61k|			auto option =
  144|  4.61k|			    std::string(reinterpret_cast<char*>(&m_Data[offset + addition]), m_DataLen - (offset + 2 + addition));
  145|       |
  146|       |			// Remove XXX- and XXX<SP> since they are delimiters of the protocol where XXX is the usually status code
  147|       |			// Check RFC821 (SMTP) Section 3.3 and RFC959 (FTP) Section 4.2
  148|  4.61k|			auto code = getCommandInternal();
  149|  4.61k|			auto vDelim = std::vector<std::string>{ code + " ", code + "-" };
  150|       |
  151|  4.61k|			for (const auto& delim : vDelim)
  ------------------
  |  Branch (151:27): [True: 9.22k, False: 4.61k]
  ------------------
  152|  9.22k|			{
  153|  9.22k|				size_t pos = 0;
  154|  43.3k|				while ((pos = option.find(delim, pos)) != std::string::npos)
  ------------------
  |  Branch (154:12): [True: 34.0k, False: 9.22k]
  ------------------
  155|  34.0k|				{
  156|  34.0k|					option.replace(pos, delim.length(), "");
  157|  34.0k|				}
  158|  9.22k|			}
  159|  4.61k|			return option;
  160|  4.61k|		}
  161|  1.76k|		return "";
  162|  6.38k|	}
_ZN4pcpp25SingleCommandTextProtocol11isDataValidEPKhm:
  170|  33.3k|	{
  171|  33.3k|		if (data == nullptr || dataSize < MIN_PACKET_LENGTH)
  ------------------
  |  |    9|  33.3k|#define MIN_PACKET_LENGTH 2   // CRLF
  ------------------
  |  Branch (171:7): [True: 0, False: 33.3k]
  |  Branch (171:26): [True: 137, False: 33.1k]
  ------------------
  172|    137|			return false;
  173|       |
  174|  33.1k|		std::string payload = std::string(reinterpret_cast<const char*>(data), dataSize);
  175|  33.1k|		return payload.rfind("\r\n") == dataSize - 2;
  176|  33.3k|	}

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

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

_ZN4pcpp8SllLayer14parseNextLayerEv:
   50|  13.1k|	{
   51|  13.1k|		if (m_DataLen <= sizeof(sll_header))
  ------------------
  |  Branch (51:7): [True: 470, False: 12.7k]
  ------------------
   52|    470|			return;
   53|       |
   54|  12.7k|		uint8_t* payload = m_Data + sizeof(sll_header);
   55|  12.7k|		size_t payloadLen = m_DataLen - sizeof(sll_header);
   56|       |
   57|  12.7k|		sll_header* hdr = getSllHeader();
   58|  12.7k|		switch (be16toh(hdr->protocol_type))
   59|  12.7k|		{
   60|  8.74k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  8.74k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (60:3): [True: 8.74k, False: 3.97k]
  ------------------
   61|  8.74k|		{
   62|  8.74k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   63|  8.74k|			break;
   64|      0|		}
   65|  1.04k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  1.04k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (65:3): [True: 1.04k, False: 11.6k]
  ------------------
   66|  1.04k|		{
   67|  1.04k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   68|  1.04k|			break;
   69|      0|		}
   70|  1.88k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  1.88k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (70:3): [True: 1.88k, False: 10.8k]
  ------------------
   71|  1.88k|		{
   72|  1.88k|			constructNextLayer<ArpLayer>(payload, payloadLen);
   73|  1.88k|			break;
   74|      0|		}
   75|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (75:3): [True: 0, False: 12.7k]
  ------------------
   76|      0|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|      0|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (76:3): [True: 0, False: 12.7k]
  ------------------
   77|      0|		{
   78|      0|			constructNextLayer<VlanLayer>(payload, payloadLen);
   79|      0|			break;
   80|      0|		}
   81|      0|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|      0|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (81:3): [True: 0, False: 12.7k]
  ------------------
   82|      0|		{
   83|      0|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   84|      0|			break;
   85|      0|		}
   86|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (86:3): [True: 0, False: 12.7k]
  ------------------
   87|      0|		{
   88|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   89|      0|			break;
   90|      0|		}
   91|    450|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|    450|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (91:3): [True: 450, False: 12.2k]
  ------------------
   92|    450|		{
   93|    450|			constructNextLayer<MplsLayer>(payload, payloadLen);
   94|    450|			break;
   95|      0|		}
   96|    594|		default:
  ------------------
  |  Branch (96:3): [True: 594, False: 12.1k]
  ------------------
   97|    594|		{
   98|    594|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   99|    594|			break;
  100|      0|		}
  101|  12.7k|		}
  102|  12.7k|	}
_ZN4pcpp8SllLayer22computeCalculateFieldsEv:
  105|  3.25k|	{
  106|  3.25k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (106:7): [True: 235, False: 3.01k]
  ------------------
  107|    235|			return;
  108|       |
  109|  3.01k|		sll_header* hdr = getSllHeader();
  110|  3.01k|		switch (m_NextLayer->getProtocol())
  111|  3.01k|		{
  112|  1.69k|		case IPv4:
  ------------------
  |  Branch (112:3): [True: 1.69k, False: 1.32k]
  ------------------
  113|  1.69k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  114|  1.69k|			break;
  115|    213|		case IPv6:
  ------------------
  |  Branch (115:3): [True: 213, False: 2.80k]
  ------------------
  116|    213|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  117|    213|			break;
  118|    500|		case ARP:
  ------------------
  |  Branch (118:3): [True: 500, False: 2.51k]
  ------------------
  119|    500|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  120|    500|			break;
  121|      0|		case VLAN:
  ------------------
  |  Branch (121:3): [True: 0, False: 3.01k]
  ------------------
  122|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  123|      0|			break;
  124|    610|		default:
  ------------------
  |  Branch (124:3): [True: 610, False: 2.40k]
  ------------------
  125|    610|			return;
  126|  3.01k|		}
  127|  3.01k|	}
_ZNK4pcpp8SllLayer8toStringEv:
  130|  6.50k|	{
  131|  6.50k|		return "Linux cooked header";
  132|  6.50k|	}

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   46|  55.5k|	{
   47|       |		// Ideas taken from wireshark some ip dissector
   48|  55.5k|		const size_t headerLen = sizeof(someiphdr);
   49|  55.5k|		if (dataLen < headerLen)
  ------------------
  |  Branch (49:7): [True: 160, False: 55.4k]
  ------------------
   50|    160|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   51|       |
   52|  55.4k|		uint32_t lengthBE = 0;
   53|  55.4k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   54|  55.4k|		uint32_t length = be32toh(lengthBE);
   55|  55.4k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (55:7): [True: 84, False: 55.3k]
  |  Branch (55:23): [True: 3.17k, False: 52.1k]
  ------------------
   56|  3.26k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   57|       |
   58|  52.1k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (58:7): [True: 189, False: 51.9k]
  ------------------
   59|    189|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   60|       |
   61|  51.9k|		someiphdr* hdr = (someiphdr*)data;
   62|       |
   63|  51.9k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   64|  51.9k|		{
   65|    765|		case MsgType::REQUEST:
  ------------------
  |  Branch (65:3): [True: 765, False: 51.2k]
  ------------------
   66|    765|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (66:3): [True: 0, False: 51.9k]
  ------------------
   67|  33.4k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (67:3): [True: 32.6k, False: 19.3k]
  ------------------
   68|  33.4k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (68:3): [True: 0, False: 51.9k]
  ------------------
   69|  50.4k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (69:3): [True: 17.0k, False: 34.9k]
  ------------------
   70|  50.4k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (70:3): [True: 0, False: 51.9k]
  ------------------
   71|  51.9k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (71:3): [True: 1.54k, False: 50.4k]
  ------------------
   72|  51.9k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (72:3): [True: 0, False: 51.9k]
  ------------------
   73|  51.9k|		case MsgType::ERRORS:
  ------------------
  |  Branch (73:3): [True: 0, False: 51.9k]
  ------------------
   74|  51.9k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (74:3): [True: 0, False: 51.9k]
  ------------------
   75|  51.9k|			break;
   76|     20|		default:
  ------------------
  |  Branch (76:3): [True: 20, False: 51.9k]
  ------------------
   77|     20|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   78|  51.9k|		}
   79|       |
   80|  51.9k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (80:7): [True: 50.3k, False: 1.63k]
  |  Branch (80:44): [True: 50.0k, False: 316]
  ------------------
   81|  50.0k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (81:7): [True: 39.0k, False: 11.0k]
  ------------------
   82|  39.0k|		{
   83|  39.0k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   84|  39.0k|		}
   85|  12.9k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (85:12): [True: 0, False: 12.9k]
  ------------------
   86|      0|		{
   87|      0|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   88|      0|		}
   89|  12.9k|		else
   90|  12.9k|		{
   91|  12.9k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   92|  12.9k|		}
   93|  51.9k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   96|   565k|	{
   97|   565k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (97:10): [True: 53.1k, False: 512k]
  ------------------
   98|   512k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (98:10): [True: 0, False: 512k]
  ------------------
   99|   512k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  100|   565k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  137|  5.07k|	{
  138|       |		return be16toh(getSomeIpHeader()->serviceID);
  139|  5.07k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  147|  5.07k|	{
  148|       |		return be16toh(getSomeIpHeader()->methodID);
  149|  5.07k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  157|  67.3k|	{
  158|       |		return be32toh(getSomeIpHeader()->length);
  159|  67.3k|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  258|  51.9k|	{
  259|  51.9k|		size_t headerLen = getHeaderLen();
  260|  51.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (260:7): [True: 49.4k, False: 2.47k]
  ------------------
  261|  49.4k|			return;
  262|       |
  263|  2.47k|		uint8_t* payload = m_Data + headerLen;
  264|  2.47k|		size_t payloadLen = m_DataLen - headerLen;
  265|       |
  266|  2.47k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  267|  2.47k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  270|  5.07k|	{
  271|  5.07k|		std::stringstream dataStream;
  272|       |
  273|  5.07k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  274|  5.07k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  275|       |
  276|  5.07k|		return dataStream.str();
  277|  5.07k|	}

_ZN4pcpp14SomeIpSdOptionD2Ev:
   14|  10.3k|	{
   15|  10.3k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (15:7): [True: 0, False: 10.3k]
  ------------------
   16|      0|			delete[] m_ShadowData;
   17|  10.3k|	}
_ZNK4pcpp14SomeIpSdOption7getTypeEv:
   20|  5.50k|	{
   21|  5.50k|		return static_cast<OptionType>(getSomeIpSdOptionHeader()->type);
   22|  5.50k|	}
_ZNK4pcpp14SomeIpSdOption10getDataPtrEv:
   25|  21.9k|	{
   26|  21.9k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (26:7): [True: 21.9k, False: 0]
  ------------------
   27|  21.9k|			return m_DataContainer->getDataPtr(m_Offset);
   28|       |
   29|      0|		return m_ShadowData;
   30|  21.9k|	}
_ZNK4pcpp14SomeIpSdOption23getSomeIpSdOptionHeaderEv:
   33|  5.50k|	{
   34|  5.50k|		return (someipsdhdroptionsbase*)getDataPtr();
   35|  5.50k|	}
_ZN4pcpp18SomeIpSdIPv4OptionC2EPKNS_14IDataContainerEm:
   75|  10.2k|	    : SomeIpSdOption(dataContainer, offset)
   76|  10.2k|	{
   77|  10.2k|		m_DataLen = sizeof(someipsdhdroptionsipv4);
   78|  10.2k|	}
_ZNK4pcpp18SomeIpSdIPv4Option12getIpAddressEv:
   81|  5.47k|	{
   82|  5.47k|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   83|  5.47k|		IPv4Address ipAddr(hdr->ipv4Address);
   84|       |
   85|  5.47k|		return ipAddr;
   86|  5.47k|	}
_ZNK4pcpp18SomeIpSdIPv4Option7getPortEv:
   89|  5.47k|	{
   90|  5.47k|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   91|       |		return be16toh(hdr->portNumber);
   92|  5.47k|	}
_ZNK4pcpp18SomeIpSdIPv4Option11getProtocolEv:
   95|  5.47k|	{
   96|  5.47k|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   97|  5.47k|		return hdr->l4Protocol;
   98|  5.47k|	}
_ZN4pcpp27SomeIpSdLoadBalancingOptionC2EPKNS_14IDataContainerEm:
  195|     32|	    : SomeIpSdOption(dataContainer, offset)
  196|     32|	{
  197|     32|		m_DataLen = sizeof(someipsdhdroptionsload);
  198|     32|	}
_ZN4pcpp13SomeIpSdEntryC2EPKNS_13SomeIpSdLayerEm:
  230|  7.92k|	    : m_Layer(pSomeIpSdLayer), m_Offset(offset), m_ShadowData(nullptr)
  231|  7.92k|	{
  232|  7.92k|		EntryType entryType;
  233|       |
  234|  7.92k|		someipsdhdrentry* hdr = getSomeIpSdEntryHeader();
  235|  7.92k|		TypeInternal internalType = static_cast<TypeInternal>(hdr->type);
  236|  7.92k|		auto ttl = getTtl();
  237|       |
  238|  7.92k|		switch (internalType)
  239|  7.92k|		{
  240|    159|		case SomeIpSdEntry::TypeInternal::FindService_Internal:
  ------------------
  |  Branch (240:3): [True: 159, False: 7.76k]
  ------------------
  241|    159|			entryType = SomeIpSdEntry::EntryType::FindService;
  242|    159|			break;
  243|  2.14k|		case SomeIpSdEntry::TypeInternal::OfferService_Internal:
  ------------------
  |  Branch (243:3): [True: 2.14k, False: 5.78k]
  ------------------
  244|  2.14k|			if (ttl == 0)
  ------------------
  |  Branch (244:8): [True: 2.09k, False: 51]
  ------------------
  245|  2.09k|			{
  246|  2.09k|				entryType = EntryType::StopOfferService;
  247|  2.09k|			}
  248|     51|			else
  249|     51|			{
  250|     51|				entryType = EntryType::OfferService;
  251|     51|			}
  252|  2.14k|			break;
  253|  3.77k|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroup_Internal:
  ------------------
  |  Branch (253:3): [True: 3.77k, False: 4.14k]
  ------------------
  254|  3.77k|			if (ttl == 0)
  ------------------
  |  Branch (254:8): [True: 2.45k, False: 1.32k]
  ------------------
  255|  2.45k|			{
  256|  2.45k|				entryType = EntryType::StopSubscribeEventgroup;
  257|  2.45k|			}
  258|  1.32k|			else
  259|  1.32k|			{
  260|  1.32k|				entryType = EntryType::SubscribeEventgroup;
  261|  1.32k|			}
  262|  3.77k|			break;
  263|    300|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroupAck_Internal:
  ------------------
  |  Branch (263:3): [True: 300, False: 7.62k]
  ------------------
  264|    300|			if (ttl == 0)
  ------------------
  |  Branch (264:8): [True: 0, False: 300]
  ------------------
  265|      0|			{
  266|      0|				entryType = EntryType::SubscribeEventgroupNack;
  267|      0|			}
  268|    300|			else
  269|    300|			{
  270|    300|				entryType = EntryType::SubscribeEventgroupAck;
  271|    300|			}
  272|    300|			break;
  273|  1.54k|		default:
  ------------------
  |  Branch (273:3): [True: 1.54k, False: 6.38k]
  ------------------
  274|  1.54k|			entryType = EntryType::UnknownEntryType;
  275|  1.54k|			break;
  276|  7.92k|		}
  277|       |
  278|  7.92k|		m_EntryType = entryType;
  279|  7.92k|	}
_ZN4pcpp13SomeIpSdEntryD2Ev:
  282|  7.92k|	{
  283|  7.92k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (283:7): [True: 0, False: 7.92k]
  ------------------
  284|      0|			delete[] m_ShadowData;
  285|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry10getDataPtrEv:
  288|  71.3k|	{
  289|  71.3k|		if (m_Layer != nullptr)
  ------------------
  |  Branch (289:7): [True: 71.3k, False: 0]
  ------------------
  290|  71.3k|			return m_Layer->getDataPtr(m_Offset);
  291|       |
  292|      0|		return m_ShadowData;
  293|  71.3k|	}
_ZNK4pcpp13SomeIpSdEntry22getSomeIpSdEntryHeaderEv:
  296|  71.3k|	{
  297|  71.3k|		return (someipsdhdrentry*)getDataPtr();
  298|  71.3k|	}
_ZNK4pcpp13SomeIpSdEntry13getNumOptionsEv:
  301|  7.92k|	{
  302|  7.92k|		auto* hdr = getSomeIpSdEntryHeader();
  303|  7.92k|		return hdr->nrOpt1 + hdr->nrOpt2;
  304|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry12getServiceIdEv:
  307|  7.92k|	{
  308|       |		return be16toh(getSomeIpSdEntryHeader()->serviceID);
  309|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry13getInstanceIdEv:
  317|  7.92k|	{
  318|       |		return be16toh(getSomeIpSdEntryHeader()->instanceID);
  319|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry15getMajorVersionEv:
  327|  7.92k|	{
  328|       |		return (be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & ~SOMEIPSD_HDR_ENTRY_MASK_TTL) >> 24;
  329|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry6getTtlEv:
  339|  7.92k|	{
  340|       |		return be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & SOMEIPSD_HDR_ENTRY_MASK_TTL;
  341|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry15getMinorVersionEv:
  352|  7.92k|	{
  353|       |		return be32toh(getSomeIpSdEntryHeader()->data);
  354|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry10getCounterEv:
  362|  7.92k|	{
  363|       |		return (uint8_t)((be32toh(getSomeIpSdEntryHeader()->data) >> 16) & 0x0F);
  364|  7.92k|	}
_ZNK4pcpp13SomeIpSdEntry15getEventgroupIdEv:
  373|  7.92k|	{
  374|       |		return (uint16_t)(be32toh(getSomeIpSdEntryHeader()->data) & 0x0000FFFF);
  375|  7.92k|	}
_ZN4pcpp13SomeIpSdLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  433|  39.0k|	    : SomeIpLayer(data, dataLen, prevLayer, packet)
  434|  39.0k|	{
  435|  39.0k|		countOptions(m_NumOptions, data);
  436|  39.0k|	}
_ZNK4pcpp13SomeIpSdLayer8getFlagsEv:
  459|  7.77k|	{
  460|  7.77k|		someipsdhdr* hdr = (someipsdhdr*)m_Data;
  461|  7.77k|		return hdr->flags;
  462|  7.77k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumEntriesEv:
  471|  23.3k|	{
  472|  23.3k|		return (uint32_t)(getLenEntries() / sizeof(SomeIpSdEntry::someipsdhdrentry));
  473|  23.3k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumOptionsEv:
  476|  15.5k|	{
  477|  15.5k|		return m_NumOptions;
  478|  15.5k|	}
_ZNK4pcpp13SomeIpSdLayer10getEntriesEv:
  481|  7.77k|	{
  482|  7.77k|		size_t remainingLen = getLenEntries();
  483|  7.77k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t);
  484|       |
  485|  7.77k|		EntriesVec vecEntries;
  486|  7.77k|		EntryPtr entry;
  487|       |
  488|  15.6k|		while (remainingLen > 0)
  ------------------
  |  Branch (488:10): [True: 7.94k, False: 7.75k]
  ------------------
  489|  7.94k|		{
  490|       |			// Ensure there is enough remaining length for a new entry
  491|  7.94k|			if (remainingLen < sizeof(SomeIpSdEntry::someipsdhdrentry))
  ------------------
  |  Branch (491:8): [True: 13, False: 7.92k]
  ------------------
  492|     13|			{
  493|     13|				break;
  494|     13|			}
  495|  7.92k|			entry = new SomeIpSdEntry(this, offset);
  496|       |
  497|  7.92k|			size_t entryLen = entry->getLength();
  498|  7.92k|			remainingLen -= entryLen;
  499|  7.92k|			offset += entryLen;
  500|       |
  501|  7.92k|			vecEntries.push_back(entry);
  502|  7.92k|		}
  503|       |
  504|  7.77k|		return vecEntries;
  505|  7.77k|	};
_ZNK4pcpp13SomeIpSdLayer10getOptionsEv:
  508|  7.77k|	{
  509|  7.77k|		OptionsVec vecOptions;
  510|  7.77k|		OptionPtr option;
  511|       |
  512|  7.77k|		size_t remainingLen = getLenOptions();
  513|  7.77k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  514|       |
  515|  15.5k|		while (remainingLen > 0)
  ------------------
  |  Branch (515:10): [True: 7.75k, False: 7.77k]
  ------------------
  516|  7.75k|		{
  517|  7.75k|			SomeIpSdOption::someipsdhdroptionsbase* hdr = (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  518|  7.75k|			SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdr->type);
  519|       |
  520|  7.75k|			option = parseOption(optionType, offset);
  521|       |
  522|  7.75k|			if (option != nullptr)
  ------------------
  |  Branch (522:8): [True: 5.50k, False: 2.24k]
  ------------------
  523|  5.50k|			{
  524|  5.50k|				vecOptions.push_back(std::move(option));
  525|  5.50k|			}
  526|       |
  527|  7.75k|			size_t optionLen = be16toh(hdr->length) + 3;
  528|  7.75k|			remainingLen -= optionLen;
  529|  7.75k|			offset += optionLen;
  530|  7.75k|		}
  531|       |
  532|  7.77k|		return vecOptions;
  533|  7.77k|	}
_ZNK4pcpp13SomeIpSdLayer19getOptionsFromEntryEj:
  536|  7.77k|	{
  537|  7.77k|		OptionsVec vecOptions;
  538|  7.77k|		OptionPtr option;
  539|       |
  540|  7.77k|		if (index >= getNumEntries())
  ------------------
  |  Branch (540:7): [True: 0, False: 7.77k]
  ------------------
  541|      0|			return vecOptions;
  542|       |
  543|  7.77k|		size_t remainingLen = getLenOptions();
  544|  7.77k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  545|       |
  546|  7.77k|		size_t offsetToEntry = sizeof(someipsdhdr) + sizeof(uint32_t) + index * sizeof(SomeIpSdEntry::someipsdhdrentry);
  547|  7.77k|		SomeIpSdEntry::someipsdhdrentry* hdrEntry = (SomeIpSdEntry::someipsdhdrentry*)(m_Data + offsetToEntry);
  548|  7.77k|		uint8_t startIdxRun1 = hdrEntry->indexFirstOption;
  549|  7.77k|		uint8_t lenRun1 = hdrEntry->nrOpt1;
  550|  7.77k|		uint8_t startIdxRun2 = hdrEntry->indexSecondOption;
  551|  7.77k|		uint8_t lenRun2 = hdrEntry->nrOpt2;
  552|       |
  553|  7.77k|		int idx = 0;
  554|       |
  555|  15.5k|		while (remainingLen > 0)
  ------------------
  |  Branch (555:10): [True: 7.75k, False: 7.77k]
  ------------------
  556|  7.75k|		{
  557|  7.75k|			SomeIpSdOption::someipsdhdroptionsbase* hdrOption =
  558|  7.75k|			    (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  559|       |
  560|  7.75k|			if (((idx >= startIdxRun1) && (idx < (startIdxRun1 + lenRun1))) ||
  ------------------
  |  Branch (560:9): [True: 7.05k, False: 697]
  |  Branch (560:34): [True: 3.62k, False: 3.43k]
  ------------------
  561|  4.12k|			    ((idx >= startIdxRun2) && (idx < (startIdxRun2 + lenRun2))))
  ------------------
  |  Branch (561:9): [True: 2.76k, False: 1.36k]
  |  Branch (561:34): [True: 1.98k, False: 775]
  ------------------
  562|  5.61k|			{
  563|  5.61k|				SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdrOption->type);
  564|       |
  565|  5.61k|				option = parseOption(optionType, offset);
  566|       |
  567|  5.61k|				if (option != nullptr)
  ------------------
  |  Branch (567:9): [True: 4.81k, False: 793]
  ------------------
  568|  4.81k|				{
  569|  4.81k|					vecOptions.push_back(std::move(option));
  570|  4.81k|				}
  571|  5.61k|			}
  572|       |
  573|  7.75k|			size_t optionLen = be16toh(hdrOption->length) + 3;
  574|  7.75k|			remainingLen -= optionLen;
  575|  7.75k|			offset += optionLen;
  576|  7.75k|			++idx;
  577|  7.75k|		}
  578|       |
  579|  7.77k|		return vecOptions;
  580|  7.77k|	}
_ZNK4pcpp13SomeIpSdLayer8toStringEv:
  606|  15.5k|	{
  607|  15.5k|		std::stringstream dataStream;
  608|       |
  609|  15.5k|		dataStream << "SOME/IP-SD Layer, " << getNumEntries() << " entries, " << getNumOptions() << " options";
  610|       |
  611|  15.5k|		return dataStream.str();
  612|  15.5k|	}
_ZN4pcpp13SomeIpSdLayer11isDataValidEPKhm:
  632|  50.0k|	{
  633|  50.0k|		uint32_t count;
  634|  50.0k|		if (!data || dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
  ------------------
  |  Branch (634:7): [True: 0, False: 50.0k]
  |  Branch (634:16): [True: 0, False: 50.0k]
  ------------------
  635|  50.0k|		    dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
  ------------------
  |  Branch (635:7): [True: 494, False: 49.5k]
  ------------------
  636|  49.5k|		    dataLen <
  ------------------
  |  Branch (636:7): [True: 1.10k, False: 48.4k]
  ------------------
  637|  49.5k|		        sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) + getLenOptions(data) ||
  638|  48.4k|		    !countOptions(count, data))
  ------------------
  |  Branch (638:7): [True: 9.40k, False: 39.0k]
  ------------------
  639|  11.0k|		{
  640|  11.0k|			return false;
  641|  11.0k|		}
  642|       |
  643|  39.0k|		return true;
  644|  50.0k|	}
_ZN4pcpp13SomeIpSdLayer12countOptionsERjPKh:
  647|  87.4k|	{
  648|  87.4k|		size_t offsetOption = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t);
  649|  87.4k|		size_t lenOptions = getLenOptions(data);
  650|  87.4k|		uint32_t len = 0;
  651|       |
  652|  87.4k|		count = 0;
  653|   165k|		while (len < lenOptions)
  ------------------
  |  Branch (653:10): [True: 87.2k, False: 78.0k]
  ------------------
  654|  87.2k|		{
  655|  87.2k|			if (len + sizeof(uint16_t) + 3 * sizeof(uint8_t) > lenOptions)
  ------------------
  |  Branch (655:8): [True: 5, False: 87.2k]
  ------------------
  656|      5|				return false;
  657|       |
  658|  87.2k|			uint32_t lenOption = be16toh(*((uint16_t*)(data + offsetOption + len))) + 3 * sizeof(uint8_t);
  659|  87.2k|			len += lenOption;
  660|  87.2k|			if (len > lenOptions)  // the last one must be equal to lenOptions
  ------------------
  |  Branch (660:8): [True: 9.39k, False: 77.8k]
  ------------------
  661|  9.39k|				return false;
  662|       |
  663|  77.8k|			++(count);
  664|  77.8k|		}
  665|  78.0k|		return true;
  666|  87.4k|	}
_ZNK4pcpp13SomeIpSdLayer11parseOptionENS_14SomeIpSdOption10OptionTypeEm:
  758|  13.3k|	{
  759|  13.3k|		switch (type)
  760|  13.3k|		{
  761|  1.44k|		case SomeIpSdOption::OptionType::IPv4Endpoint:
  ------------------
  |  Branch (761:3): [True: 1.44k, False: 11.9k]
  ------------------
  762|  1.48k|		case SomeIpSdOption::OptionType::IPv4Multicast:
  ------------------
  |  Branch (762:3): [True: 40, False: 13.3k]
  ------------------
  763|  10.2k|		case SomeIpSdOption::OptionType::IPv4SdEndpoint:
  ------------------
  |  Branch (763:3): [True: 8.81k, False: 4.54k]
  ------------------
  764|  10.2k|		{
  765|  10.2k|			return new SomeIpSdIPv4Option(this, offset);
  766|  1.48k|		}
  767|      0|		case SomeIpSdOption::OptionType::IPv6Endpoint:
  ------------------
  |  Branch (767:3): [True: 0, False: 13.3k]
  ------------------
  768|      0|		case SomeIpSdOption::OptionType::IPv6Multicast:
  ------------------
  |  Branch (768:3): [True: 0, False: 13.3k]
  ------------------
  769|      0|		case SomeIpSdOption::OptionType::IPv6SdEndpoint:
  ------------------
  |  Branch (769:3): [True: 0, False: 13.3k]
  ------------------
  770|      0|		{
  771|      0|			return new SomeIpSdIPv6Option(this, offset);
  772|      0|		}
  773|      0|		case SomeIpSdOption::OptionType::ConfigurationString:
  ------------------
  |  Branch (773:3): [True: 0, False: 13.3k]
  ------------------
  774|      0|		{
  775|      0|			return new SomeIpSdConfigurationOption(this, offset);
  776|      0|		}
  777|     32|		case SomeIpSdOption::OptionType::LoadBalancing:
  ------------------
  |  Branch (777:3): [True: 32, False: 13.3k]
  ------------------
  778|     32|		{
  779|     32|			return new SomeIpSdLoadBalancingOption(this, offset);
  780|      0|		}
  781|  3.03k|		default:
  ------------------
  |  Branch (781:3): [True: 3.03k, False: 10.3k]
  ------------------
  782|  3.03k|			break;
  783|  13.3k|		}
  784|  3.03k|		return nullptr;
  785|  13.3k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenEntriesEv:
  788|  46.6k|	{
  789|  46.6k|		return getLenEntries(m_Data);
  790|  46.6k|	}
_ZN4pcpp13SomeIpSdLayer13getLenEntriesEPKh:
  793|   386k|	{
  794|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr))));
  795|   386k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenOptionsEv:
  798|  15.5k|	{
  799|  15.5k|		return getLenOptions(m_Data);
  800|  15.5k|	}
_ZN4pcpp13SomeIpSdLayer13getLenOptionsEPKh:
  803|   152k|	{
  804|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data))));
  805|   152k|	}

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

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

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

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

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

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

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   38|   361k|	{
   39|       |		return be16toh(getUdpHeader()->portSrc);
   40|   361k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   43|   361k|	{
   44|       |		return be16toh(getUdpHeader()->portDst);
   45|   361k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   48|  49.2k|	{
   49|  49.2k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   50|  49.2k|		uint16_t checksumRes = 0;
   51|  49.2k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   52|       |
   53|  49.2k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (53:7): [True: 49.2k, False: 0]
  ------------------
   54|  49.2k|		{
   55|  49.2k|			udpHdr->headerChecksum = 0;
   56|  49.2k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  425|  49.2k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  49.2k|	do                                                                                                                 \
  |  |  |  |  413|  49.2k|	{                                                                                                                  \
  |  |  |  |  414|  49.2k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  49.2k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  49.2k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 49.2k]
  |  |  |  |  ------------------
  |  |  |  |  416|  49.2k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  49.2k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 49.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   57|       |
   58|  49.2k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (58:8): [True: 47.6k, False: 1.59k]
  ------------------
   59|  47.6k|			{
   60|  47.6k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   61|  47.6k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   62|       |
   63|  47.6k|				checksumRes = pcpp::computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv4AddressType,
   64|  47.6k|				                                             PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   65|       |
   66|  47.6k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  47.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  47.6k|	do                                                                                                                 \
  |  |  |  |  413|  47.6k|	{                                                                                                                  \
  |  |  |  |  414|  47.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  47.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  47.6k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 47.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  47.6k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  47.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 47.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|  47.6k|			}
   68|  1.59k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (68:13): [True: 1.59k, False: 0]
  ------------------
   69|  1.59k|			{
   70|  1.59k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   71|  1.59k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   72|       |
   73|  1.59k|				checksumRes = computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv6AddressType,
   74|  1.59k|				                                       PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   75|       |
   76|  1.59k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  1.59k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.59k|	do                                                                                                                 \
  |  |  |  |  413|  1.59k|	{                                                                                                                  \
  |  |  |  |  414|  1.59k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.59k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.59k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.59k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.59k|		{                                                                                                              \
  |  |  |  |  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|  1.59k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.59k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|  1.59k|			}
   78|  49.2k|		}
   79|       |
   80|  49.2k|		if (checksumRes == 0)
  ------------------
  |  Branch (80:7): [True: 103, False: 49.1k]
  ------------------
   81|    103|			checksumRes = 0xffff;
   82|       |
   83|  49.2k|		if (writeResultToPacket)
  ------------------
  |  Branch (83:7): [True: 49.2k, False: 0]
  ------------------
   84|  49.2k|			udpHdr->headerChecksum = htobe16(checksumRes);
   85|      0|		else
   86|      0|			udpHdr->headerChecksum = currChecksumValue;
   87|       |
   88|  49.2k|		return checksumRes;
   89|  49.2k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   92|   263k|	{
   93|   263k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (93:7): [True: 498, False: 263k]
  ------------------
   94|    498|			return;
   95|       |
   96|   263k|		uint16_t portDst = getDstPort();
   97|   263k|		uint16_t portSrc = getSrcPort();
   98|       |
   99|   263k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  100|   263k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  101|       |
  102|   263k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (102:7): [True: 17.6k, False: 245k]
  ------------------
  103|  17.6k|		{
  104|  17.6k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  105|  17.6k|		}
  106|   245k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (106:12): [True: 6.85k, False: 238k]
  ------------------
  107|  6.85k|		{
  108|  6.85k|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  109|  6.85k|		}
  110|   238k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (110:12): [True: 236k, False: 2.26k]
  ------------------
  111|   236k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (111:13): [True: 36.0k, False: 200k]
  |  Branch (111:45): [True: 10.6k, False: 189k]
  ------------------
  112|  46.7k|		{
  113|  46.7k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  114|  46.7k|		}
  115|   191k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (115:12): [True: 25.1k, False: 166k]
  |  Branch (115:44): [True: 173, False: 166k]
  ------------------
  116|  25.3k|		{
  117|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  118|  25.3k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  119|  25.3k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  120|  25.3k|		}
  121|   166k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (121:13): [True: 15.2k, False: 151k]
  |  Branch (121:51): [True: 14.6k, False: 136k]
  ------------------
  122|  29.9k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (122:12): [True: 22.8k, False: 7.05k]
  ------------------
  123|  22.8k|		{
  124|  22.8k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  125|  22.8k|		}
  126|   143k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (126:13): [True: 21.4k, False: 122k]
  |  Branch (126:49): [True: 4.35k, False: 117k]
  ------------------
  127|  25.7k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (127:12): [True: 15.4k, False: 10.3k]
  ------------------
  128|  15.4k|		{
  129|  15.4k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  130|  15.4k|		}
  131|   128k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (131:13): [True: 8.32k, False: 119k]
  |  Branch (131:49): [True: 0, False: 119k]
  ------------------
  132|  8.32k|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (132:12): [True: 7.90k, False: 425]
  ------------------
  133|  7.90k|		{
  134|  7.90k|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  135|  7.90k|		}
  136|   120k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (136:13): [True: 2.41k, False: 117k]
  |  Branch (136:51): [True: 1.49k, False: 116k]
  ------------------
  137|  3.91k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (137:12): [True: 3.91k, False: 0]
  ------------------
  138|  3.91k|		{
  139|  3.91k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  140|  3.91k|		}
  141|   116k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (141:13): [True: 1.70k, False: 114k]
  |  Branch (141:45): [True: 6.54k, False: 108k]
  ------------------
  142|  8.24k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (142:12): [True: 8.00k, False: 243]
  ------------------
  143|  8.00k|		{
  144|  8.00k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  145|  8.00k|		}
  146|   108k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (146:13): [True: 0, False: 108k]
  |  Branch (146:47): [True: 0, False: 108k]
  ------------------
  147|      0|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (147:12): [True: 0, False: 0]
  ------------------
  148|      0|		{
  149|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  150|      0|		}
  151|   108k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (151:12): [True: 2.64k, False: 105k]
  |  Branch (151:50): [True: 50.0k, False: 55.7k]
  ------------------
  152|  52.6k|		{
  153|  52.6k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  154|  52.6k|		}
  155|  55.7k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (155:13): [True: 2.88k, False: 52.8k]
  |  Branch (155:57): [True: 375, False: 2.51k]
  ------------------
  156|    375|		{
  157|    375|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  158|    375|		}
  159|  55.3k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (159:13): [True: 1.47k, False: 53.8k]
  ------------------
  160|  1.47k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (160:13): [True: 1.43k, False: 45]
  ------------------
  161|  1.43k|		{
  162|  1.43k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  163|  1.43k|			                                                           udpDataLen);
  164|  1.43k|		}
  165|       |
  166|       |		// If a valid layer was found, return immediately
  167|   263k|		if (hasNextLayer())
  ------------------
  |  Branch (167:7): [True: 209k, False: 53.9k]
  ------------------
  168|   209k|		{
  169|   209k|			return;
  170|   209k|		}
  171|       |
  172|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  173|  53.9k|		{
  174|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  175|  53.9k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  176|  53.9k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  177|  53.9k|		}
  178|       |
  179|  53.9k|		if (!hasNextLayer())
  ------------------
  |  Branch (179:7): [True: 0, False: 53.9k]
  ------------------
  180|      0|		{
  181|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  182|      0|		}
  183|  53.9k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  186|  49.2k|	{
  187|  49.2k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  188|       |		udpHdr->length = htobe16(m_DataLen);
  189|  49.2k|		calculateChecksum(true);
  190|  49.2k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  193|  98.5k|	{
  194|  98.5k|		std::ostringstream srcPortStream;
  195|  98.5k|		srcPortStream << getSrcPort();
  196|  98.5k|		std::ostringstream dstPortStream;
  197|  98.5k|		dstPortStream << getDstPort();
  198|       |
  199|  98.5k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  200|  98.5k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   30|  16.2k|	{
   31|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   32|  16.2k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   35|  16.2k|	{
   36|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   37|  16.2k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   40|  16.2k|	{
   41|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   42|  16.2k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   60|  57.4k|	{
   61|  57.4k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (61:7): [True: 11, False: 57.4k]
  ------------------
   62|     11|			return;
   63|       |
   64|  57.4k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   65|  57.4k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   66|       |
   67|  57.4k|		vlan_header* hdr = getVlanHeader();
   68|  57.4k|		switch (be16toh(hdr->etherType))
   69|  57.4k|		{
   70|  12.8k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  12.8k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (70:3): [True: 12.8k, False: 44.5k]
  ------------------
   71|  12.8k|		{
   72|  12.8k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   73|  12.8k|			break;
   74|      0|		}
   75|  2.41k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  2.41k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (75:3): [True: 2.41k, False: 55.0k]
  ------------------
   76|  2.41k|		{
   77|  2.41k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   78|  2.41k|			break;
   79|      0|		}
   80|  4.01k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  4.01k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (80:3): [True: 4.01k, False: 53.4k]
  ------------------
   81|  4.01k|		{
   82|  4.01k|			constructNextLayer<ArpLayer>(payload, payloadLen);
   83|  4.01k|			break;
   84|      0|		}
   85|  6.05k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  6.05k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (85:3): [True: 6.05k, False: 51.4k]
  ------------------
   86|  6.05k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  6.05k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (86:3): [True: 0, False: 57.4k]
  ------------------
   87|  6.05k|		{
   88|  6.05k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   89|  6.05k|			break;
   90|  6.05k|		}
   91|  25.8k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|  25.8k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (91:3): [True: 25.8k, False: 31.5k]
  ------------------
   92|  25.8k|		{
   93|  25.8k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   94|  25.8k|			break;
   95|  6.05k|		}
   96|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (96:3): [True: 0, False: 57.4k]
  ------------------
   97|      0|		{
   98|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   99|      0|			break;
  100|  6.05k|		}
  101|     52|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|     52|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (101:3): [True: 52, False: 57.4k]
  ------------------
  102|     52|		{
  103|     52|			constructNextLayer<MplsLayer>(payload, payloadLen);
  104|     52|			break;
  105|  6.05k|		}
  106|  6.16k|		default:
  ------------------
  |  Branch (106:3): [True: 6.16k, False: 51.2k]
  ------------------
  107|  6.16k|		{
  108|  6.16k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (108:8): [True: 5.00k, False: 1.16k]
  ------------------
  109|  5.00k|			{
  110|  5.00k|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  111|  5.00k|			}
  112|  1.16k|			else
  113|  1.16k|			{
  114|  1.16k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  115|  1.16k|			}
  116|  6.16k|			break;
  117|  6.05k|		}
  118|  57.4k|		}
  119|  57.4k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  122|  8.12k|	{
  123|  8.12k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (123:7): [True: 1, False: 8.12k]
  ------------------
  124|      1|			return;
  125|       |
  126|  8.12k|		switch (m_NextLayer->getProtocol())
  127|  8.12k|		{
  128|  1.96k|		case IPv4:
  ------------------
  |  Branch (128:3): [True: 1.96k, False: 6.15k]
  ------------------
  129|  1.96k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  130|  1.96k|			break;
  131|    387|		case IPv6:
  ------------------
  |  Branch (131:3): [True: 387, False: 7.73k]
  ------------------
  132|    387|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  133|    387|			break;
  134|    787|		case ARP:
  ------------------
  |  Branch (134:3): [True: 787, False: 7.33k]
  ------------------
  135|    787|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  136|    787|			break;
  137|    868|		case VLAN:
  ------------------
  |  Branch (137:3): [True: 868, False: 7.25k]
  ------------------
  138|    868|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  139|    868|			break;
  140|  4.11k|		default:
  ------------------
  |  Branch (140:3): [True: 4.11k, False: 4.00k]
  ------------------
  141|  4.11k|			return;
  142|  8.12k|		}
  143|  8.12k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  146|  16.2k|	{
  147|  16.2k|		std::ostringstream cfiStream;
  148|  16.2k|		cfiStream << (int)getCFI();
  149|  16.2k|		std::ostringstream priStream;
  150|  16.2k|		priStream << (int)getPriority();
  151|  16.2k|		std::ostringstream idStream;
  152|  16.2k|		idStream << getVlanID();
  153|       |
  154|  16.2k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  155|  16.2k|		       ", CFI: " + cfiStream.str();
  156|  16.2k|	}

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

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

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

_ZN4pcpp14WireGuardLayer19parseWireGuardLayerEPhmPNS_5LayerEPNS_6PacketE:
   11|  1.43k|	{
   12|  1.43k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (12:7): [True: 0, False: 1.43k]
  ------------------
   13|      0|			return nullptr;
   14|  1.43k|		wg_common_header* wgHeader = reinterpret_cast<wg_common_header*>(data);
   15|       |
   16|  1.43k|		switch (wgHeader->messageType)
   17|  1.43k|		{
   18|    225|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (18:3): [True: 225, False: 1.20k]
  ------------------
   19|    225|			return new WireGuardHandshakeInitiationLayer(data, dataLen, prevLayer, packet);
   20|    535|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (20:3): [True: 535, False: 895]
  ------------------
   21|    535|			return new WireGuardHandshakeResponseLayer(data, dataLen, prevLayer, packet);
   22|    130|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (22:3): [True: 130, False: 1.30k]
  ------------------
   23|    130|			return new WireGuardCookieReplyLayer(data, dataLen, prevLayer, packet);
   24|    540|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (24:3): [True: 540, False: 890]
  ------------------
   25|    540|			return new WireGuardTransportDataLayer(data, dataLen, prevLayer, packet);
   26|      0|		default:
  ------------------
  |  Branch (26:3): [True: 0, False: 1.43k]
  ------------------
   27|      0|			return nullptr;
   28|  1.43k|		}
   29|  1.43k|	}
_ZNK4pcpp14WireGuardLayer22getMessageTypeAsStringEv:
   32|    572|	{
   33|    572|		uint32_t messageType = getMessageType();
   34|    572|		switch (messageType)
   35|    572|		{
   36|     90|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (36:3): [True: 90, False: 482]
  ------------------
   37|     90|			return "Handshake Initiation";
   38|    214|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (38:3): [True: 214, False: 358]
  ------------------
   39|    214|			return "Handshake Response";
   40|     52|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (40:3): [True: 52, False: 520]
  ------------------
   41|     52|			return "Cookie Reply";
   42|    216|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (42:3): [True: 216, False: 356]
  ------------------
   43|    216|			return "Transport Data";
   44|      0|		default:
  ------------------
  |  Branch (44:3): [True: 0, False: 572]
  ------------------
   45|      0|			return "Unknown";
   46|    572|		}
   47|    572|	}
_ZNK4pcpp14WireGuardLayer8toStringEv:
   50|    572|	{
   51|    572|		return "WireGuard Layer, " + getMessageTypeAsString() + " message";
   52|    572|	}
_ZNK4pcpp14WireGuardLayer12getHeaderLenEv:
   55|    286|	{
   56|    286|		return m_DataLen;
   57|    286|	}
_ZNK4pcpp14WireGuardLayer14getMessageTypeEv:
   60|    572|	{
   61|    572|		return getBasicHeader()->messageType;
   62|    572|	}
_ZN4pcpp14WireGuardLayer11isDataValidEPKhm:
   78|  1.47k|	{
   79|  1.47k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (79:7): [True: 0, False: 1.47k]
  ------------------
   80|      0|			return false;
   81|       |
   82|  1.47k|		uint8_t messageType = data[0];
   83|  1.47k|		return messageType >= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::HandshakeInitiation) &&
  ------------------
  |  Branch (83:10): [True: 1.44k, False: 35]
  ------------------
   84|  1.44k|		       messageType <= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::TransportData);
  ------------------
  |  Branch (84:10): [True: 1.43k, False: 10]
  ------------------
   85|  1.47k|	}

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

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

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

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

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

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

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

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

