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

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

_ZN4pcpp6Logger11getInstanceEv:
  367|  36.6M|		{
  368|  36.6M|			static Logger instance;
  369|  36.6M|			return instance;
  370|  36.6M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  319|  2.16k|		{
  320|  2.16k|			m_LogsEnabled = false;
  321|  2.16k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  137|   128k|		    : file(file), function(function), line(line), logModule(logModule)
  138|   128k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  187|   128k|			{
  188|   128k|				m_Source = source;
  189|   128k|				m_Level = level;
  190|   128k|				m_Stream.clear();
  191|   128k|				m_Stream.str({});
  192|   128k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  278|   100k|		{
  279|   100k|			return m_LogModulesArray[module] == LogLevel::Debug;
  280|   100k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  287|  36.5M|		{
  288|  36.5M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (288:11): [True: 36.5M, False: 0]
  |  Branch (288:37): [True: 128k, False: 36.4M]
  ------------------
  289|  36.5M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  198|     10|			{
  199|     10|				m_Stream << value;
  200|     10|				return *this;
  201|     10|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  198|    363|			{
  199|    363|				m_Stream << value;
  200|    363|				return *this;
  201|    363|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  198|    200|			{
  199|    200|				m_Stream << value;
  200|    200|				return *this;
  201|    200|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  198|    200|			{
  199|    200|				m_Stream << value;
  200|    200|				return *this;
  201|    200|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  198|    600|			{
  199|    600|				m_Stream << value;
  200|    600|				return *this;
  201|    600|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  198|  84.7k|			{
  199|  84.7k|				m_Stream << value;
  200|  84.7k|				return *this;
  201|  84.7k|			}
_ZN4pcpp8internal10LogContextlsIFRNSt3__18ios_baseES5_EEERS1_RKT_:
  198|      1|			{
  199|      1|				m_Stream << value;
  200|      1|				return *this;
  201|      1|			}
_ZN4pcpp8internal10LogContextlsIjEERS1_RKT_:
  198|  10.5k|			{
  199|  10.5k|				m_Stream << value;
  200|  10.5k|				return *this;
  201|  10.5k|			}
_ZN4pcpp8internal10LogContextlsIA32_cEERS1_RKT_:
  198|    139|			{
  199|    139|				m_Stream << value;
  200|    139|				return *this;
  201|    139|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  198|    605|			{
  199|    605|				m_Stream << value;
  200|    605|				return *this;
  201|    605|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  198|  12.1k|			{
  199|  12.1k|				m_Stream << value;
  200|  12.1k|				return *this;
  201|  12.1k|			}
_ZN4pcpp8internal10LogContextlsIA24_cEERS1_RKT_:
  198|  6.23k|			{
  199|  6.23k|				m_Stream << value;
  200|  6.23k|				return *this;
  201|  6.23k|			}
_ZN4pcpp8internal10LogContextlsIA23_cEERS1_RKT_:
  198|    471|			{
  199|    471|				m_Stream << value;
  200|    471|				return *this;
  201|    471|			}
_ZN4pcpp8internal10LogContextlsIA27_cEERS1_RKT_:
  198|    271|			{
  199|    271|				m_Stream << value;
  200|    271|				return *this;
  201|    271|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  198|    648|			{
  199|    648|				m_Stream << value;
  200|    648|				return *this;
  201|    648|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  198|      4|			{
  199|      4|				m_Stream << value;
  200|      4|				return *this;
  201|      4|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  198|     71|			{
  199|     71|				m_Stream << value;
  200|     71|				return *this;
  201|     71|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  198|     96|			{
  199|     96|				m_Stream << value;
  200|     96|				return *this;
  201|     96|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  198|     57|			{
  199|     57|				m_Stream << value;
  200|     57|				return *this;
  201|     57|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  198|    690|			{
  199|    690|				m_Stream << value;
  200|    690|				return *this;
  201|    690|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  198|      8|			{
  199|      8|				m_Stream << value;
  200|      8|				return *this;
  201|      8|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  198|  1.24k|			{
  199|  1.24k|				m_Stream << value;
  200|  1.24k|				return *this;
  201|  1.24k|			}
_ZN4pcpp8internal10LogContextlsIA14_cEERS1_RKT_:
  198|      2|			{
  199|      2|				m_Stream << value;
  200|      2|				return *this;
  201|      2|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  198|     60|			{
  199|     60|				m_Stream << value;
  200|     60|				return *this;
  201|     60|			}
_ZN4pcpp8internal10LogContextlsIA35_cEERS1_RKT_:
  198|     10|			{
  199|     10|				m_Stream << value;
  200|     10|				return *this;
  201|     10|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  198|  90.3k|			{
  199|  90.3k|				m_Stream << value;
  200|  90.3k|				return *this;
  201|  90.3k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  198|    190|			{
  199|    190|				m_Stream << value;
  200|    190|				return *this;
  201|    190|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  198|    119|			{
  199|    119|				m_Stream << value;
  200|    119|				return *this;
  201|    119|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  198|      3|			{
  199|      3|				m_Stream << value;
  200|      3|				return *this;
  201|      3|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  198|  2.55k|			{
  199|  2.55k|				m_Stream << value;
  200|  2.55k|				return *this;
  201|  2.55k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  198|    331|			{
  199|    331|				m_Stream << value;
  200|    331|				return *this;
  201|    331|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  198|     33|			{
  199|     33|				m_Stream << value;
  200|     33|				return *this;
  201|     33|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  198|    324|			{
  199|    324|				m_Stream << value;
  200|    324|				return *this;
  201|    324|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  198|     30|			{
  199|     30|				m_Stream << value;
  200|     30|				return *this;
  201|     30|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  198|  16.9k|			{
  199|  16.9k|				m_Stream << value;
  200|  16.9k|				return *this;
  201|  16.9k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  198|  3.07k|			{
  199|  3.07k|				m_Stream << value;
  200|  3.07k|				return *this;
  201|  3.07k|			}
_ZN4pcpp8internal10LogContextlsIA64_cEERS1_RKT_:
  198|      6|			{
  199|      6|				m_Stream << value;
  200|      6|				return *this;
  201|      6|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  198|    393|			{
  199|    393|				m_Stream << value;
  200|    393|				return *this;
  201|    393|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  198|  84.7k|			{
  199|  84.7k|				m_Stream << value;
  200|  84.7k|				return *this;
  201|  84.7k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  198|    690|			{
  199|    690|				m_Stream << value;
  200|    690|				return *this;
  201|    690|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  198|    660|			{
  199|    660|				m_Stream << value;
  200|    660|				return *this;
  201|    660|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  198|    586|			{
  199|    586|				m_Stream << value;
  200|    586|				return *this;
  201|    586|			}
_ZN4pcpp9LogSourceC2Ev:
  124|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  175|      2|			LogContext() = default;

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

_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEEC2Ev:
   59|  2.14k|		PointerVector() = default;
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|   113k|		{
  217|   113k|			return m_Vector.size();
  218|   113k|		}
_ZNK4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE2atEi:
  319|  85.3k|		{
  320|  85.3k|			return m_Vector.at(index);
  321|  85.3k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE4sizeEv:
  216|  82.9k|		{
  217|  82.9k|			return m_Vector.size();
  218|  82.9k|		}
_ZNK4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE2atEi:
  319|   267k|		{
  320|   267k|			return m_Vector.at(index);
  321|   267k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEED2Ev:
   78|  2.14k|		{
   79|  2.14k|			freeVectorUnsafe(m_Vector);
   80|  2.14k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  2.14k|		{
  363|  2.14k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 2.14k, False: 2.14k]
  ------------------
  364|  2.14k|			{
  365|  2.14k|				Deleter{}(obj);
  366|  2.14k|			}
  367|  2.14k|		}
_ZNK4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE5frontEv:
  238|  2.14k|		{
  239|  2.14k|			return m_Vector.front();
  240|  2.14k|		}
_ZN4pcpp13PointerVectorINS_9RawPacketENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  2.14k|		{
  148|  2.14k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 2.14k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  2.14k|			try
  154|  2.14k|			{
  155|  2.14k|				m_Vector.push_back(element);
  156|  2.14k|			}
  157|  2.14k|			catch (const std::exception&)
  158|  2.14k|			{
  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.14k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEEC2Ev:
   59|  76.3k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEEC2Ev:
   59|  4.51k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEED2Ev:
   78|  76.3k|		{
   79|  76.3k|			freeVectorUnsafe(m_Vector);
   80|  76.3k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  76.3k|		{
  363|  76.3k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 395k, False: 76.3k]
  ------------------
  364|   395k|			{
  365|   395k|				Deleter{}(obj);
  366|   395k|			}
  367|  76.3k|		}
_ZN4pcpp13PointerVectorINS_12SSLExtensionENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|   395k|		{
  173|   395k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 395k]
  ------------------
  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|   395k|			m_Vector.push_back(element.get());
  182|   395k|			element.release();
  183|   395k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEED2Ev:
   78|  4.51k|		{
   79|  4.51k|			freeVectorUnsafe(m_Vector);
   80|  4.51k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  4.51k|		{
  363|  4.51k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 5.56k, False: 4.51k]
  ------------------
  364|  5.56k|			{
  365|  5.56k|				Deleter{}(obj);
  366|  5.56k|			}
  367|  4.51k|		}
_ZN4pcpp13PointerVectorINS_18SSLx509CertificateENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|  5.56k|		{
  148|  5.56k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 5.56k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|  5.56k|			try
  154|  5.56k|			{
  155|  5.56k|				m_Vector.push_back(element);
  156|  5.56k|			}
  157|  5.56k|			catch (const std::exception&)
  158|  5.56k|			{
  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|  5.56k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|  98.1k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|  98.1k|		{
   79|  98.1k|			freeVectorUnsafe(m_Vector);
   80|  98.1k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  98.1k|		{
  363|  98.1k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 134k, False: 98.1k]
  ------------------
  364|   134k|			{
  365|   134k|				Deleter{}(obj);
  366|   134k|			}
  367|  98.1k|		}
_ZN4pcpp13PointerVectorINS_19SSLHandshakeMessageENSt3__114default_deleteIS1_EEE8pushBackEPS1_b:
  147|   134k|		{
  148|   134k|			if (element == nullptr)
  ------------------
  |  Branch (148:8): [True: 0, False: 134k]
  ------------------
  149|      0|			{
  150|      0|				throw std::invalid_argument("Element is nullptr");
  151|      0|			}
  152|       |
  153|   134k|			try
  154|   134k|			{
  155|   134k|				m_Vector.push_back(element);
  156|   134k|			}
  157|   134k|			catch (const std::exception&)
  158|   134k|			{
  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|   134k|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|     90|		{
  363|     90|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 18, False: 90]
  ------------------
  364|     18|			{
  365|     18|				Deleter{}(obj);
  366|     18|			}
  367|     90|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|    291|		{
  363|    291|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 26, False: 291]
  ------------------
  364|     26|			{
  365|     26|				Deleter{}(obj);
  366|     26|			}
  367|    291|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE2atEi:
  319|    395|		{
  320|    395|			return m_Vector.at(index);
  321|    395|		}
_ZNK4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE4sizeEv:
  216|      6|		{
  217|      6|			return m_Vector.size();
  218|      6|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEEC2Ev:
   59|  4.54k|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEED2Ev:
   78|  4.54k|		{
   79|  4.54k|			freeVectorUnsafe(m_Vector);
   80|  4.54k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE16freeVectorUnsafeERKNS2_6vectorIPS1_NS2_9allocatorIS7_EEEE:
  362|  4.54k|		{
  363|  4.54k|			for (auto& obj : origin)
  ------------------
  |  Branch (363:19): [True: 7.55k, False: 4.54k]
  ------------------
  364|  7.55k|			{
  365|  7.55k|				Deleter{}(obj);
  366|  7.55k|			}
  367|  4.54k|		}
_ZN4pcpp13PointerVectorINS_10Asn1RecordENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|  7.55k|		{
  173|  7.55k|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 7.55k]
  ------------------
  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.55k|			m_Vector.push_back(element.get());
  182|  7.55k|			element.release();
  183|  7.55k|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|    291|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|    291|		{
   79|    291|			freeVectorUnsafe(m_Vector);
   80|    291|		}
_ZN4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE8pushBackENS2_10unique_ptrIS1_S4_EE:
  172|     26|		{
  173|     26|			if (!element)
  ------------------
  |  Branch (173:8): [True: 0, False: 26]
  ------------------
  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|     26|			m_Vector.push_back(element.get());
  182|     26|			element.release();
  183|     26|		}
_ZNK4pcpp13PointerVectorINS_12MySqlMessageENSt3__114default_deleteIS1_EEE4sizeEv:
  216|    116|		{
  217|    116|			return m_Vector.size();
  218|    116|		}
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEEC2Ev:
   59|     90|		PointerVector() = default;
_ZN4pcpp13PointerVectorINS_15PostgresMessageENSt3__114default_deleteIS1_EEED2Ev:
   78|     90|		{
   79|     90|			freeVectorUnsafe(m_Vector);
   80|     90|		}
_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|     36|		{
  217|     36|			return m_Vector.size();
  218|     36|		}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|  45.3k|	{
   18|  45.3k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 3.55k, False: 41.8k]
  ------------------
   19|  3.55k|		{
   20|  3.55k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|  3.55k|		}
   22|       |
   23|  45.3k|		std::stringstream dataStream;
   24|  45.3k|		dataStream << std::hex;
   25|   571k|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 546k, False: 25.3k]
  ------------------
   26|   546k|		{
   27|   546k|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 19.9k, False: 526k]
  ------------------
   28|  19.9k|			{
   29|  19.9k|				break;
   30|  19.9k|			}
   31|       |
   32|   526k|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|   526k|		}
   34|       |
   35|  45.3k|		return dataStream.str();
   36|  45.3k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  33.3k|	{
   57|  33.3k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 33.3k]
  ------------------
   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|  33.3k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   311k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 277k, False: 33.3k]
  ------------------
   65|   277k|		{
   66|   277k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 277k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   277k|			const int firstChar = char2int(hexString[i]);
   72|   277k|			const int secondChar = char2int(hexString[i + 1]);
   73|   277k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 277k]
  |  Branch (73:25): [True: 0, False: 277k]
  ------------------
   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|   277k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   277k|		}
   82|       |
   83|  33.3k|		return hexString.length() / 2;
   84|  33.3k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  95.2k|	{
   88|  95.2k|		char* ptr = const_cast<char*>(haystack);
   89|   315k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 315k, False: 60]
  ------------------
   90|   315k|		{
   91|   315k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 293k, False: 21.4k]
  ------------------
   92|   315k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   293k|			{
   94|       |				// check if there is room to do a memcmp
   95|   293k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 699, False: 293k]
  ------------------
   96|    699|				{
   97|    699|					return nullptr;
   98|    699|				}
   99|       |
  100|   293k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 73.1k, False: 219k]
  ------------------
  101|  73.1k|				{
  102|  73.1k|					return ptr;
  103|  73.1k|				}
  104|   219k|				++ptr;
  105|   219k|			}
  106|  21.4k|			else
  107|  21.4k|			{
  108|  21.4k|				break;
  109|  21.4k|			}
  110|   315k|		}
  111|       |
  112|  21.4k|		return nullptr;
  113|  95.2k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   555k|	{
   40|   555k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 555k, False: 0]
  |  Branch (40:23): [True: 430k, False: 125k]
  ------------------
   41|   430k|		{
   42|   430k|			return input - '0';
   43|   430k|		}
   44|   125k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 125k, False: 0]
  |  Branch (44:23): [True: 0, False: 125k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|   125k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 125k, False: 0]
  |  Branch (48:23): [True: 125k, False: 0]
  ------------------
   49|   125k|		{
   50|   125k|			return input - 'a' + 10;
   51|   125k|		}
   52|      0|		return -1;
   53|   125k|	}

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

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

_ZNK4pcpp10MacAddress8toStringEv:
   11|   852k|	{
   12|   852k|		char str[19];
   13|   852k|		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: 852k]
  ------------------
   14|   852k|		             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|   852k|		return str;
   19|   852k|	}
_ZN4pcpp10MacAddressC2EPKhm:
   22|   870k|	{
   23|   870k|		if (addr == nullptr)
  ------------------
  |  Branch (23:7): [True: 0, False: 870k]
  ------------------
   24|      0|		{
   25|      0|			throw std::invalid_argument("Address pointer is null");
   26|      0|		}
   27|       |
   28|   870k|		if (size < 6)
  ------------------
  |  Branch (28:7): [True: 0, False: 870k]
  ------------------
   29|      0|		{
   30|      0|			throw std::out_of_range("Buffer size is smaller than MAC address size (6 bytes)");
   31|      0|		}
   32|       |
   33|   870k|		std::copy(addr, addr + 6, m_Address.begin());
   34|   870k|	}
_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.20k|	{
  242|       |		return htobe16(host);
  243|  2.20k|	}
_ZN4pcpp11netToHost16Et:
  246|  4.40k|	{
  247|       |		return be16toh(net);
  248|  4.40k|	}
_ZN4pcpp11hostToNet32Ej:
  251|  2.20k|	{
  252|       |		return htobe32(host);
  253|  2.20k|	}
_ZN4pcpp11netToHost32Ej:
  256|  17.6k|	{
  257|       |		return be32toh(net);
  258|  17.6k|	}

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

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

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  261|  25.7k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  262|  25.7k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   287k|		{
   67|   287k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 3.65k, False: 283k]
  |  Branch (67:29): [True: 25.9k, False: 257k]
  ------------------
   68|   287k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  6.79k|		{
   93|  6.79k|			return OsiModelApplicationLayer;
   94|  6.79k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|  44.3k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|  44.3k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|   472k|		{
  112|   472k|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|   472k|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  159|  2.24k|			{}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  174|  4.61k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  175|  4.61k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  190|  8.02k|		{
  191|  8.02k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  192|  8.02k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  230|  3.28k|		{
  231|  3.28k|			return BgpLayer::Open;
  232|  3.28k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  255|  6.65k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  256|  6.65k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  281|  15.2k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  298|  35.4k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  299|  35.4k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  393|  20.6k|		{
  394|  20.6k|			return BgpLayer::Update;
  395|  20.6k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  430|    419|		    : BgpLayer(data, dataLen, prevLayer, packet)
  431|    419|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  495|    332|		{
  496|    332|			return BgpLayer::Notification;
  497|    332|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  519|  3.80k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  520|  3.80k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  536|  2.87k|		{
  537|  2.87k|			return BgpLayer::Keepalive;
  538|  2.87k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  566|     75|		    : BgpLayer(data, dataLen, prevLayer, packet)
  567|     75|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  585|     60|		{
  586|     60|			return BgpLayer::RouteRefresh;
  587|     60|		}

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

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  3.62k|		{
  610|  3.62k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  3.62k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  28.9k|		{
  604|  28.9k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  28.9k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  3.62k|		{
  617|  3.62k|			return getDhcpHeader()->clientIpAddress;
  618|  3.62k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  3.62k|		{
  644|  3.62k|			return getDhcpHeader()->yourIpAddress;
  645|  3.62k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  3.62k|		{
  631|  3.62k|			return getDhcpHeader()->serverIpAddress;
  632|  3.62k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  3.62k|		{
  658|  3.62k|			return getDhcpHeader()->gatewayIpAddress;
  659|  3.62k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  3.55k|		{
  401|  3.55k|			return getValueAs<uint32_t>();
  402|  3.55k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  3.55k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  3.55k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 3.55k]
  |  Branch (423:29): [True: 1.08k, False: 2.46k]
  ------------------
  424|  1.08k|				return "";
  425|       |
  426|  2.46k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.46k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  3.55k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  4.73M|		{
  472|  4.73M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 4.73M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  4.73M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 111k, False: 4.62M]
  ------------------
  476|  4.62M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 4.16M, False: 459k]
  ------------------
  477|  4.27M|				return sizeof(uint8_t);
  478|       |
  479|   459k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  4.73M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  15.8k|		{
  484|  15.8k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 15.8k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  15.8k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 1.32k, False: 14.5k]
  ------------------
  488|  14.5k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 836, False: 13.6k]
  ------------------
  489|  2.16k|				return 0;
  490|       |
  491|  13.6k|			return m_Data->recordLen;
  492|  15.8k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   964k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   964k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   964k|		{
  454|   964k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   964k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 964k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   964k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 6.61k, False: 958k]
  ------------------
  459|  6.61k|				return false;
  460|       |
  461|   958k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 22.9k, False: 935k]
  ------------------
  462|   935k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 833k, False: 101k]
  ------------------
  463|   856k|				return true;
  464|       |
  465|   101k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   958k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  20.8k|		{
  596|  20.8k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  20.8k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  20.6k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   586k|		{
  749|   586k|			return m_DataLen;
  750|   586k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  765|  3.62k|		{
  766|  3.62k|			return OsiModelApplicationLayer;
  767|  3.62k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  771|   583k|		{
  772|   583k|			return m_Data + sizeof(dhcp_header);
  773|   583k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  785|   282k|	{
  786|   282k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (786:12): [True: 16.7k, False: 265k]
  |  Branch (786:29): [True: 16.4k, False: 242]
  |  Branch (786:48): [True: 4.42k, False: 261k]
  |  Branch (786:65): [True: 1.95k, False: 2.46k]
  ------------------
  787|   263k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (787:12): [True: 2.46k, False: 261k]
  |  Branch (787:29): [True: 2.41k, False: 52]
  ------------------
  788|   282k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  20.6k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  18.7k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  18.7k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  4.11k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  15.9k|		{
  358|  15.9k|			return m_DataLen;
  359|  15.9k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|    793|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  368|    793|		{
  369|    793|			return OsiModelApplicationLayer;
  370|    793|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  374|  15.1k|		{
  375|  15.1k|			return m_Data + sizeof(dhcpv6_header);
  376|  15.1k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  378|  2.37k|		{
  379|  2.37k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  380|  2.37k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  389|   272k|	{
  390|   272k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (390:10): [True: 2.22k, False: 270k]
  |  Branch (390:27): [True: 1.89k, False: 268k]
  ------------------
  391|   272k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  394|  4.11k|	{
  395|  4.11k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (395:10): [True: 4.11k, False: 0]
  |  Branch (395:18): [True: 4.11k, False: 0]
  ------------------
  396|  4.11k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  69.0k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   164k|		{
  360|   164k|			return m_DataLen;
  361|   164k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  12.2k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  13.7k|		{
  371|  13.7k|			return OsiModelApplicationLayer;
  372|  13.7k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  440|  7.74k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  441|  7.74k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  469|   829k|	{
  470|   829k|		switch (port)
  471|   829k|		{
  472|  51.4k|		case 53:
  ------------------
  |  Branch (472:3): [True: 51.4k, False: 777k]
  ------------------
  473|  63.4k|		case 5353:
  ------------------
  |  Branch (473:3): [True: 12.0k, False: 817k]
  ------------------
  474|  69.0k|		case 5355:
  ------------------
  |  Branch (474:3): [True: 5.52k, False: 823k]
  ------------------
  475|  69.0k|			return true;
  476|   760k|		default:
  ------------------
  |  Branch (476:3): [True: 760k, False: 69.0k]
  ------------------
  477|   760k|			return false;
  478|   829k|		}
  479|   829k|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  482|   497k|	{
  483|   497k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (483:38): [True: 242k, False: 255k]
  ------------------
  484|   497k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (484:10): [True: 497k, False: 0]
  |  Branch (484:18): [True: 441k, False: 56.1k]
  ------------------
  485|   497k|	}

_ZNK4pcpp12IDnsResource15getNextResourceEv:
   47|   860k|		{
   48|   860k|			return m_NextResource;
   49|   860k|		}
_ZN4pcpp12IDnsResource15setNextResourceEPS0_:
   51|   242k|		{
   52|   242k|			m_NextResource = next;
   53|   242k|		}
_ZNK4pcpp12IDnsResource7getNameEv:
   78|   157k|		{
   79|   157k|			return m_DecodedName;
   80|   157k|		}
_ZN4pcpp8DnsQueryC2EPNS_8DnsLayerEm:
  117|   103k|		DnsQuery(DnsLayer* dnsLayer, size_t offsetInLayer) : IDnsResource(dnsLayer, offsetInLayer)
  118|   103k|		{}
_ZN4pcpp8DnsQueryC2EPh:
  120|  13.7k|		explicit DnsQuery(uint8_t* emptyRawData) : IDnsResource(emptyRawData)
  121|  13.7k|		{}
_ZNK4pcpp8DnsQuery7getSizeEv:
  128|   216k|		{
  129|   216k|			return m_NameLength + 2 * sizeof(uint16_t);
  130|   216k|		}
_ZNK4pcpp8DnsQuery7getTypeEv:
  132|   131k|		{
  133|   131k|			return DnsQueryType;
  134|   131k|		}
_ZN4pcpp11DnsResourceC2EPNS_8DnsLayerEmNS_15DnsResourceTypeE:
  147|  94.2k|		    : IDnsResource(dnsLayer, offsetInLayer)
  148|  94.2k|		{
  149|  94.2k|			m_ResourceType = resourceType;
  150|  94.2k|		}
_ZN4pcpp11DnsResourceC2EPhNS_15DnsResourceTypeE:
  153|  41.2k|		    : IDnsResource(emptyRawData), m_ResourceType(resType)
  154|  41.2k|		{}
_ZNK4pcpp11DnsResource7getSizeEv:
  219|   285k|		{
  220|   285k|			return m_NameLength + 3 * sizeof(uint16_t) + sizeof(uint32_t) + getDataLength();
  221|   285k|		}
_ZNK4pcpp11DnsResource7getTypeEv:
  223|   248k|		{
  224|   248k|			return m_ResourceType;
  225|   248k|		}
_ZN4pcpp12IDnsResourceD2Ev:
   60|   252k|		virtual ~IDnsResource() = default;

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

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   678k|	{
  668|   678k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   678k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 20, False: 678k]
  |  Branch (669:52): [True: 20, False: 678k]
  ------------------
  670|   678k|	}
_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.16k|		    : Layer(data, dataLen, nullptr, packet, EthernetDot3)
   39|  8.16k|		{}
_ZNK4pcpp12EthDot3Layer12getEthHeaderEv:
   62|  6.73k|		{
   63|  6.73k|			return reinterpret_cast<ether_dot3_header*>(m_Data);
   64|  6.73k|		}
_ZNK4pcpp12EthDot3Layer12getSourceMacEv:
   69|  3.36k|		{
   70|  3.36k|			return MacAddress(getEthHeader()->srcMac);
   71|  3.36k|		}
_ZNK4pcpp12EthDot3Layer10getDestMacEv:
   83|  3.36k|		{
   84|  3.36k|			return MacAddress(getEthHeader()->dstMac);
   85|  3.36k|		}
_ZNK4pcpp12EthDot3Layer12getHeaderLenEv:
  101|  1.68k|		{
  102|  1.68k|			return sizeof(ether_dot3_header);
  103|  1.68k|		}
_ZN4pcpp12EthDot3Layer22computeCalculateFieldsEv:
  107|  1.68k|		{}
_ZNK4pcpp12EthDot3Layer16getOsiModelLayerEv:
  112|  1.68k|		{
  113|  1.68k|			return OsiModelDataLinkLayer;
  114|  1.68k|		}

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

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

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

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  13.4k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  13.4k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|  58.7k|		{
  323|  58.7k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|  58.7k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   294k|		{
  388|   294k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 17.0k, False: 277k]
  |  Branch (388:39): [True: 7.52k, False: 269k]
  ------------------
  389|   294k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  1.97k|		{
  410|  1.97k|			return OsiModelTransportLayer;
  411|  1.97k|		}
_ZN4pcpp16GtpV2MessageTypeC2ENS0_5ValueE:
  595|  9.00k|		constexpr GtpV2MessageType(Value value) : m_Value(value)
  596|  9.00k|		{}
_ZNK4pcpp16GtpV2MessageTypecvNS0_5ValueEEv:
  609|  4.63k|		{
  610|  4.63k|			return m_Value;
  611|  4.63k|		}
_ZN4pcpp10GtpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  980|  13.2k|		    : Layer(data, dataLen, prevLayer, packet, GTPv2)
  981|  13.2k|		{}
_ZN4pcpp10GtpV2Layer11isGTPv2PortEt:
  997|   660k|		{
  998|   660k|			return port == 2123;
  999|   660k|		}
_ZNK4pcpp10GtpV2Layer16getOsiModelLayerEv:
 1113|  2.21k|		{
 1114|  2.21k|			return OsiModelTransportLayer;
 1115|  2.21k|		}
_ZNK4pcpp10GtpV2Layer9getHeaderEv:
 1134|  28.5k|		{
 1135|  28.5k|			return reinterpret_cast<gtpv2_basic_header*>(m_Data);
 1136|  28.5k|		}
_ZN4pcpp10GtpV2LayerD2Ev:
  972|  13.2k|		~GtpV2Layer() override = default;

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|  1.20M|		{
   76|  1.20M|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 36.9k, False: 1.16M]
  |  Branch (76:25): [True: 97.1k, False: 1.06M]
  ------------------
   77|  1.20M|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  454|  15.7k|		{
  455|  15.7k|			return m_Value > 599;
  456|  15.7k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  19.7k|		{
   89|  19.7k|			return OsiModelApplicationLayer;
   90|  19.7k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
   94|   103k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
   95|   103k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  108|   103k|		{
  109|   103k|			return ':';
  110|   103k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  112|   103k|		{
  113|   103k|			return true;
  114|   103k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  416|    449|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  417|    449|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  431|  31.2k|		{
  432|  31.2k|			return m_Value;
  433|  31.2k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  613|   122k|		{
  614|   122k|			return m_FirstLineEndOffset;
  615|   122k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  634|  88.4k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  733|  20.9k|		{
  734|  20.9k|			return m_FirstLineEndOffset;
  735|  20.9k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  755|  15.5k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  411|  15.5k|		HttpResponseStatusCode() = default;

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

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

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  448|  6.56M|		{
  449|  6.56M|			return reinterpret_cast<iphdr*>(m_Data);
  450|  6.56M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  456|  2.01k|		{
  457|  2.01k|			return getSrcIPv4Address();
  458|  2.01k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  463|   481k|		{
  464|   481k|			return getIPv4Header()->ipSrc;
  465|   481k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  478|  2.01k|		{
  479|  2.01k|			return getDstIPv4Address();
  480|  2.01k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  485|   481k|		{
  486|   481k|			return getIPv4Header()->ipDst;
  487|   481k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  582|  1.27M|		{
  583|  1.27M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  584|  1.27M|			       m_TempHeaderExtension;
  585|  1.27M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  598|   165k|		{
  599|   165k|			return OsiModelNetworkLayer;
  600|   165k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  627|   872k|	{
  628|   872k|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  629|   872k|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (629:10): [True: 872k, False: 858]
  |  Branch (629:52): [True: 869k, False: 2.72k]
  |  Branch (629:75): [True: 868k, False: 413]
  ------------------
  630|   872k|	}

_ZNK4pcpp13IPv6Extension15getExtensionLenEv:
   41|  9.09k|		{
   42|  9.09k|			return 8 * (getBaseHeader()->headerLen + 1);
   43|  9.09k|		}
_ZNK4pcpp13IPv6Extension16getExtensionTypeEv:
   47|  8.81k|		{
   48|  8.81k|			return m_ExtType;
   49|  8.81k|		}
_ZNK4pcpp13IPv6Extension13getNextHeaderEv:
   56|  10.6k|		{
   57|  10.6k|			return m_NextHeader;
   58|  10.6k|		}
_ZN4pcpp13IPv6ExtensionC2EPNS_14IDataContainerEm:
   69|  6.62k|		    : m_NextHeader(nullptr), m_ExtType(IPv6ExtensionUnknown), m_DataContainer(dataContainer), m_Offset(offset),
   70|  6.62k|		      m_ShadowData(nullptr)
   71|  6.62k|		{}
_ZNK4pcpp13IPv6Extension13getBaseHeaderEv:
   87|  25.4k|		{
   88|  25.4k|			return (ipv6_ext_base_header*)getDataPtr();
   89|  25.4k|		}
_ZN4pcpp13IPv6Extension13setNextHeaderEPS0_:
   92|    615|		{
   93|    615|			m_NextHeader = nextHeader;
   94|    615|		}
_ZN4pcpp23IPv6FragmentationHeaderC2EPNS_14IDataContainerEm:
  155|    912|		IPv6FragmentationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  156|    912|		{
  157|    912|			m_ExtType = IPv6Fragmentation;
  158|    912|		}
_ZN4pcpp18IPv6HopByHopHeaderC2EPNS_14IDataContainerEm:
  326|  3.63k|		IPv6HopByHopHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  327|  3.63k|		{
  328|  3.63k|			m_ExtType = IPv6HopByHop;
  329|  3.63k|		}
_ZN4pcpp21IPv6DestinationHeaderC2EPNS_14IDataContainerEm:
  350|      3|		IPv6DestinationHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  351|      3|		{
  352|      3|			m_ExtType = IPv6Destination;
  353|      3|		}
_ZNK4pcpp24IPv6AuthenticationHeader15getExtensionLenEv:
  481|  4.14k|		{
  482|  4.14k|			return 4 * (getBaseHeader()->headerLen + 2);
  483|  4.14k|		}
_ZN4pcpp24IPv6AuthenticationHeaderC2EPNS_14IDataContainerEm:
  486|  2.07k|		IPv6AuthenticationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  487|  2.07k|		{
  488|  2.07k|			m_ExtType = IPv6AuthenticationHdr;
  489|  2.07k|		}

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

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  369|  29.1k|		{
  370|  29.1k|			return getMessageType() == type;
  371|  29.1k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  19.2k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  347|  19.2k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  359|   102k|		{
  360|   102k|			return reinterpret_cast<icmphdr*>(m_Data);
  361|   102k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  612|  3.27k|		{
  613|  3.27k|			return OsiModelNetworkLayer;
  614|  3.27k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  620|  19.8k|	{
  621|  19.8k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (621:7): [True: 0, False: 19.8k]
  ------------------
  622|      0|			return false;
  623|       |
  624|  19.8k|		uint8_t type = data[0];
  625|       |
  626|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL, ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  627|  19.8k|		if (type == 8 || type == 0 || type == 10 || type == 15 || type == 16)
  ------------------
  |  Branch (627:7): [True: 7.66k, False: 12.2k]
  |  Branch (627:20): [True: 5.24k, False: 6.97k]
  |  Branch (627:33): [True: 14, False: 6.96k]
  |  Branch (627:47): [True: 0, False: 6.96k]
  |  Branch (627:61): [True: 0, False: 6.96k]
  ------------------
  628|  12.9k|			return true;
  629|       |
  630|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  631|  6.96k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (631:7): [True: 152, False: 6.81k]
  |  Branch (631:21): [True: 0, False: 6.81k]
  ------------------
  632|    152|			return dataLen >= sizeof(icmp_timestamp_request);
  633|       |
  634|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  635|  6.81k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (635:7): [True: 5, False: 6.80k]
  |  Branch (635:21): [True: 565, False: 6.24k]
  ------------------
  636|    570|			return dataLen >= sizeof(icmp_address_mask_request);
  637|       |
  638|       |		// ICMP_DEST_UNREACHABLE
  639|  6.24k|		if (type == 3)
  ------------------
  |  Branch (639:7): [True: 3.81k, False: 2.43k]
  ------------------
  640|  3.81k|			return dataLen >= sizeof(icmp_destination_unreachable);
  641|       |
  642|       |		// ICMP_REDIRECT
  643|  2.43k|		if (type == 5)
  ------------------
  |  Branch (643:7): [True: 590, False: 1.84k]
  ------------------
  644|    590|			return dataLen >= sizeof(icmp_redirect);
  645|       |
  646|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  647|  1.84k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (647:7): [True: 8, False: 1.83k]
  |  Branch (647:20): [True: 684, False: 1.14k]
  ------------------
  648|    692|			return dataLen >= sizeof(icmp_time_exceeded);
  649|       |
  650|       |		// ICMP_PARAM_PROBLEM
  651|  1.14k|		if (type == 12)
  ------------------
  |  Branch (651:7): [True: 10, False: 1.13k]
  ------------------
  652|     10|			return dataLen >= sizeof(icmp_param_problem);
  653|       |
  654|       |		// ICMP_ROUTER_ADV
  655|  1.13k|		if (type == 9)
  ------------------
  |  Branch (655:7): [True: 537, False: 601]
  ------------------
  656|    537|			return dataLen >= sizeof(icmp_router_advertisement_hdr);
  657|       |
  658|    601|		return false;
  659|  1.13k|	}

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

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

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

_ZNK4pcpp5Layer12getNextLayerEv:
  126|  91.2M|		{
  127|  91.2M|			return m_NextLayer;
  128|  91.2M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  132|  1.55M|		{
  133|  1.55M|			return m_PrevLayer;
  134|  1.55M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  138|  65.5M|		{
  139|  65.5M|			return m_Protocol;
  140|  65.5M|		}
_ZNK4pcpp5Layer7getDataEv:
  149|   274k|		{
  150|   274k|			return m_Data;
  151|   274k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  155|  2.64M|		{
  156|  2.64M|			return m_DataLen;
  157|  2.64M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  167|  15.0k|		{
  168|  15.0k|			return m_DataLen - getHeaderLen();
  169|  15.0k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  181|  4.93M|		{
  182|  4.93M|			return m_AllocationInfo.attachedPacket != nullptr;
  183|  4.93M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  192|   123k|		{
  193|   123k|			return static_cast<uint8_t*>(m_Data + offset);
  194|   123k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  229|  4.77M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  230|  4.77M|		      m_AllocationInfo{ packet, false }
  231|  4.77M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  240|  4.29M|		{
  241|  4.29M|			return m_AllocationInfo.attachedPacket;
  242|  4.29M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  247|  7.24k|		{
  248|  7.24k|			return m_AllocationInfo.attachedPacket;
  249|  7.24k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  252|  3.73M|		{
  253|  3.73M|			m_NextLayer = nextLayer;
  254|  3.73M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  264|  6.89M|		{
  265|  6.89M|			return m_NextLayer != nullptr;
  266|  6.89M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  524|  15.6k|		{
  525|  15.6k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 15.6k, False: 0]
  |  Branch (525:30): [True: 15.6k, False: 0]
  ------------------
  526|  15.6k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  524|   872k|		{
  525|   872k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 872k, False: 0]
  |  Branch (525:30): [True: 872k, False: 858]
  ------------------
  526|   872k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  524|  20.8k|		{
  525|  20.8k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 20.8k, False: 0]
  |  Branch (525:30): [True: 20.6k, False: 192]
  ------------------
  526|  20.8k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  524|  17.5k|		{
  525|  17.5k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 17.5k, False: 0]
  |  Branch (525:30): [True: 17.5k, False: 0]
  ------------------
  526|  17.5k|		}
_ZN4pcpp14IDataContainerD2Ev:
   29|  4.93M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  31.6k|		{
  325|  31.6k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  31.6k|			                                               std::forward<Args>(extraArgs)...);
  327|  31.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  61.3k|		{
  349|  61.3k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 61.3k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  61.3k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  61.3k|			setNextLayer(newLayer);
  357|  61.3k|			return newLayer;
  358|  61.3k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   853k|		{
  420|   853k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   853k|			                                                       std::forward<Args>(extraArgs)...);
  422|   853k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   853k|		{
  442|   853k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 849k, False: 3.73k]
  ------------------
  443|   849k|			{
  444|   849k|				return m_NextLayer;
  445|   849k|			}
  446|       |
  447|  3.73k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   853k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   853k|		{
  394|   853k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 849k, False: 3.73k]
  ------------------
  395|   849k|			{
  396|   849k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   849k|			}
  398|  3.73k|			return nullptr;
  399|   853k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   849k|		{
  295|   849k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 849k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   849k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   849k|			setNextLayer(newLayer);
  302|   849k|			return newLayer;
  303|   849k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   356k|		{
  295|   356k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 356k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   356k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   356k|			setNextLayer(newLayer);
  302|   356k|			return newLayer;
  303|   356k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   243k|		{
  420|   243k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   243k|			                                                       std::forward<Args>(extraArgs)...);
  422|   243k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   250k|		{
  442|   250k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 250k, False: 69]
  ------------------
  443|   250k|			{
  444|   250k|				return m_NextLayer;
  445|   250k|			}
  446|       |
  447|     69|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   250k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   250k|		{
  394|   250k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 250k, False: 69]
  ------------------
  395|   250k|			{
  396|   250k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   250k|			}
  398|     69|			return nullptr;
  399|   250k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  524|   253k|		{
  525|   253k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 253k, False: 0]
  |  Branch (525:30): [True: 253k, False: 0]
  ------------------
  526|   253k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   250k|		{
  295|   250k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 250k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   250k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   250k|			setNextLayer(newLayer);
  302|   250k|			return newLayer;
  303|   250k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmDpOT0_:
  280|  17.2k|		{
  281|  17.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  17.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  57.0k|		{
  295|  57.0k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 57.0k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  57.0k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  57.0k|			setNextLayer(newLayer);
  302|  57.0k|			return newLayer;
  303|  57.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmDpOT0_:
  280|  99.2k|		{
  281|  99.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  99.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   102k|		{
  295|   102k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 102k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   102k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   102k|			setNextLayer(newLayer);
  302|   102k|			return newLayer;
  303|   102k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  9.05k|		{
  420|  9.05k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  9.05k|			                                                       std::forward<Args>(extraArgs)...);
  422|  9.05k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  9.05k|		{
  442|  9.05k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 8.44k, False: 616]
  ------------------
  443|  8.44k|			{
  444|  8.44k|				return m_NextLayer;
  445|  8.44k|			}
  446|       |
  447|    616|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  9.05k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  9.05k|		{
  394|  9.05k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 8.44k, False: 616]
  ------------------
  395|  8.44k|			{
  396|  8.44k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  8.44k|			}
  398|    616|			return nullptr;
  399|  9.05k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  8.44k|		{
  295|  8.44k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 8.44k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  8.44k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  8.44k|			setNextLayer(newLayer);
  302|  8.44k|			return newLayer;
  303|  8.44k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  6.20k|		{
  295|  6.20k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 6.20k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  6.20k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  6.20k|			setNextLayer(newLayer);
  302|  6.20k|			return newLayer;
  303|  6.20k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  280|  64.0k|		{
  281|  64.0k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  64.0k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  524|  39.9k|		{
  525|  39.9k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 39.9k, False: 0]
  |  Branch (525:30): [True: 39.7k, False: 132]
  ------------------
  526|  39.9k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_9MplsLayer11mpls_headerEEEbPKhm:
  524|  2.74k|		{
  525|  2.74k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 2.74k, False: 0]
  |  Branch (525:30): [True: 2.74k, False: 0]
  ------------------
  526|  2.74k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  7.38k|		{
  420|  7.38k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  7.38k|			                                                       std::forward<Args>(extraArgs)...);
  422|  7.38k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  7.38k|		{
  442|  7.38k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 5.78k, False: 1.59k]
  ------------------
  443|  5.78k|			{
  444|  5.78k|				return m_NextLayer;
  445|  5.78k|			}
  446|       |
  447|  1.59k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  7.38k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  7.38k|		{
  394|  7.38k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 5.78k, False: 1.59k]
  ------------------
  395|  5.78k|			{
  396|  5.78k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  5.78k|			}
  398|  1.59k|			return nullptr;
  399|  7.38k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  13.2k|		{
  295|  13.2k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 13.2k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  13.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  13.2k|			setNextLayer(newLayer);
  302|  13.2k|			return newLayer;
  303|  13.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   283k|		{
  442|   283k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 282k, False: 83]
  ------------------
  443|   282k|			{
  444|   282k|				return m_NextLayer;
  445|   282k|			}
  446|       |
  447|     83|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   283k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   283k|		{
  394|   283k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 282k, False: 83]
  ------------------
  395|   282k|			{
  396|   282k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   282k|			}
  398|     83|			return nullptr;
  399|   283k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   282k|		{
  295|   282k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 282k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   282k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   282k|			setNextLayer(newLayer);
  302|   282k|			return newLayer;
  303|   282k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|   720k|		{
  442|   720k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 716k, False: 3.43k]
  ------------------
  443|   716k|			{
  444|   716k|				return m_NextLayer;
  445|   716k|			}
  446|       |
  447|  3.43k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|   720k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|   720k|		{
  394|   720k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 716k, False: 3.43k]
  ------------------
  395|   716k|			{
  396|   716k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|   716k|			}
  398|  3.43k|			return nullptr;
  399|   720k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|   716k|		{
  295|   716k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 716k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|   716k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|   716k|			setNextLayer(newLayer);
  302|   716k|			return newLayer;
  303|   716k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  19.8k|		{
  442|  19.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 19.2k, False: 606]
  ------------------
  443|  19.2k|			{
  444|  19.2k|				return m_NextLayer;
  445|  19.2k|			}
  446|       |
  447|    606|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  19.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  19.8k|		{
  394|  19.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 19.2k, False: 606]
  ------------------
  395|  19.2k|			{
  396|  19.2k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  19.2k|			}
  398|    606|			return nullptr;
  399|  19.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  19.2k|		{
  295|  19.2k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 19.2k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  19.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  19.2k|			setNextLayer(newLayer);
  302|  19.2k|			return newLayer;
  303|  19.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  8.42k|		{
  442|  8.42k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 8.42k, False: 0]
  ------------------
  443|  8.42k|			{
  444|  8.42k|				return m_NextLayer;
  445|  8.42k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  8.42k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  8.42k|		{
  394|  8.42k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 8.42k, False: 0]
  ------------------
  395|  8.42k|			{
  396|  8.42k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  8.42k|			}
  398|      0|			return nullptr;
  399|  8.42k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  8.42k|		{
  295|  8.42k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 8.42k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  8.42k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  8.42k|			setNextLayer(newLayer);
  302|  8.42k|			return newLayer;
  303|  8.42k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  17.8k|		{
  442|  17.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 17.8k, False: 0]
  ------------------
  443|  17.8k|			{
  444|  17.8k|				return m_NextLayer;
  445|  17.8k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  17.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  17.8k|		{
  394|  17.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 17.8k, False: 0]
  ------------------
  395|  17.8k|			{
  396|  17.8k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  17.8k|			}
  398|      0|			return nullptr;
  399|  17.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  17.8k|		{
  295|  17.8k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 17.8k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  17.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  17.8k|			setNextLayer(newLayer);
  302|  17.8k|			return newLayer;
  303|  17.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  1.88k|		{
  442|  1.88k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 1.88k, False: 0]
  ------------------
  443|  1.88k|			{
  444|  1.88k|				return m_NextLayer;
  445|  1.88k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  1.88k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  1.88k|		{
  394|  1.88k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 1.88k, False: 0]
  ------------------
  395|  1.88k|			{
  396|  1.88k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  1.88k|			}
  398|      0|			return nullptr;
  399|  1.88k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  524|  5.02k|		{
  525|  5.02k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 5.02k, False: 0]
  |  Branch (525:30): [True: 5.02k, False: 0]
  ------------------
  526|  5.02k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  1.88k|		{
  295|  1.88k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 1.88k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  1.88k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  1.88k|			setNextLayer(newLayer);
  302|  1.88k|			return newLayer;
  303|  1.88k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  3.14k|		{
  442|  3.14k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 3.14k, False: 0]
  ------------------
  443|  3.14k|			{
  444|  3.14k|				return m_NextLayer;
  445|  3.14k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  3.14k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  3.14k|		{
  394|  3.14k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 3.14k, False: 0]
  ------------------
  395|  3.14k|			{
  396|  3.14k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  3.14k|			}
  398|      0|			return nullptr;
  399|  3.14k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.14k|		{
  295|  3.14k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.14k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.14k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.14k|			setNextLayer(newLayer);
  302|  3.14k|			return newLayer;
  303|  3.14k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|     36|		{
  442|     36|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 36, False: 0]
  ------------------
  443|     36|			{
  444|     36|				return m_NextLayer;
  445|     36|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|     36|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|     36|		{
  394|     36|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 36, False: 0]
  ------------------
  395|     36|			{
  396|     36|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|     36|			}
  398|      0|			return nullptr;
  399|     36|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  524|     36|		{
  525|     36|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 36, False: 0]
  |  Branch (525:30): [True: 36, False: 0]
  ------------------
  526|     36|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|     36|		{
  295|     36|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 36]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|     36|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|     36|			setNextLayer(newLayer);
  302|     36|			return newLayer;
  303|     36|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.13k|		{
  442|  2.13k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.13k, False: 0]
  ------------------
  443|  2.13k|			{
  444|  2.13k|				return m_NextLayer;
  445|  2.13k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.13k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.13k|		{
  394|  2.13k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.13k, False: 0]
  ------------------
  395|  2.13k|			{
  396|  2.13k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.13k|			}
  398|      0|			return nullptr;
  399|  2.13k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  524|  2.13k|		{
  525|  2.13k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 2.13k, False: 0]
  |  Branch (525:30): [True: 2.13k, False: 0]
  ------------------
  526|  2.13k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  2.13k|		{
  295|  2.13k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 2.13k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  2.13k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  2.13k|			setNextLayer(newLayer);
  302|  2.13k|			return newLayer;
  303|  2.13k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|     28|		{
  442|     28|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 28, False: 0]
  ------------------
  443|     28|			{
  444|     28|				return m_NextLayer;
  445|     28|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|     28|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|     28|		{
  394|     28|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 28, False: 0]
  ------------------
  395|     28|			{
  396|     28|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|     28|			}
  398|      0|			return nullptr;
  399|     28|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|     28|		{
  295|     28|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 28]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|     28|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|     28|			setNextLayer(newLayer);
  302|     28|			return newLayer;
  303|     28|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|     55|		{
  442|     55|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 55, False: 0]
  ------------------
  443|     55|			{
  444|     55|				return m_NextLayer;
  445|     55|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|     55|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|     55|		{
  394|     55|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 55, False: 0]
  ------------------
  395|     55|			{
  396|     55|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|     55|			}
  398|      0|			return nullptr;
  399|     55|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|     55|		{
  295|     55|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 55]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|     55|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|     55|			setNextLayer(newLayer);
  302|     55|			return newLayer;
  303|     55|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  12.4k|		{
  442|  12.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 12.4k, False: 0]
  ------------------
  443|  12.4k|			{
  444|  12.4k|				return m_NextLayer;
  445|  12.4k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  12.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  12.4k|		{
  394|  12.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 12.4k, False: 0]
  ------------------
  395|  12.4k|			{
  396|  12.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  12.4k|			}
  398|      0|			return nullptr;
  399|  12.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  12.4k|		{
  295|  12.4k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 12.4k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  12.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  12.4k|			setNextLayer(newLayer);
  302|  12.4k|			return newLayer;
  303|  12.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  5.03k|		{
  442|  5.03k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 5.03k, False: 0]
  ------------------
  443|  5.03k|			{
  444|  5.03k|				return m_NextLayer;
  445|  5.03k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  5.03k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  5.03k|		{
  394|  5.03k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 5.03k, False: 0]
  ------------------
  395|  5.03k|			{
  396|  5.03k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  5.03k|			}
  398|      0|			return nullptr;
  399|  5.03k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  15.4k|		{
  295|  15.4k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 15.4k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  15.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  15.4k|			setNextLayer(newLayer);
  302|  15.4k|			return newLayer;
  303|  15.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  9.18k|		{
  420|  9.18k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  9.18k|			                                                       std::forward<Args>(extraArgs)...);
  422|  9.18k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|   217k|		{
  420|   217k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|   217k|			                                                       std::forward<Args>(extraArgs)...);
  422|   217k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  3.24k|		{
  420|  3.24k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  3.24k|			                                                       std::forward<Args>(extraArgs)...);
  422|  3.24k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|     50|		{
  420|     50|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|     50|			                                                       std::forward<Args>(extraArgs)...);
  422|     50|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  324|  67.8k|		{
  325|  67.8k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  67.8k|			                                               std::forward<Args>(extraArgs)...);
  327|  67.8k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  348|  67.8k|		{
  349|  67.8k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 67.8k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  67.8k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  67.8k|			setNextLayer(newLayer);
  357|  67.8k|			return newLayer;
  358|  67.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  280|  10.4k|		{
  281|  10.4k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  10.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmDpOT0_:
  280|  7.32k|		{
  281|  7.32k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  7.32k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  22.9k|		{
  295|  22.9k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 22.9k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  22.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  22.9k|			setNextLayer(newLayer);
  302|  22.9k|			return newLayer;
  303|  22.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  26.5k|		{
  420|  26.5k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  26.5k|			                                                       std::forward<Args>(extraArgs)...);
  422|  26.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  26.5k|		{
  442|  26.5k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 26.4k, False: 128]
  ------------------
  443|  26.4k|			{
  444|  26.4k|				return m_NextLayer;
  445|  26.4k|			}
  446|       |
  447|    128|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  26.5k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  26.5k|		{
  394|  26.5k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 26.4k, False: 128]
  ------------------
  395|  26.4k|			{
  396|  26.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  26.4k|			}
  398|    128|			return nullptr;
  399|  26.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  26.4k|		{
  295|  26.4k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 26.4k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  26.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  26.4k|			setNextLayer(newLayer);
  302|  26.4k|			return newLayer;
  303|  26.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|    440|		{
  420|    440|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|    440|			                                                       std::forward<Args>(extraArgs)...);
  422|    440|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|    440|		{
  442|    440|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 440, False: 0]
  ------------------
  443|    440|			{
  444|    440|				return m_NextLayer;
  445|    440|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|    440|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|    440|		{
  394|    440|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 440, False: 0]
  ------------------
  395|    440|			{
  396|    440|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|    440|			}
  398|      0|			return nullptr;
  399|    440|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    440|		{
  295|    440|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 440]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    440|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    440|			setNextLayer(newLayer);
  302|    440|			return newLayer;
  303|    440|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  13.0k|		{
  420|  13.0k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  13.0k|			                                                       std::forward<Args>(extraArgs)...);
  422|  13.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  13.0k|		{
  442|  13.0k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 12.3k, False: 746]
  ------------------
  443|  12.3k|			{
  444|  12.3k|				return m_NextLayer;
  445|  12.3k|			}
  446|       |
  447|    746|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  13.0k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  13.0k|		{
  394|  13.0k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 12.3k, False: 746]
  ------------------
  395|  12.3k|			{
  396|  12.3k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  12.3k|			}
  398|    746|			return nullptr;
  399|  13.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  12.3k|		{
  295|  12.3k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 12.3k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  12.3k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  12.3k|			setNextLayer(newLayer);
  302|  12.3k|			return newLayer;
  303|  12.3k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  524|   372k|		{
  525|   372k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 372k, False: 0]
  |  Branch (525:30): [True: 372k, False: 0]
  ------------------
  526|   372k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|   372k|		{
  325|   372k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|   372k|			                                               std::forward<Args>(extraArgs)...);
  327|   372k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|   372k|		{
  349|   372k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 372k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|   372k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|   372k|			setNextLayer(newLayer);
  357|   372k|			return newLayer;
  358|   372k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  524|   212k|		{
  525|   212k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 212k, False: 0]
  |  Branch (525:30): [True: 195k, False: 16.5k]
  ------------------
  526|   212k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  88.4k|		{
  295|  88.4k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 88.4k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  88.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  88.4k|			setNextLayer(newLayer);
  302|  88.4k|			return newLayer;
  303|  88.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  15.5k|		{
  295|  15.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 15.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  15.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  15.5k|			setNextLayer(newLayer);
  302|  15.5k|			return newLayer;
  303|  15.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SipResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.25k|		{
  295|  3.25k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.25k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.25k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.25k|			setNextLayer(newLayer);
  302|  3.25k|			return newLayer;
  303|  3.25k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  29.6k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  29.6k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  29.6k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  29.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  29.6k|		{
  504|  29.6k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  29.6k|			                                                         std::forward<Args>(extraArgs)...);
  506|  29.6k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 28.7k, False: 841]
  ------------------
  507|  28.7k|			{
  508|  28.7k|				return nextLayer;
  509|  28.7k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|    841|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  29.6k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  15.9k|		{
  325|  15.9k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  15.9k|			                                               std::forward<Args>(extraArgs)...);
  327|  15.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  15.9k|		{
  349|  15.9k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 15.9k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  15.9k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  15.9k|			setNextLayer(newLayer);
  357|  15.9k|			return newLayer;
  358|  15.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  7.74k|		{
  295|  7.74k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 7.74k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  7.74k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  7.74k|			setNextLayer(newLayer);
  302|  7.74k|			return newLayer;
  303|  7.74k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  6.25k|		{
  295|  6.25k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 6.25k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  6.25k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  6.25k|			setNextLayer(newLayer);
  302|  6.25k|			return newLayer;
  303|  6.25k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  10.5k|		{
  295|  10.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 10.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  10.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  10.5k|			setNextLayer(newLayer);
  302|  10.5k|			return newLayer;
  303|  10.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15FtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.78k|		{
  295|  3.78k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.78k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.78k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.78k|			setNextLayer(newLayer);
  302|  3.78k|			return newLayer;
  303|  3.78k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  1.34k|		{
  295|  1.34k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 1.34k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  1.34k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  1.34k|			setNextLayer(newLayer);
  302|  1.34k|			return newLayer;
  303|  1.34k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  12.5k|		{
  295|  12.5k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 12.5k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  12.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  12.5k|			setNextLayer(newLayer);
  302|  12.5k|			return newLayer;
  303|  12.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.09k|		{
  295|  3.09k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.09k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.09k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.09k|			setNextLayer(newLayer);
  302|  3.09k|			return newLayer;
  303|  3.09k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  6.49k|		{
  295|  6.49k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 6.49k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  6.49k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  6.49k|			setNextLayer(newLayer);
  302|  6.49k|			return newLayer;
  303|  6.49k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|    965|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|    965|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|    965|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|    965|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|    965|		{
  504|    965|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|    965|			                                                         std::forward<Args>(extraArgs)...);
  506|    965|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 179, False: 786]
  ------------------
  507|    179|			{
  508|    179|				return nextLayer;
  509|    179|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|    786|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|    965|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  1.02k|		{
  349|  1.02k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 1.02k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  1.02k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  1.02k|			setNextLayer(newLayer);
  357|  1.02k|			return newLayer;
  358|  1.02k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|     90|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|     90|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|     90|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|     90|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|     90|		{
  504|     90|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|     90|			                                                         std::forward<Args>(extraArgs)...);
  506|     90|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 90, False: 0]
  ------------------
  507|     90|			{
  508|     90|				return nextLayer;
  509|     90|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|     90|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|     90|		{
  349|     90|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 90]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|     90|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|     90|			setNextLayer(newLayer);
  357|     90|			return newLayer;
  358|     90|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|    291|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|    291|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|    291|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|    291|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|    291|		{
  504|    291|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|    291|			                                                         std::forward<Args>(extraArgs)...);
  506|    291|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 291, False: 0]
  ------------------
  507|    291|			{
  508|    291|				return nextLayer;
  509|    291|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|    291|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|    291|		{
  349|    291|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 291]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|    291|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|    291|			setNextLayer(newLayer);
  357|    291|			return newLayer;
  358|    291|		}
_ZN4pcpp5Layer18constructNextLayerINS_11ModbusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    915|		{
  295|    915|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 915]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    915|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    915|			setNextLayer(newLayer);
  302|    915|			return newLayer;
  303|    915|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  12.4k|		{
  420|  12.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  12.4k|			                                                       std::forward<Args>(extraArgs)...);
  422|  12.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  12.4k|		{
  442|  12.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 10.6k, False: 1.72k]
  ------------------
  443|  10.6k|			{
  444|  10.6k|				return m_NextLayer;
  445|  10.6k|			}
  446|       |
  447|  1.72k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  12.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  12.4k|		{
  394|  12.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 10.6k, False: 1.72k]
  ------------------
  395|  10.6k|			{
  396|  10.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  10.6k|			}
  398|  1.72k|			return nullptr;
  399|  12.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  10.6k|		{
  295|  10.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 10.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  10.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  10.6k|			setNextLayer(newLayer);
  302|  10.6k|			return newLayer;
  303|  10.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  20.8k|		{
  420|  20.8k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  20.8k|			                                                       std::forward<Args>(extraArgs)...);
  422|  20.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  20.8k|		{
  442|  20.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 20.6k, False: 192]
  ------------------
  443|  20.6k|			{
  444|  20.6k|				return m_NextLayer;
  445|  20.6k|			}
  446|       |
  447|    192|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  20.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  20.8k|		{
  394|  20.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 20.6k, False: 192]
  ------------------
  395|  20.6k|			{
  396|  20.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  20.6k|			}
  398|    192|			return nullptr;
  399|  20.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  20.6k|		{
  295|  20.6k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 20.6k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  20.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  20.6k|			setNextLayer(newLayer);
  302|  20.6k|			return newLayer;
  303|  20.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  6.20k|		{
  420|  6.20k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  6.20k|			                                                       std::forward<Args>(extraArgs)...);
  422|  6.20k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  6.20k|		{
  442|  6.20k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 6.20k, False: 0]
  ------------------
  443|  6.20k|			{
  444|  6.20k|				return m_NextLayer;
  445|  6.20k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  6.20k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  6.20k|		{
  394|  6.20k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 6.20k, False: 0]
  ------------------
  395|  6.20k|			{
  396|  6.20k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  6.20k|			}
  398|      0|			return nullptr;
  399|  6.20k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  524|  6.20k|		{
  525|  6.20k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 6.20k, False: 0]
  |  Branch (525:30): [True: 6.20k, False: 0]
  ------------------
  526|  6.20k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  6.20k|		{
  295|  6.20k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 6.20k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  6.20k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  6.20k|			setNextLayer(newLayer);
  302|  6.20k|			return newLayer;
  303|  6.20k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  280|  61.2k|		{
  281|  61.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  61.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  61.2k|		{
  295|  61.2k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 61.2k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  61.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  61.2k|			setNextLayer(newLayer);
  302|  61.2k|			return newLayer;
  303|  61.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  474|  12.7k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  12.7k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  12.7k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  12.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  503|  12.7k|		{
  504|  12.7k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  12.7k|			                                                         std::forward<Args>(extraArgs)...);
  506|  12.7k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 10.4k, False: 2.32k]
  ------------------
  507|  10.4k|			{
  508|  10.4k|				return nextLayer;
  509|  10.4k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  2.32k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  12.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  348|  12.7k|		{
  349|  12.7k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 12.7k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  12.7k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  12.7k|			setNextLayer(newLayer);
  357|  12.7k|			return newLayer;
  358|  12.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  280|  22.8k|		{
  281|  22.8k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  22.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  22.8k|		{
  295|  22.8k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 22.8k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  22.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  22.8k|			setNextLayer(newLayer);
  302|  22.8k|			return newLayer;
  303|  22.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  280|  13.4k|		{
  281|  13.4k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  13.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  13.4k|		{
  295|  13.4k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 13.4k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  13.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  13.4k|			setNextLayer(newLayer);
  302|  13.4k|			return newLayer;
  303|  13.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmDpOT0_:
  280|  7.48k|		{
  281|  7.48k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  7.48k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  280|  4.11k|		{
  281|  4.11k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  4.11k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  4.11k|		{
  295|  4.11k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 4.11k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  4.11k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  4.11k|			setNextLayer(newLayer);
  302|  4.11k|			return newLayer;
  303|  4.11k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  280|  6.80k|		{
  281|  6.80k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  6.80k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  6.80k|		{
  295|  6.80k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 6.80k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  6.80k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  6.80k|			setNextLayer(newLayer);
  302|  6.80k|			return newLayer;
  303|  6.80k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  280|    555|		{
  281|    555|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|    555|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|    642|		{
  295|    642|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 642]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|    642|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|    642|			setNextLayer(newLayer);
  302|    642|			return newLayer;
  303|    642|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  1.54k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  1.54k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  1.54k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  1.54k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  1.54k|		{
  504|  1.54k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  1.54k|			                                                         std::forward<Args>(extraArgs)...);
  506|  1.54k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 1.54k, False: 0]
  ------------------
  507|  1.54k|			{
  508|  1.54k|				return nextLayer;
  509|  1.54k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  1.54k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  1.54k|		{
  349|  1.54k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 1.54k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  1.54k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  1.54k|			setNextLayer(newLayer);
  357|  1.54k|			return newLayer;
  358|  1.54k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  474|  69.2k|		{
  475|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  476|  69.2k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  477|  69.2k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  478|  69.2k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  503|  69.2k|		{
  504|  69.2k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  505|  69.2k|			                                                         std::forward<Args>(extraArgs)...);
  506|  69.2k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (506:8): [True: 1.32k, False: 67.8k]
  ------------------
  507|  1.32k|			{
  508|  1.32k|				return nextLayer;
  509|  1.32k|			}
  510|       |
  511|       |			// factory failed, construct fallback layer
  512|  67.8k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  513|  69.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  69.2k|		{
  349|  69.2k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 69.2k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  69.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  69.2k|			setNextLayer(newLayer);
  357|  69.2k|			return newLayer;
  358|  69.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmDpOT0_:
  280|  6.20k|		{
  281|  6.20k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  6.20k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  8.62k|		{
  420|  8.62k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  8.62k|			                                                       std::forward<Args>(extraArgs)...);
  422|  8.62k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  8.62k|		{
  442|  8.62k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 7.17k, False: 1.44k]
  ------------------
  443|  7.17k|			{
  444|  7.17k|				return m_NextLayer;
  445|  7.17k|			}
  446|       |
  447|  1.44k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  8.62k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  8.62k|		{
  394|  8.62k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 7.17k, False: 1.44k]
  ------------------
  395|  7.17k|			{
  396|  7.17k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  7.17k|			}
  398|  1.44k|			return nullptr;
  399|  8.62k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  7.17k|		{
  295|  7.17k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 7.17k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  7.17k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  7.17k|			setNextLayer(newLayer);
  302|  7.17k|			return newLayer;
  303|  7.17k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  15.6k|		{
  420|  15.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  15.6k|			                                                       std::forward<Args>(extraArgs)...);
  422|  15.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  15.6k|		{
  442|  15.6k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 15.6k, False: 0]
  ------------------
  443|  15.6k|			{
  444|  15.6k|				return m_NextLayer;
  445|  15.6k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  15.6k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  15.6k|		{
  394|  15.6k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 15.6k, False: 0]
  ------------------
  395|  15.6k|			{
  396|  15.6k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  15.6k|			}
  398|      0|			return nullptr;
  399|  15.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  39.9k|		{
  420|  39.9k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  39.9k|			                                                       std::forward<Args>(extraArgs)...);
  422|  39.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  39.9k|		{
  442|  39.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 39.7k, False: 132]
  ------------------
  443|  39.7k|			{
  444|  39.7k|				return m_NextLayer;
  445|  39.7k|			}
  446|       |
  447|    132|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  39.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  39.9k|		{
  394|  39.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 39.7k, False: 132]
  ------------------
  395|  39.7k|			{
  396|  39.7k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  39.7k|			}
  398|    132|			return nullptr;
  399|  39.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|  2.74k|		{
  420|  2.74k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|  2.74k|			                                                       std::forward<Args>(extraArgs)...);
  422|  2.74k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|  2.74k|		{
  442|  2.74k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 2.74k, False: 0]
  ------------------
  443|  2.74k|			{
  444|  2.74k|				return m_NextLayer;
  445|  2.74k|			}
  446|       |
  447|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|  2.74k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|  2.74k|		{
  394|  2.74k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 2.74k, False: 0]
  ------------------
  395|  2.74k|			{
  396|  2.74k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|  2.74k|			}
  398|      0|			return nullptr;
  399|  2.74k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  419|    519|		{
  420|    519|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  421|    519|			                                                       std::forward<Args>(extraArgs)...);
  422|    519|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  441|    519|		{
  442|    519|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (442:8): [True: 87, False: 432]
  ------------------
  443|     87|			{
  444|     87|				return m_NextLayer;
  445|     87|			}
  446|       |
  447|    432|			return constructNextLayer<TFallback>(data, dataLen, packet);
  448|    519|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  393|    519|		{
  394|    519|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (394:8): [True: 87, False: 432]
  ------------------
  395|     87|			{
  396|     87|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  397|     87|			}
  398|    432|			return nullptr;
  399|    519|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|     60|		{
  325|     60|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|     60|			                                               std::forward<Args>(extraArgs)...);
  327|     60|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  324|  5.24k|		{
  325|  5.24k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  326|  5.24k|			                                               std::forward<Args>(extraArgs)...);
  327|  5.24k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  348|  5.24k|		{
  349|  5.24k|			if (hasNextLayer())
  ------------------
  |  Branch (349:8): [True: 0, False: 5.24k]
  ------------------
  350|      0|			{
  351|      0|				throw std::runtime_error("Next layer already exists");
  352|      0|			}
  353|       |
  354|       |			// cppcheck-suppress redundantInitialization
  355|  5.24k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  356|  5.24k|			setNextLayer(newLayer);
  357|  5.24k|			return newLayer;
  358|  5.24k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12stp_tcn_bpduEEEbPKhm:
  524|  1.97k|		{
  525|  1.97k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 1.97k, False: 0]
  |  Branch (525:30): [True: 1.97k, False: 0]
  ------------------
  526|  1.97k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_13stp_conf_bpduEEEbPKhm:
  524|  1.98k|		{
  525|  1.98k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 1.98k, False: 0]
  |  Branch (525:30): [True: 1.98k, False: 0]
  ------------------
  526|  1.98k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_14rstp_conf_bpduEEEbPKhm:
  524|  1.08k|		{
  525|  1.08k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 1.08k, False: 0]
  |  Branch (525:30): [True: 1.08k, False: 0]
  ------------------
  526|  1.08k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_14mstp_conf_bpduEEEbPKhm:
  524|     68|		{
  525|     68|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (525:11): [True: 68, False: 0]
  |  Branch (525:30): [True: 64, False: 4]
  ------------------
  526|     68|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  280|  3.20k|		{
  281|  3.20k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  282|  3.20k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  294|  3.20k|		{
  295|  3.20k|			if (hasNextLayer())
  ------------------
  |  Branch (295:8): [True: 0, False: 3.20k]
  ------------------
  296|      0|			{
  297|      0|				throw std::runtime_error("Next layer already exists");
  298|      0|			}
  299|       |
  300|  3.20k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  301|  3.20k|			setNextLayer(newLayer);
  302|  3.20k|			return newLayer;
  303|  3.20k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   380k|		{
  348|   380k|			return port == 389;
  349|   380k|		}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|    179|		{
   89|    179|			return m_Value;
   90|    179|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|    214|		{
  367|    214|			return m_Asn1Record->getTotalLength();
  368|    214|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|     35|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|     35|		{
  375|     35|			return OsiModelApplicationLayer;
  376|     35|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|    164|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|    164|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|     15|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|     15|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|    124|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|    124|		{}
_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|    179|		~LdapLayer() override = default;

_ZN4pcpp11ModbusLayer12isModbusPortEt:
  100|   188k|		{
  101|   188k|			return port == 502;
  102|   188k|		}
_ZN4pcpp11ModbusLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   87|    915|		    : Layer(data, dataLen, prevLayer, packet, Modbus)
   88|    915|		{}
_ZN4pcpp11ModbusLayer14parseNextLayerEv:
  136|    915|		{}
_ZNK4pcpp11ModbusLayer12getHeaderLenEv:
  141|    178|		{
  142|    178|			return sizeof(modbus_header);
  143|    178|		}
_ZN4pcpp11ModbusLayer22computeCalculateFieldsEv:
  147|    178|		{}
_ZNK4pcpp11ModbusLayer16getOsiModelLayerEv:
  155|    178|		{
  156|    178|			return OsiModelApplicationLayer;
  157|    178|		}

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

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

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

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

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

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

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

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

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

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

_ZN4pcpp13PostgresLayer14isPostgresPortEt:
  509|   378k|		{
  510|   378k|			return port == 5432;
  511|   378k|		}
_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|     18|		{
  568|     18|			return m_DataLen;
  569|     18|		}
_ZN4pcpp13PostgresLayer14parseNextLayerEv:
  573|     90|		{}
_ZN4pcpp13PostgresLayer22computeCalculateFieldsEv:
  577|     18|		{}
_ZNK4pcpp13PostgresLayer16getOsiModelLayerEv:
  581|     18|		{
  582|     18|			return OsiModelApplicationLayer;
  583|     18|		}
_ZN4pcpp13PostgresLayerC2EPhmPNS_5LayerEPNS_6PacketENS_21PostgresMessageOriginE:
  595|     90|		    : Layer(data, dataLen, prevLayer, packet, Postgres), m_MessageOrigin(messageOrigin)
  596|     90|		{}
_ZN4pcpp15PostgresMessageD2Ev:
  201|     18|		virtual ~PostgresMessage() = default;
_ZN4pcpp13PostgresLayerD2Ev:
  504|     90|		~PostgresLayer() override = default;

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

_ZN4pcpp11RadiusLayer12isRadiusPortEt:
  274|   347k|	{
  275|   347k|		switch (port)
  276|   347k|		{
  277|  19.2k|		case 1812:
  ------------------
  |  Branch (277:3): [True: 19.2k, False: 328k]
  ------------------
  278|  20.4k|		case 1813:
  ------------------
  |  Branch (278:3): [True: 1.12k, False: 346k]
  ------------------
  279|  30.1k|		case 3799:
  ------------------
  |  Branch (279:3): [True: 9.75k, False: 337k]
  ------------------
  280|  30.1k|			return true;
  281|   317k|		default:
  ------------------
  |  Branch (281:3): [True: 317k, False: 30.1k]
  ------------------
  282|   317k|			return false;
  283|   347k|		}
  284|   347k|	}  // 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.35M|		{
  463|  2.35M|			return m_RawData;
  464|  2.35M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  469|  1.13M|		{
  470|  1.13M|			return m_LinkLayerType;
  471|  1.13M|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  481|  2.59M|		{
  482|  2.59M|			return m_RawDataLen;
  483|  2.59M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  494|   227k|		{
  495|   227k|			return m_TimeStamp;
  496|   227k|		}
_ZN4pcpp9RawPacketC2Ev:
  312|  2.14k|		RawPacket() = default;

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

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   257k|		{
   94|   257k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 3.37k, False: 254k]
  |  Branch (94:28): [True: 11.7k, False: 242k]
  ------------------
   95|   257k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.08k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.08k|		{
  109|  3.08k|			return OsiModelApplicationLayer;
  110|  3.08k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  15.9k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  15.9k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  1.45k|		{
  150|  1.45k|			return m_DataLen;
  151|  1.45k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  1.21k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  1.21k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  2.43k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  2.43k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  3.77k|		{
  266|  3.77k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  3.77k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  12.2k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  12.2k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  14.6k|		{
  403|  14.6k|			return m_DataLen;
  404|  14.6k|		}

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

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  6.82k|	{
  947|  6.82k|		size_t vecSize = m_ExtensionList.size();
  948|  13.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 12.2k, False: 881]
  ------------------
  949|  12.2k|		{
  950|  12.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  12.2k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 5.94k, False: 6.32k]
  ------------------
  952|  5.94k|				return static_cast<TExtension*>(curElem);
  953|  12.2k|		}
  954|       |
  955|    881|		return nullptr;
  956|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  6.82k|	{
  947|  6.82k|		size_t vecSize = m_ExtensionList.size();
  948|  58.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 53.8k, False: 4.69k]
  ------------------
  949|  53.8k|		{
  950|  53.8k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  53.8k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.13k, False: 51.6k]
  ------------------
  952|  2.13k|				return static_cast<TExtension*>(curElem);
  953|  53.8k|		}
  954|       |
  955|  4.69k|		return nullptr;
  956|  6.82k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  4.75k|	{
  960|  4.75k|		size_t vecSize = m_ExtensionList.size();
  961|  8.33k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 4.16k, False: 4.17k]
  ------------------
  962|  4.16k|		{
  963|  4.16k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  4.16k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 583, False: 3.58k]
  ------------------
  965|    583|				return static_cast<TExtension*>(curElem);
  966|  4.16k|		}
  967|       |
  968|  4.17k|		return nullptr;
  969|  4.75k|	}
_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|   959k|		{
  188|   959k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   959k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  5.56k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  5.56k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  13.6k|		{
  403|  13.6k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  13.6k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  7.26k|		{
  539|  7.26k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  7.26k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  8.55k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  8.55k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|     13|		    : SSLHandshakeMessage(data, dataLen, container)
  700|     13|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  6.19k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  6.19k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  13.4k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  13.4k|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|  2.32k|		    : SSLHandshakeMessage(data, dataLen, container)
  861|  2.32k|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|    761|		    : SSLHandshakeMessage(data, dataLen, container)
  894|    761|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  22.3k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  22.3k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   134k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  37.8k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  38.4k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  4.51k|		~SSLCertificateMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  47.5k|		{
  153|  47.5k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 47.5k]
  |  Branch (153:27): [True: 0, False: 47.5k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  47.5k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  47.5k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 1.27k, False: 46.2k]
  ------------------
  160|  1.27k|			{
  161|  1.27k|				return nullptr;
  162|  1.27k|			}
  163|       |
  164|  46.2k|			return std::make_unique<T>(data, dataLen);
  165|  47.5k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   395k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  19.0k|		{
  153|  19.0k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 19.0k]
  |  Branch (153:27): [True: 0, False: 19.0k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  19.0k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  19.0k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 38, False: 18.9k]
  ------------------
  160|     38|			{
  161|     38|				return nullptr;
  162|     38|			}
  163|       |
  164|  18.9k|			return std::make_unique<T>(data, dataLen);
  165|  19.0k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  23.8k|		{
  153|  23.8k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 23.8k]
  |  Branch (153:27): [True: 0, False: 23.8k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  23.8k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  23.8k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 15, False: 23.8k]
  ------------------
  160|     15|			{
  161|     15|				return nullptr;
  162|     15|			}
  163|       |
  164|  23.8k|			return std::make_unique<T>(data, dataLen);
  165|  23.8k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  17.6k|		{
  153|  17.6k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 17.6k]
  |  Branch (153:27): [True: 0, False: 17.6k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  17.6k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  17.6k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 65, False: 17.5k]
  ------------------
  160|     65|			{
  161|     65|				return nullptr;
  162|     65|			}
  163|       |
  164|  17.5k|			return std::make_unique<T>(data, dataLen);
  165|  17.6k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   301k|		{
  153|   301k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 301k]
  |  Branch (153:27): [True: 0, False: 301k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   301k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   301k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 12.8k, False: 288k]
  ------------------
  160|  12.8k|			{
  161|  12.8k|				return nullptr;
  162|  12.8k|			}
  163|       |
  164|   288k|			return std::make_unique<T>(data, dataLen);
  165|   301k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  6.82k|	{
  947|  6.82k|		size_t vecSize = m_ExtensionList.size();
  948|  43.2k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 41.1k, False: 2.07k]
  ------------------
  949|  41.1k|		{
  950|  41.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  41.1k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 4.75k, False: 36.3k]
  ------------------
  952|  4.75k|				return static_cast<TExtension*>(curElem);
  953|  41.1k|		}
  954|       |
  955|  2.07k|		return nullptr;
  956|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  6.82k|	{
  947|  6.82k|		size_t vecSize = m_ExtensionList.size();
  948|  46.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 42.5k, False: 4.21k]
  ------------------
  949|  42.5k|		{
  950|  42.5k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  42.5k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.61k, False: 39.9k]
  ------------------
  952|  2.61k|				return static_cast<TExtension*>(curElem);
  953|  42.5k|		}
  954|       |
  955|  4.21k|		return nullptr;
  956|  6.82k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  9.51k|	{
  960|  9.51k|		size_t vecSize = m_ExtensionList.size();
  961|  19.6k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 12.3k, False: 7.23k]
  ------------------
  962|  12.3k|		{
  963|  12.3k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  12.3k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 2.27k, False: 10.1k]
  ------------------
  965|  2.27k|				return static_cast<TExtension*>(curElem);
  966|  12.3k|		}
  967|       |
  968|  7.23k|		return nullptr;
  969|  9.51k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  444|  15.0k|	{
  445|  15.0k|		size_t vecSize = m_MessageList.size();
  446|  26.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 18.5k, False: 8.24k]
  ------------------
  447|  18.5k|		{
  448|  18.5k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  18.5k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 6.82k, False: 11.6k]
  ------------------
  450|  6.82k|				return (THandshakeMessage*)curElem;
  451|  18.5k|		}
  452|       |
  453|       |		// element not found
  454|  8.24k|		return nullptr;
  455|  15.0k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  444|  15.0k|	{
  445|  15.0k|		size_t vecSize = m_MessageList.size();
  446|  24.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 14.5k, False: 10.3k]
  ------------------
  447|  14.5k|		{
  448|  14.5k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  14.5k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 4.75k, False: 9.81k]
  ------------------
  450|  4.75k|				return (THandshakeMessage*)curElem;
  451|  14.5k|		}
  452|       |
  453|       |		// element not found
  454|  10.3k|		return nullptr;
  455|  15.0k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  444|  15.0k|	{
  445|  15.0k|		size_t vecSize = m_MessageList.size();
  446|  15.0k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (446:22): [True: 14.3k, False: 735]
  ------------------
  447|  14.3k|		{
  448|  14.3k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  449|  14.3k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (449:8): [True: 14.3k, False: 0]
  ------------------
  450|  14.3k|				return (THandshakeMessage*)curElem;
  451|  14.3k|		}
  452|       |
  453|       |		// element not found
  454|    735|		return nullptr;
  455|  15.0k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   658k|		{
  228|   658k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   658k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  62.7k|		{
  248|  62.7k|			return OsiModelPresentationLayer;
  249|  62.7k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   372k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   372k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  15.0k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  33.9k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  33.9k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  4.91k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  9.96k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  9.96k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  407|  1.43k|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|   230k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  423|   230k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  440|  41.3k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  489|   912k|	{
  490|   912k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (490:7): [True: 287k, False: 625k]
  ------------------
  491|   287k|			return true;
  492|       |
  493|   625k|		switch (port)
  494|   625k|		{
  495|  13.6k|		case 261:  // NSIIOPS
  ------------------
  |  Branch (495:3): [True: 13.6k, False: 612k]
  ------------------
  496|  13.9k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (496:3): [True: 268, False: 625k]
  ------------------
  497|  14.6k|		case 465:  // SMTPS
  ------------------
  |  Branch (497:3): [True: 770, False: 624k]
  ------------------
  498|  14.7k|		case 563:  // NNTPS
  ------------------
  |  Branch (498:3): [True: 20, False: 625k]
  ------------------
  499|  14.8k|		case 614:  // SSHELL
  ------------------
  |  Branch (499:3): [True: 172, False: 625k]
  ------------------
  500|  14.8k|		case 636:  // LDAPS
  ------------------
  |  Branch (500:3): [True: 5, False: 625k]
  ------------------
  501|  14.8k|		case 989:  // FTPS - data
  ------------------
  |  Branch (501:3): [True: 0, False: 625k]
  ------------------
  502|  15.0k|		case 990:  // FTPS - control
  ------------------
  |  Branch (502:3): [True: 135, False: 625k]
  ------------------
  503|  15.1k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (503:3): [True: 90, False: 625k]
  ------------------
  504|  15.1k|		case 993:  // IMAPS
  ------------------
  |  Branch (504:3): [True: 60, False: 625k]
  ------------------
  505|  15.1k|		case 994:  // IRCS
  ------------------
  |  Branch (505:3): [True: 0, False: 625k]
  ------------------
  506|  15.4k|		case 995:  // POP3S
  ------------------
  |  Branch (506:3): [True: 262, False: 625k]
  ------------------
  507|  15.4k|			return true;
  508|   610k|		default:
  ------------------
  |  Branch (508:3): [True: 610k, False: 15.4k]
  ------------------
  509|   610k|			return false;
  510|   625k|		}
  511|   625k|	}  // isSSLPort

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

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

_ZN4pcpp8SipLayer9isSipPortEt:
  113|   970k|		{
  114|   970k|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 22.2k, False: 947k]
  |  Branch (114:27): [True: 6.69k, False: 941k]
  ------------------
  115|   970k|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  2.81k|		{
   98|  2.81k|			return OsiModelSesionLayer;
   99|  2.81k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  15.0k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  15.0k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  15.0k|		{
  156|  15.0k|			return ':';
  157|  15.0k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  15.0k|		{
  160|  15.0k|			return true;
  161|  15.0k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  9.47k|		{
  585|  9.47k|			return m_FirstLineEndOffset;
  586|  9.47k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  6.83k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  11.1k|		{
  710|  11.1k|			return m_FirstLineEndOffset;
  711|  11.1k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  8.21k|			{}

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

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

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   396k|		{
   29|   396k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 8.84k, False: 387k]
  |  Branch (29:25): [True: 4.16k, False: 383k]
  ------------------
   30|   396k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|  3.09k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|  9.58k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|  9.58k|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|  1.89k|		{
   41|  1.89k|			return m_DataLen;
   42|  1.89k|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|  1.89k|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|  1.89k|		{
   51|  1.89k|			return OsiModelApplicationLayer;
   52|  1.89k|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|  6.49k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

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

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

_ZN4pcpp8StpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  123|  5.09k|		    : Layer(data, dataLen, prevLayer, packet, STP)
  124|  5.09k|		{}
_ZN4pcpp8StpLayer22computeCalculateFieldsEv:
  203|    855|		{}
_ZNK4pcpp8StpLayer16getOsiModelLayerEv:
  207|    855|		{
  208|    855|			return OsiModelDataLinkLayer;
  209|    855|		}
_ZN4pcpp26StpTopologyChangeBPDULayerC2EPhmPNS_5LayerEPNS_6PacketE:
  242|  5.09k|		    : StpLayer(data, dataLen, prevLayer, packet)
  243|  5.09k|		{}
_ZNK4pcpp26StpTopologyChangeBPDULayer12getHeaderLenEv:
  260|    329|		{
  261|    329|			return sizeof(stp_tcn_bpdu);
  262|    329|		}
_ZNK4pcpp26StpTopologyChangeBPDULayer8toStringEv:
  269|    658|		{
  270|    658|			return "Spanning Tree Topology Change Notification";
  271|    658|		}
_ZN4pcpp26StpTopologyChangeBPDULayer11isDataValidEPKhm:
  279|  1.97k|		{
  280|  1.97k|			return canReinterpretAs<stp_tcn_bpdu>(data, dataLen);
  281|  1.97k|		}
_ZN4pcpp25StpConfigurationBPDULayerC2EPhmPNS_5LayerEPNS_6PacketE:
  299|  3.12k|		    : StpTopologyChangeBPDULayer(data, dataLen, prevLayer, packet)
  300|  3.12k|		{}
_ZNK4pcpp25StpConfigurationBPDULayer12getHeaderLenEv:
  449|    330|		{
  450|    330|			return sizeof(stp_conf_bpdu);
  451|    330|		}
_ZNK4pcpp25StpConfigurationBPDULayer8toStringEv:
  458|    660|		{
  459|    660|			return "Spanning Tree Configuration";
  460|    660|		}
_ZN4pcpp25StpConfigurationBPDULayer11isDataValidEPKhm:
  467|  1.98k|		{
  468|  1.98k|			return canReinterpretAs<stp_conf_bpdu>(data, dataLen);
  469|  1.98k|		}
_ZN4pcpp13RapidStpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  487|  1.14k|		    : StpConfigurationBPDULayer(data, dataLen, prevLayer, packet)
  488|  1.14k|		{}
_ZNK4pcpp13RapidStpLayer12getHeaderLenEv:
  519|    196|		{
  520|    196|			return sizeof(rstp_conf_bpdu);
  521|    196|		}
_ZNK4pcpp13RapidStpLayer8toStringEv:
  528|    360|		{
  529|    360|			return "Rapid Spanning Tree";
  530|    360|		}
_ZN4pcpp13RapidStpLayer11isDataValidEPKhm:
  537|  1.08k|		{
  538|  1.08k|			return canReinterpretAs<rstp_conf_bpdu>(data, dataLen);
  539|  1.08k|		}
_ZN4pcpp16MultipleStpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  554|     64|		    : RapidStpLayer(data, dataLen, prevLayer, packet)
  555|     64|		{}
_ZN4pcpp16MultipleStpLayer14parseNextLayerEv:
  692|     64|		{}
_ZNK4pcpp16MultipleStpLayer8toStringEv:
  696|     32|		{
  697|     32|			return "Multiple Spanning Tree";
  698|     32|		}
_ZN4pcpp16MultipleStpLayer11isDataValidEPKhm:
  705|     68|		{
  706|     68|			return canReinterpretAs<mstp_conf_bpdu>(data, dataLen);
  707|     68|		}

_ZN4pcpp9TLVRecordIhhED2Ev:
   53|  1.58M|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  222|   856k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   48|  5.98k|		{
   49|  5.98k|			m_Data = other.m_Data;
   50|  5.98k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   53|  23.1k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   77|  16.3k|		{
   78|  16.3k|			m_Data = other.m_Data;
   79|  16.3k|			return *this;
   80|  16.3k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  162|  3.55k|		{
  163|  3.55k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 3.49k, False: 59]
  ------------------
  164|  3.49k|				return 0;
  165|       |
  166|     59|			T result;
  167|     59|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|     59|			return result;
  169|  3.55k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   48|   467k|		{
   49|   467k|			m_Data = other.m_Data;
   50|   467k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  195|  8.54k|		{
  196|  8.54k|			return 0;
  197|  8.54k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   77|  1.16M|		{
   78|  1.16M|			m_Data = other.m_Data;
   79|  1.16M|			return *this;
   80|  1.16M|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   58|  2.91M|		{
   59|  2.91M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  2.91M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   67|   200k|		{
   68|   200k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 200k, False: 0]
  ------------------
   69|   200k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 198k, False: 2.66k]
  ------------------
   70|   200k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   58|  38.0k|		{
   59|  38.0k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   60|  38.0k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   40|  1.57M|		{
   41|  1.57M|			assign(recordRawData);
   42|  1.57M|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  222|  20.6k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  211|  20.6k|		{
  212|  20.6k|			m_RecordCount = static_cast<size_t>(-1);
  213|  20.6k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  128|  3.76M|		{
  129|  3.76M|			return (m_Data == nullptr);
  130|  3.76M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  162|  8.74k|		{
  163|  8.74k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (163:8): [True: 261, False: 8.48k]
  ------------------
  164|    261|				return 0;
  165|       |
  166|  8.48k|			T result;
  167|  8.48k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  168|  8.48k|			return result;
  169|  8.74k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  298|  14.4k|		{
  299|  14.4k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   399k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 394k, False: 5.39k]
  ------------------
  301|   394k|			{
  302|   394k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 9.10k, False: 385k]
  ------------------
  303|  9.10k|				{
  304|  9.10k|					return curRec;
  305|  9.10k|				}
  306|       |
  307|   385k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|   385k|			}
  309|       |
  310|  5.39k|			curRec.assign(nullptr);
  311|  5.39k|			return curRec;  // for NRVO optimization
  312|  14.4k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  239|  21.6k|		{
  240|  21.6k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  21.6k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 35, False: 21.6k]
  ------------------
  242|     35|				return resRec;
  243|       |
  244|  21.6k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  21.6k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 330, False: 21.3k]
  ------------------
  247|    330|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  21.6k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 21.3k, False: 330]
  |  Branch (250:29): [True: 0, False: 21.3k]
  |  Branch (250:48): [True: 0, False: 21.3k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  21.6k|			return resRec;
  254|  21.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   943k|		{
  265|   943k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   943k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 943k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   943k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 8.62k, False: 934k]
  ------------------
  271|   943k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   943k|			                                  record.getTotalSize()))
  273|  8.62k|				return resRec;
  274|       |
  275|   934k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   934k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 934k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   934k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 934k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   934k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 934k, False: 0]
  |  Branch (285:28): [True: 3.57k, False: 930k]
  ------------------
  286|  3.57k|				resRec.assign(nullptr);
  287|       |
  288|   934k|			return resRec;
  289|   943k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  322|   286k|		{
  323|   286k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 282k, False: 3.62k]
  ------------------
  324|   282k|				return m_RecordCount;
  325|       |
  326|  3.62k|			m_RecordCount = 0;
  327|  3.62k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|   282k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 278k, False: 3.62k]
  ------------------
  329|   278k|			{
  330|   278k|				m_RecordCount++;
  331|   278k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|   278k|			}
  333|       |
  334|  3.62k|			return m_RecordCount;
  335|   286k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  110|   617k|		{
  111|   617k|			if (m_Data == nullptr)
  ------------------
  |  Branch (111:8): [True: 0, False: 617k]
  ------------------
  112|      0|				return 0;
  113|       |
  114|   617k|			return m_Data->recordType;
  115|   617k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  146|  54.7k|		{
  147|  54.7k|			if (!isNull())
  ------------------
  |  Branch (147:8): [True: 54.7k, False: 0]
  ------------------
  148|  54.7k|			{
  149|  54.7k|				delete[] m_Data;
  150|  54.7k|				m_Data = nullptr;
  151|  54.7k|			}
  152|  54.7k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  140|  5.86M|		{
  141|  5.86M|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  5.86M|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   40|  18.7k|		{
   41|  18.7k|			assign(recordRawData);
   42|  18.7k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  222|  4.11k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  211|  4.11k|		{
  212|  4.11k|			m_RecordCount = static_cast<size_t>(-1);
  213|  4.11k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  239|  2.35k|		{
  240|  2.35k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  2.35k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 0, False: 2.35k]
  ------------------
  242|      0|				return resRec;
  243|       |
  244|  2.35k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  2.35k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 13, False: 2.34k]
  ------------------
  247|     13|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  2.35k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 2.34k, False: 13]
  |  Branch (250:29): [True: 0, False: 2.34k]
  |  Branch (250:48): [True: 0, False: 2.34k]
  ------------------
  251|      0|				resRec.assign(nullptr);
  252|       |
  253|  2.35k|			return resRec;
  254|  2.35k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   67|  18.7k|		{
   68|  18.7k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (68:11): [True: 18.7k, False: 0]
  ------------------
   69|  18.7k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (69:11): [True: 17.7k, False: 1.03k]
  ------------------
   70|  18.7k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  264|  16.3k|		{
  265|  16.3k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  16.3k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 16.3k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  16.3k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 1.03k, False: 15.3k]
  ------------------
  271|  16.3k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  16.3k|			                                  record.getTotalSize()))
  273|  1.03k|				return resRec;
  274|       |
  275|  15.3k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  15.3k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 15.3k]
  ------------------
  278|      0|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  15.3k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 0, False: 15.3k]
  ------------------
  282|      0|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  15.3k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 15.3k, False: 0]
  |  Branch (285:28): [True: 1.05k, False: 14.2k]
  ------------------
  286|  1.05k|				resRec.assign(nullptr);
  287|       |
  288|  15.3k|			return resRec;
  289|  16.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  298|    780|		{
  299|    780|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  5.19k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 4.65k, False: 533]
  ------------------
  301|  4.65k|			{
  302|  4.65k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 247, False: 4.41k]
  ------------------
  303|    247|				{
  304|    247|					return curRec;
  305|    247|				}
  306|       |
  307|  4.41k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  4.41k|			}
  309|       |
  310|    533|			curRec.assign(nullptr);
  311|    533|			return curRec;  // for NRVO optimization
  312|    780|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  322|  7.56k|		{
  323|  7.56k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (323:8): [True: 6.76k, False: 793]
  ------------------
  324|  6.76k|				return m_RecordCount;
  325|       |
  326|    793|			m_RecordCount = 0;
  327|    793|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  328|  6.78k|			while (!curRec.isNull())
  ------------------
  |  Branch (328:11): [True: 5.98k, False: 793]
  ------------------
  329|  5.98k|			{
  330|  5.98k|				m_RecordCount++;
  331|  5.98k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  332|  5.98k|			}
  333|       |
  334|    793|			return m_RecordCount;
  335|  7.56k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  128|  46.0k|		{
  129|  46.0k|			return (m_Data == nullptr);
  130|  46.0k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  140|  81.1k|		{
  141|  81.1k|			return reinterpret_cast<uint8_t*>(m_Data);
  142|  81.1k|		}
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEED2Ev:
  222|  13.2k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEEC2Ev:
  211|  13.2k|		{
  212|  13.2k|			m_RecordCount = static_cast<size_t>(-1);
  213|  13.2k|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  222|   868k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  211|   868k|		{
  212|   868k|			m_RecordCount = static_cast<size_t>(-1);
  213|   868k|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  222|  3.63k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  211|  1.04k|		{
  212|  1.04k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.04k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  222|  1.04k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  211|    440|		{
  212|    440|			m_RecordCount = static_cast<size_t>(-1);
  213|    440|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  222|    440|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  298|   139k|		{
  299|   139k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|   172k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 88.1k, False: 84.7k]
  ------------------
  301|  88.1k|			{
  302|  88.1k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 54.7k, False: 33.4k]
  ------------------
  303|  54.7k|				{
  304|  54.7k|					return curRec;
  305|  54.7k|				}
  306|       |
  307|  33.4k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  33.4k|			}
  309|       |
  310|  84.7k|			curRec.assign(nullptr);
  311|  84.7k|			return curRec;  // for NRVO optimization
  312|   139k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  239|   194k|		{
  240|   194k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|   194k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 70.7k, False: 123k]
  ------------------
  242|  70.7k|				return resRec;
  243|       |
  244|   123k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|   123k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 2.30k, False: 121k]
  ------------------
  247|  2.30k|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|   123k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 121k, False: 2.30k]
  |  Branch (250:29): [True: 0, False: 121k]
  |  Branch (250:48): [True: 109, False: 121k]
  ------------------
  251|    109|				resRec.assign(nullptr);
  252|       |
  253|   123k|			return resRec;
  254|   194k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  264|   221k|		{
  265|   221k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|   221k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 221k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|   221k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 62.4k, False: 159k]
  ------------------
  271|   221k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|   221k|			                                  record.getTotalSize()))
  273|  62.4k|				return resRec;
  274|       |
  275|   159k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|   159k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 679, False: 158k]
  ------------------
  278|    679|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|   159k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 679, False: 158k]
  ------------------
  282|    679|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|   159k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 158k, False: 679]
  |  Branch (285:28): [True: 3.11k, False: 155k]
  ------------------
  286|  3.11k|				resRec.assign(nullptr);
  287|       |
  288|   159k|			return resRec;
  289|   221k|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  134|   188k|		{
  135|   188k|			return (m_Data != nullptr);
  136|   188k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  343|  54.7k|		{
  344|  54.7k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (344:8): [True: 0, False: 54.7k]
  ------------------
  345|      0|				m_RecordCount += changedBy;
  346|  54.7k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  211|   856k|		{
  212|   856k|			m_RecordCount = static_cast<size_t>(-1);
  213|   856k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  227|   139k|		{
  228|   139k|			m_RecordCount = other.m_RecordCount;
  229|   139k|			return *this;
  230|   139k|		}
_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|  1.98k|		{
  212|  1.98k|			m_RecordCount = static_cast<size_t>(-1);
  213|  1.98k|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  222|  1.98k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  211|  3.63k|		{
  212|  3.63k|			m_RecordCount = static_cast<size_t>(-1);
  213|  3.63k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  239|  1.47k|		{
  240|  1.47k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  1.47k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 238, False: 1.24k]
  ------------------
  242|    238|				return resRec;
  243|       |
  244|  1.24k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  1.24k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 30, False: 1.21k]
  ------------------
  247|     30|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  1.24k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 1.21k, False: 30]
  |  Branch (250:29): [True: 0, False: 1.21k]
  |  Branch (250:48): [True: 132, False: 1.07k]
  ------------------
  251|    132|				resRec.assign(nullptr);
  252|       |
  253|  1.24k|			return resRec;
  254|  1.47k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE16getNextTLVRecordERS1_PKhm:
  264|    154|		{
  265|    154|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|    154|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 154]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|    154|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 4, False: 150]
  ------------------
  271|    154|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|    154|			                                  record.getTotalSize()))
  273|      4|				return resRec;
  274|       |
  275|    150|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|    150|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 6, False: 144]
  ------------------
  278|      6|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|    150|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 6, False: 144]
  ------------------
  282|      6|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|    150|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 144, False: 6]
  |  Branch (285:28): [True: 64, False: 80]
  ------------------
  286|     64|				resRec.assign(nullptr);
  287|       |
  288|    150|			return resRec;
  289|    154|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  298|  1.47k|		{
  299|  1.47k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  1.63k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 1.15k, False: 474]
  ------------------
  301|  1.15k|			{
  302|  1.15k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 1.00k, False: 154]
  ------------------
  303|  1.00k|				{
  304|  1.00k|					return curRec;
  305|  1.00k|				}
  306|       |
  307|    154|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|    154|			}
  309|       |
  310|    474|			curRec.assign(nullptr);
  311|    474|			return curRec;  // for NRVO optimization
  312|  1.47k|		}
_ZNK4pcpp9TLVRecordIhhE8getValueEv:
  119|    502|		{
  120|    502|			if (m_Data == nullptr)
  ------------------
  |  Branch (120:8): [True: 0, False: 502]
  ------------------
  121|      0|				return nullptr;
  122|       |
  123|    502|			return m_Data->recordValue;
  124|    502|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  298|    975|		{
  299|    975|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  300|  2.26k|			while (!curRec.isNull())
  ------------------
  |  Branch (300:11): [True: 1.42k, False: 840]
  ------------------
  301|  1.42k|			{
  302|  1.42k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (302:9): [True: 135, False: 1.28k]
  ------------------
  303|    135|				{
  304|    135|					return curRec;
  305|    135|				}
  306|       |
  307|  1.28k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  308|  1.28k|			}
  309|       |
  310|    840|			curRec.assign(nullptr);
  311|    840|			return curRec;  // for NRVO optimization
  312|    975|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  239|  1.48k|		{
  240|  1.48k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  241|  1.48k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (241:8): [True: 34, False: 1.45k]
  ------------------
  242|     34|				return resRec;
  243|       |
  244|  1.45k|			resRec.assign(tlvDataBasePtr);
  245|       |			// resRec pointer is out-bounds of the TLV records memory
  246|  1.45k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (246:8): [True: 993, False: 461]
  ------------------
  247|    993|				resRec.assign(nullptr);
  248|       |
  249|       |			// check if there are records at all and the total size is not zero
  250|  1.45k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (250:8): [True: 461, False: 993]
  |  Branch (250:29): [True: 0, False: 461]
  |  Branch (250:48): [True: 102, False: 359]
  ------------------
  251|    102|				resRec.assign(nullptr);
  252|       |
  253|  1.45k|			return resRec;
  254|  1.48k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  264|  1.88k|		{
  265|  1.88k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  266|       |
  267|  1.88k|			if (record.isNull())
  ------------------
  |  Branch (267:8): [True: 0, False: 1.88k]
  ------------------
  268|      0|				return resRec;
  269|       |
  270|  1.88k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (270:8): [True: 144, False: 1.74k]
  ------------------
  271|  1.88k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  272|  1.88k|			                                  record.getTotalSize()))
  273|    144|				return resRec;
  274|       |
  275|  1.74k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  276|       |
  277|  1.74k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (277:8): [True: 3, False: 1.74k]
  ------------------
  278|      3|				resRec.assign(nullptr);
  279|       |
  280|       |			// resRec pointer is out-bounds of the TLV records memory
  281|  1.74k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (281:8): [True: 3, False: 1.74k]
  ------------------
  282|      3|				resRec.assign(nullptr);
  283|       |
  284|       |			// resRec pointer is out-bounds of the TLV records memory
  285|  1.74k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (285:8): [True: 1.74k, False: 3]
  |  Branch (285:28): [True: 18, False: 1.72k]
  ------------------
  286|     18|				resRec.assign(nullptr);
  287|       |
  288|  1.74k|			return resRec;
  289|  1.88k|		}

_ZN4pcpp8TcpLayerD2Ev:
  459|   856k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  257|   610k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  258|   610k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  282|   415k|		{
  283|   415k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  284|   415k|			if (data == nullptr)
  ------------------
  |  Branch (284:8): [True: 0, False: 415k]
  ------------------
  285|      0|				return false;
  286|       |
  287|   415k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (287:8): [True: 132k, False: 283k]
  ------------------
  288|   132k|				return false;
  289|       |
  290|   283k|			const auto recordType = getTcpOptionEnumType(data);
  291|   283k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (291:8): [True: 171k, False: 111k]
  |  Branch (291:48): [True: 13.9k, False: 97.3k]
  ------------------
  292|   185k|				return true;
  293|       |
  294|  97.3k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  295|   283k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  300|  1.57M|		{
  301|  1.57M|			if (m_Data == nullptr)
  ------------------
  |  Branch (301:8): [True: 0, False: 1.57M]
  ------------------
  302|      0|				return 0;
  303|       |
  304|  1.57M|			const auto recordType = getTcpOptionEnumType(m_Data);
  305|  1.57M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (305:8): [True: 1.03M, False: 541k]
  |  Branch (305:48): [True: 70.6k, False: 470k]
  ------------------
  306|  1.10M|				return sizeof(uint8_t);
  307|       |
  308|   470k|			return static_cast<size_t>(m_Data->recordLen);
  309|  1.57M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  333|  1.85M|		{
  334|  1.85M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (334:8): [True: 0, False: 1.85M]
  ------------------
  335|      0|				return TcpOptionEnumType::Unknown;
  336|       |
  337|  1.85M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  338|  1.85M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  472|  4.03M|		{
  473|  4.03M|			return reinterpret_cast<tcphdr*>(m_Data);
  474|  4.03M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  566|  1.57M|		{
  567|  1.57M|			return getTcpHeader()->dataOffset * 4;
  568|  1.57M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  576|   139k|		{
  577|   139k|			return OsiModelTransportLayer;
  578|   139k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  586|   382k|		{
  587|   382k|			return m_Data + sizeof(tcphdr);
  588|   382k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  597|   720k|	{
  598|   720k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  599|   720k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (599:10): [True: 719k, False: 225]
  |  Branch (599:39): [True: 718k, False: 1.88k]
  ------------------
  600|   718k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (600:13): [True: 716k, False: 1.31k]
  ------------------
  601|   720k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  1.78M|		{
   50|  1.78M|			return m_FieldSize;
   51|  1.78M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|   712k|		{
   71|   712k|			return m_IsEndOfHeaderField;
   72|   712k|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|    498|		{
  124|    498|			return m_FieldList;
  125|    498|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   212k|		{
   93|   212k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   212k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   195k|		{
   84|   195k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 6.54k, False: 189k]
  |  Branch (84:29): [True: 5.97k, False: 183k]
  ------------------
   85|   195k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  12.5k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  12.5k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  14.3k|		{
   68|  14.3k|			return sizeof(tpkthdr);
   69|  14.3k|		}
_ZN4pcpp9TpktLayer22computeCalculateFieldsEv:
   73|  1.80k|		{}
_ZNK4pcpp9TpktLayer16getOsiModelLayerEv:
   99|  1.80k|		{
  100|  1.80k|			return OsiModelTransportLayer;
  101|  1.80k|		}
_ZNK4pcpp9TpktLayer13getTpktHeaderEv:
  109|  7.21k|		{
  110|  7.21k|			return reinterpret_cast<tpkthdr*>(m_Data);
  111|  7.21k|		}

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

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

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

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

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

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  70.7k|		{
   69|  70.7k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 860, False: 69.8k]
  |  Branch (69:32): [True: 790, False: 69.1k]
  ------------------
   70|  70.7k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|    616|		{
   33|    616|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|    616|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  1.54k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  1.54k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  1.54k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    308|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    308|		{
  116|    308|			return OsiModelNetworkLayer;
  117|    308|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  162|    235|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  163|    235|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  259|    540|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  260|    540|		{}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  349|    130|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  350|    130|		{}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  416|    635|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  417|    635|		{}

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

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

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

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

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

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   45|  20.6k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   46|  20.6k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   76|  3.62k|	{
   77|  3.62k|		dhcp_header* hdr = getDhcpHeader();
   78|  3.62k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (78:7): [True: 3.62k, False: 0]
  |  Branch (78:25): [True: 3.57k, False: 46]
  |  Branch (78:51): [True: 2.62k, False: 957]
  ------------------
   79|  2.62k|			return MacAddress(hdr->clientHardwareAddress);
   80|       |
   81|  1.00k|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  425|  1.00k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.00k|	do                                                                                                                 \
  |  |  |  |  413|  1.00k|	{                                                                                                                  \
  |  |  |  |  414|  1.00k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.00k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.00k|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.00k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.00k|		{                                                                                                              \
  |  |  |  |  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|  1.00k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.00k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   82|       |
   83|  1.00k|		return MacAddress::Zero;
   84|  3.62k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   95|  3.62k|	{
   96|  3.62k|		dhcp_header* hdr = getDhcpHeader();
   97|       |
   98|  3.62k|		hdr->magicNumber = DHCP_MAGIC_NUMBER;
  ------------------
  |  |    9|  3.62k|#define DHCP_MAGIC_NUMBER 0x63538263
  ------------------
   99|       |
  100|  3.62k|		DhcpMessageType msgType = getMessageType();
  101|  3.62k|		switch (msgType)
  102|  3.62k|		{
  103|  2.00k|		case DHCP_DISCOVER:
  ------------------
  |  Branch (103:3): [True: 2.00k, False: 1.61k]
  ------------------
  104|  2.28k|		case DHCP_REQUEST:
  ------------------
  |  Branch (104:3): [True: 272, False: 3.35k]
  ------------------
  105|  2.28k|		case DHCP_DECLINE:
  ------------------
  |  Branch (105:3): [True: 2, False: 3.62k]
  ------------------
  106|  2.28k|		case DHCP_RELEASE:
  ------------------
  |  Branch (106:3): [True: 0, False: 3.62k]
  ------------------
  107|  2.29k|		case DHCP_INFORM:
  ------------------
  |  Branch (107:3): [True: 13, False: 3.61k]
  ------------------
  108|  3.10k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (108:3): [True: 809, False: 2.81k]
  ------------------
  109|  3.10k|			hdr->opCode = DHCP_BOOTREQUEST;
  110|  3.10k|			break;
  111|    165|		case DHCP_OFFER:
  ------------------
  |  Branch (111:3): [True: 165, False: 3.45k]
  ------------------
  112|    266|		case DHCP_ACK:
  ------------------
  |  Branch (112:3): [True: 101, False: 3.52k]
  ------------------
  113|    266|		case DHCP_NAK:
  ------------------
  |  Branch (113:3): [True: 0, False: 3.62k]
  ------------------
  114|    266|			hdr->opCode = DHCP_BOOTREPLY;
  115|    266|			break;
  116|    254|		default:
  ------------------
  |  Branch (116:3): [True: 254, False: 3.37k]
  ------------------
  117|    254|			break;
  118|  3.62k|		}
  119|       |
  120|  3.62k|		hdr->hardwareType = 1;           // Ethernet
  121|  3.62k|		hdr->hardwareAddressLength = 6;  // MAC address length
  122|  3.62k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  125|  7.24k|	{
  126|  7.24k|		std::string msgType = "Unknown";
  127|  7.24k|		switch (getMessageType())
  128|  7.24k|		{
  129|  4.01k|		case DHCP_DISCOVER:
  ------------------
  |  Branch (129:3): [True: 4.01k, False: 3.23k]
  ------------------
  130|  4.01k|		{
  131|  4.01k|			msgType = "Discover";
  132|  4.01k|			break;
  133|      0|		}
  134|    330|		case DHCP_OFFER:
  ------------------
  |  Branch (134:3): [True: 330, False: 6.91k]
  ------------------
  135|    330|		{
  136|    330|			msgType = "Offer";
  137|    330|			break;
  138|      0|		}
  139|    544|		case DHCP_REQUEST:
  ------------------
  |  Branch (139:3): [True: 544, False: 6.70k]
  ------------------
  140|    544|		{
  141|    544|			msgType = "Request";
  142|    544|			break;
  143|      0|		}
  144|      4|		case DHCP_DECLINE:
  ------------------
  |  Branch (144:3): [True: 4, False: 7.24k]
  ------------------
  145|      4|		{
  146|      4|			msgType = "Decline";
  147|      4|			break;
  148|      0|		}
  149|    202|		case DHCP_ACK:
  ------------------
  |  Branch (149:3): [True: 202, False: 7.04k]
  ------------------
  150|    202|		{
  151|    202|			msgType = "Acknowledge";
  152|    202|			break;
  153|      0|		}
  154|      0|		case DHCP_NAK:
  ------------------
  |  Branch (154:3): [True: 0, False: 7.24k]
  ------------------
  155|      0|		{
  156|      0|			msgType = "Negative Acknowledge";
  157|      0|			break;
  158|      0|		}
  159|      0|		case DHCP_RELEASE:
  ------------------
  |  Branch (159:3): [True: 0, False: 7.24k]
  ------------------
  160|      0|		{
  161|      0|			msgType = "Release";
  162|      0|			break;
  163|      0|		}
  164|     26|		case DHCP_INFORM:
  ------------------
  |  Branch (164:3): [True: 26, False: 7.22k]
  ------------------
  165|     26|		{
  166|     26|			msgType = "Inform";
  167|     26|			break;
  168|      0|		}
  169|  2.12k|		default:
  ------------------
  |  Branch (169:3): [True: 2.12k, False: 5.12k]
  ------------------
  170|  2.12k|			break;
  171|  7.24k|		}
  172|       |
  173|  7.24k|		return "DHCP layer (" + msgType + ")";
  174|  7.24k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  177|  10.8k|	{
  178|  10.8k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  179|  10.8k|		if (opt.isNull())
  ------------------
  |  Branch (179:7): [True: 2.13k, False: 8.74k]
  ------------------
  180|  2.13k|			return DHCP_UNKNOWN_MSG_TYPE;
  181|       |
  182|  8.74k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  183|  10.8k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  203|  14.4k|	{
  204|  14.4k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  205|  14.4k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  208|  3.55k|	{
  209|  3.55k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  210|  3.55k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  213|   278k|	{
  214|   278k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  215|   278k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  218|   286k|	{
  219|   286k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  220|   286k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   12|  5.43k|	{
   13|  5.43k|		if (m_Data == nullptr)
  ------------------
  |  Branch (13:7): [True: 0, False: 5.43k]
  ------------------
   14|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   15|       |
   16|  5.43k|		uint16_t optionType = be16toh(m_Data->recordType);
   17|  5.43k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (17:7): [True: 4.01k, False: 1.42k]
  |  Branch (17:27): [True: 4.01k, False: 0]
  |  Branch (17:47): [True: 4.01k, False: 0]
  |  Branch (17:67): [True: 4.01k, False: 0]
  |  Branch (17:87): [True: 4.01k, False: 0]
  ------------------
   18|  4.01k|		{
   19|  4.01k|			return static_cast<DhcpV6OptionType>(optionType);
   20|  4.01k|		}
   21|  1.42k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (21:7): [True: 0, False: 1.42k]
  |  Branch (21:27): [True: 0, False: 1.42k]
  |  Branch (21:47): [True: 222, False: 1.20k]
  |  Branch (21:67): [True: 0, False: 1.20k]
  |  Branch (21:87): [True: 222, False: 981]
  ------------------
   22|    444|		{
   23|    444|			return static_cast<DhcpV6OptionType>(optionType);
   24|    444|		}
   25|       |
   26|    981|		return DHCPV6_OPT_UNKNOWN;
   27|  1.42k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   30|    780|	{
   31|    780|		if (m_Data == nullptr)
  ------------------
  |  Branch (31:7): [True: 0, False: 780]
  ------------------
   32|      0|			return "";
   33|       |
   34|    780|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   35|    780|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   38|  84.3k|	{
   39|  84.3k|		if (m_Data == nullptr)
  ------------------
  |  Branch (39:7): [True: 0, False: 84.3k]
  ------------------
   40|      0|			return 0;
   41|       |
   42|  84.3k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   43|  84.3k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   46|    780|	{
   47|    780|		if (m_Data == nullptr)
  ------------------
  |  Branch (47:7): [True: 0, False: 780]
  ------------------
   48|      0|			return 0;
   49|       |
   50|    780|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   51|    780|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   71|  4.11k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   72|  4.11k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   86|  1.58k|	{
   87|  1.58k|		uint8_t messageType = getDhcpHeader()->messageType;
   88|  1.58k|		if (messageType > 13)
  ------------------
  |  Branch (88:7): [True: 34, False: 1.55k]
  ------------------
   89|     34|		{
   90|     34|			return DHCPV6_UNKNOWN_MSG_TYPE;
   91|     34|		}
   92|       |
   93|  1.55k|		return static_cast<DhcpV6MessageType>(messageType);
   94|  1.58k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   97|  1.58k|	{
   98|  1.58k|		DhcpV6MessageType messageType = getMessageType();
   99|  1.58k|		switch (messageType)
  100|  1.58k|		{
  101|    334|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (101:3): [True: 334, False: 1.25k]
  ------------------
  102|    334|			return "Solicit";
  103|    224|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (103:3): [True: 224, False: 1.36k]
  ------------------
  104|    224|			return "Advertise";
  105|    200|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (105:3): [True: 200, False: 1.38k]
  ------------------
  106|    200|			return "Request";
  107|      0|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (107:3): [True: 0, False: 1.58k]
  ------------------
  108|      0|			return "Confirm";
  109|     32|		case DHCPV6_RENEW:
  ------------------
  |  Branch (109:3): [True: 32, False: 1.55k]
  ------------------
  110|     32|			return "Renew";
  111|     82|		case DHCPV6_REBIND:
  ------------------
  |  Branch (111:3): [True: 82, False: 1.50k]
  ------------------
  112|     82|			return "Rebind";
  113|    114|		case DHCPV6_REPLY:
  ------------------
  |  Branch (113:3): [True: 114, False: 1.47k]
  ------------------
  114|    114|			return "Reply";
  115|      0|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (115:3): [True: 0, False: 1.58k]
  ------------------
  116|      0|			return "Release";
  117|      4|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (117:3): [True: 4, False: 1.58k]
  ------------------
  118|      4|			return "Decline";
  119|      0|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (119:3): [True: 0, False: 1.58k]
  ------------------
  120|      0|			return "Reconfigure";
  121|     44|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (121:3): [True: 44, False: 1.54k]
  ------------------
  122|     44|			return "Information-Request";
  123|      0|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (123:3): [True: 0, False: 1.58k]
  ------------------
  124|      0|			return "Relay-Forward";
  125|      0|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (125:3): [True: 0, False: 1.58k]
  ------------------
  126|      0|			return "Relay-Reply";
  127|    552|		default:
  ------------------
  |  Branch (127:3): [True: 552, False: 1.03k]
  ------------------
  128|    552|			return "Unknown";
  129|  1.58k|		}
  130|  1.58k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  138|    793|	{
  139|    793|		dhcpv6_header* hdr = getDhcpHeader();
  140|    793|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  141|    793|		return result;
  142|    793|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  153|    780|	{
  154|    780|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  155|    780|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  158|  5.98k|	{
  159|  5.98k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  160|  5.98k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  161|  5.98k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  164|    780|	{
  165|    780|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  166|    780|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  167|    780|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  170|  7.56k|	{
  171|  7.56k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  172|  7.56k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  270|  1.58k|	{
  271|  1.58k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  272|  1.58k|	}

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

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

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

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

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

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

_ZNK4pcpp15FtpRequestLayer16getCommandStringEv:
   28|  1.46k|	{
   29|  1.46k|		return getCommandInternal();
   30|  1.46k|	}
_ZNK4pcpp15FtpRequestLayer16getCommandOptionEb:
   38|  1.46k|	{
   39|  1.46k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (39:7): [True: 733, False: 733]
  ------------------
   40|    733|		{
   41|    733|			std::stringstream ss;
   42|    733|			std::string field = getCommandOptionInternal();
   43|   549k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (43:25): [True: 549k, False: 733]
  ------------------
   44|   549k|			{
   45|   549k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (45:9): [True: 548k, False: 1.16k]
  |  Branch (45:42): [True: 222k, False: 326k]
  ------------------
   46|   222k|					ss << field.c_str()[idx];
   47|   549k|			}
   48|    733|			return ss.str();
   49|    733|		}
   50|    733|		return getCommandOptionInternal();
   51|  1.46k|	}
_ZNK4pcpp15FtpRequestLayer8toStringEv:
  217|  1.46k|	{
  218|  1.46k|		return "FTP Request: " + getCommandString();
  219|  1.46k|	}
_ZNK4pcpp16FtpResponseLayer13getStatusCodeEv:
  230|  1.90k|	{
  231|  1.90k|		return static_cast<FtpStatusCode>(atoi(getCommandInternal().c_str()));
  232|  1.90k|	}
_ZNK4pcpp16FtpResponseLayer19getStatusCodeStringEv:
  235|  3.81k|	{
  236|  3.81k|		return getCommandInternal();
  237|  3.81k|	}
_ZNK4pcpp16FtpResponseLayer15getStatusOptionEb:
  245|  3.81k|	{
  246|  3.81k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (246:7): [True: 1.90k, False: 1.90k]
  ------------------
  247|  1.90k|		{
  248|  1.90k|			std::stringstream ss;
  249|  1.90k|			std::string field = getCommandOptionInternal();
  250|   741k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (250:25): [True: 739k, False: 1.90k]
  ------------------
  251|   739k|			{
  252|   739k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (252:9): [True: 737k, False: 2.08k]
  |  Branch (252:42): [True: 283k, False: 453k]
  ------------------
  253|   283k|					ss << field.c_str()[idx];
  254|   739k|			}
  255|  1.90k|			return ss.str();
  256|  1.90k|		}
  257|  1.90k|		return getCommandOptionInternal();
  258|  3.81k|	}
_ZNK4pcpp16FtpResponseLayer8toStringEv:
  382|  3.81k|	{
  383|  3.81k|		return "FTP Response: " + getStatusCodeString();
  384|  3.81k|	}
_ZNK4pcpp12FtpDataLayer8toStringEv:
  387|    484|	{
  388|    484|		return "FTP Data";
  389|    484|	}

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|  26.3k|	{
   25|  26.3k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 24, False: 26.3k]
  ------------------
   26|     24|			return UnknownProtocol;
   27|       |
   28|  26.3k|		uint8_t version = *(greData + 1);
   29|  26.3k|		version &= 0x07;
   30|  26.3k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 8.42k, False: 17.9k]
  ------------------
   31|  8.42k|			return GREv0;
   32|  17.9k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 17.8k, False: 90]
  ------------------
   33|  17.8k|			return GREv1;
   34|     90|		else
   35|     90|			return UnknownProtocol;
   36|  26.3k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  5.65k|	{
   40|  5.65k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  5.65k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  5.65k|		constexpr int numGreField = 4;
   45|  14.2k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 14.2k, False: 0]
  ------------------
   46|  14.2k|		{
   47|  14.2k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  14.2k|			bool curFieldExists = false;
   49|       |
   50|  14.2k|			uint8_t* origPtr = ptr;
   51|       |
   52|  14.2k|			switch (curField)
   53|  14.2k|			{
   54|  5.65k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 5.65k, False: 8.61k]
  ------------------
   55|  5.65k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 3.41k, False: 2.23k]
  |  Branch (55:37): [True: 1, False: 2.23k]
  ------------------
   56|  3.41k|				{
   57|  3.41k|					curFieldExists = true;
   58|  3.41k|					ptr += sizeof(uint32_t);
   59|  3.41k|				}
   60|  5.65k|				break;
   61|  4.25k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 4.25k, False: 10.0k]
  ------------------
   62|  4.25k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 3.57k, False: 683]
  ------------------
   63|  3.57k|				{
   64|  3.57k|					curFieldExists = true;
   65|  3.57k|					ptr += sizeof(uint32_t);
   66|  3.57k|				}
   67|  4.25k|				break;
   68|  3.70k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 3.70k, False: 10.5k]
  ------------------
   69|  3.70k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 3.70k, False: 0]
  ------------------
   70|  3.70k|				{
   71|  3.70k|					curFieldExists = true;
   72|  3.70k|					ptr += sizeof(uint32_t);
   73|  3.70k|				}
   74|  3.70k|				break;
   75|    652|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 652, False: 13.6k]
  ------------------
   76|    652|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 652, False: 0]
  ------------------
   77|    652|				{
   78|    652|					curFieldExists = true;
   79|    652|					ptr += sizeof(uint32_t);
   80|    652|				}
   81|    652|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 14.2k]
  ------------------
   83|      0|				return nullptr;
   84|  14.2k|			}
   85|       |
   86|  14.2k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 5.65k, False: 8.61k]
  ------------------
   87|  5.65k|			{
   88|  5.65k|				if (curFieldExists || returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (88:9): [True: 5.65k, False: 0]
  |  Branch (88:27): [True: 0, False: 0]
  ------------------
   89|  5.65k|					return origPtr;
   90|       |
   91|      0|				return nullptr;
   92|  5.65k|			}
   93|  14.2k|		}  // for
   94|       |
   95|      0|		return nullptr;
   96|  5.65k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
   99|  3.63k|	{
  100|  3.63k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  101|  3.63k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (101:7): [True: 2.73k, False: 893]
  ------------------
  102|  2.73k|		{
  103|  2.73k|			switch (m_NextLayer->getProtocol())
  104|  2.73k|			{
  105|     45|			case IPv4:
  ------------------
  |  Branch (105:4): [True: 45, False: 2.69k]
  ------------------
  106|     45|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  107|     45|				break;
  108|      0|			case IPv6:
  ------------------
  |  Branch (108:4): [True: 0, False: 2.73k]
  ------------------
  109|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  110|      0|				break;
  111|    571|			case VLAN:
  ------------------
  |  Branch (111:4): [True: 571, False: 2.16k]
  ------------------
  112|    571|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  113|    571|				break;
  114|      0|			case MPLS:
  ------------------
  |  Branch (114:4): [True: 0, False: 2.73k]
  ------------------
  115|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  116|      0|				break;
  117|    940|			case PPP_PPTP:
  ------------------
  |  Branch (117:4): [True: 940, False: 1.79k]
  ------------------
  118|    940|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  119|    940|				break;
  120|      0|			case Ethernet:
  ------------------
  |  Branch (120:4): [True: 0, False: 2.73k]
  ------------------
  121|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  122|      0|				break;
  123|  1.18k|			default:
  ------------------
  |  Branch (123:4): [True: 1.18k, False: 1.55k]
  ------------------
  124|  1.18k|				break;
  125|  2.73k|			}
  126|  2.73k|		}
  127|  3.63k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  130|  3.63k|	{
  131|  3.63k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  132|       |
  133|  3.63k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (133:7): [True: 580, False: 3.05k]
  ------------------
  134|    580|			return false;
  135|       |
  136|  3.05k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  137|  3.05k|		if (val == nullptr)
  ------------------
  |  Branch (137:7): [True: 0, False: 3.05k]
  ------------------
  138|      0|			return false;
  139|       |
  140|  3.05k|		seqNumber = be32toh(*val);
  141|  3.05k|		return true;
  142|  3.05k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  196|  26.2k|	{
  197|  26.2k|		size_t headerLen = getHeaderLen();
  198|  26.2k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (198:7): [True: 4.76k, False: 21.5k]
  ------------------
  199|  4.76k|			return;
  200|       |
  201|  21.5k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  202|  21.5k|		uint8_t* payload = m_Data + headerLen;
  203|  21.5k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|  21.5k|		switch (be16toh(header->protocol))
  206|  21.5k|		{
  207|    275|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|    275|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (207:3): [True: 275, False: 21.2k]
  ------------------
  208|    275|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  209|    275|			break;
  210|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (210:3): [True: 0, False: 21.5k]
  ------------------
  211|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  212|      0|			break;
  213|  5.69k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  5.69k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (213:3): [True: 5.69k, False: 15.8k]
  ------------------
  214|  5.69k|			constructNextLayer<VlanLayer>(payload, payloadLen);
  215|  5.69k|			break;
  216|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (216:3): [True: 0, False: 21.5k]
  ------------------
  217|      0|			constructNextLayer<MplsLayer>(payload, payloadLen);
  218|      0|			break;
  219|  9.05k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   57|  9.05k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (219:3): [True: 9.05k, False: 12.4k]
  ------------------
  220|  9.05k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  221|  9.05k|			break;
  222|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   35|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (222:3): [True: 0, False: 21.5k]
  ------------------
  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|  6.48k|		default:
  ------------------
  |  Branch (232:3): [True: 6.48k, False: 15.0k]
  ------------------
  233|  6.48k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  234|  21.5k|		}
  235|  21.5k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  238|  32.2k|	{
  239|  32.2k|		size_t result = sizeof(gre_basic_header);
  240|       |
  241|  32.2k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  242|       |
  243|  32.2k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (243:7): [True: 6.54k, False: 25.6k]
  |  Branch (243:35): [True: 10, False: 25.6k]
  ------------------
  244|  6.55k|			result += 4;
  245|  32.2k|		if (header->keyBit == 1)
  ------------------
  |  Branch (245:7): [True: 21.8k, False: 10.3k]
  ------------------
  246|  21.8k|			result += 4;
  247|  32.2k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (247:7): [True: 28.5k, False: 3.64k]
  ------------------
  248|  28.5k|			result += 4;
  249|  32.2k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 7.62k, False: 24.5k]
  ------------------
  250|  7.62k|			result += 4;
  251|       |
  252|  32.2k|		return result;
  253|  32.2k|	}
_ZN4pcpp10GREv0Layer11getChecksumERt:
  269|  1.31k|	{
  270|  1.31k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (270:7): [True: 849, False: 464]
  ------------------
  271|    849|			return false;
  272|       |
  273|    464|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  274|    464|		if (val == nullptr)
  ------------------
  |  Branch (274:7): [True: 0, False: 464]
  ------------------
  275|      0|			return false;
  276|       |
  277|    464|		checksum = be16toh(*val);
  278|    464|		return true;
  279|    464|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  282|    928|	{
  283|    928|		gre_basic_header* header = getGreHeader();
  284|       |
  285|    928|		bool needToExtendLayer = false;
  286|       |
  287|    928|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (287:7): [True: 926, False: 2]
  |  Branch (287:34): [True: 0, False: 926]
  ------------------
  288|      0|			needToExtendLayer = true;
  289|       |
  290|    928|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  291|    928|		int offset = offsetPtr - m_Data;
  292|       |		// extend layer in 4 bytes to keep 4-byte alignment
  293|    928|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (293:7): [True: 0, False: 928]
  |  Branch (293:28): [True: 0, False: 0]
  ------------------
  294|      0|		{
  295|      0|			PCPP_LOG_ERROR("Couldn't extend layer to set checksum");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|      0|			return false;
  297|      0|		}
  298|       |
  299|    928|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  300|    928|		*checksumPtr = htobe16(checksum);
  301|       |
  302|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  303|    928|		if (needToExtendLayer)
  ------------------
  |  Branch (303:7): [True: 0, False: 928]
  ------------------
  304|      0|		{
  305|      0|			checksumPtr++;
  306|      0|			*checksumPtr = 0;
  307|      0|		}
  308|       |
  309|    928|		header = getGreHeader();
  310|    928|		header->checksumBit = 1;
  311|       |
  312|    928|		return true;
  313|    928|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  349|  1.31k|	{
  350|  1.31k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (350:7): [True: 1.31k, False: 1]
  ------------------
  351|  1.31k|			return false;
  352|       |
  353|      1|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  354|      1|		if (val == nullptr)
  ------------------
  |  Branch (354:7): [True: 0, False: 1]
  ------------------
  355|      0|			return false;
  356|       |
  357|      1|		offset = be16toh(*(val + 2));
  358|      1|		return true;
  359|      1|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  362|  1.31k|	{
  363|  1.31k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (363:7): [True: 758, False: 555]
  ------------------
  364|    758|			return false;
  365|       |
  366|    555|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  367|    555|		if (val == nullptr)
  ------------------
  |  Branch (367:7): [True: 0, False: 555]
  ------------------
  368|      0|			return false;
  369|       |
  370|    555|		key = be32toh(*val);
  371|    555|		return true;
  372|    555|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  426|  1.31k|	{
  427|  1.31k|		computeCalculateFieldsInner();
  428|       |
  429|  1.31k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (429:7): [True: 849, False: 464]
  ------------------
  430|    849|			return;
  431|       |
  432|       |		// calculate checksum
  433|    464|		setChecksum(0);
  434|       |
  435|    464|		ScalarBuffer<uint16_t> buffer;
  436|    464|		buffer.buffer = (uint16_t*)m_Data;
  437|    464|		buffer.len = m_DataLen;
  438|    464|		size_t checksum = computeChecksum(&buffer, 1);
  439|       |
  440|    464|		setChecksum(checksum);
  441|    464|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  444|  2.62k|	{
  445|  2.62k|		return "GRE Layer, version 0";
  446|  2.62k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  467|  2.31k|	{
  468|  2.31k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (468:7): [True: 1.66k, False: 652]
  ------------------
  469|  1.66k|			return false;
  470|       |
  471|    652|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  472|    652|		if (val == nullptr)
  ------------------
  |  Branch (472:7): [True: 0, False: 652]
  ------------------
  473|      0|			return false;
  474|       |
  475|    652|		ackNum = be32toh(*val);
  476|    652|		return true;
  477|    652|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  528|  2.31k|	{
  529|  2.31k|		computeCalculateFieldsInner();
  530|       |
  531|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  532|  2.31k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  535|  4.63k|	{
  536|  4.63k|		return "GRE Layer, version 1";
  537|  4.63k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  557|  8.44k|	{
  558|  8.44k|		size_t headerLen = getHeaderLen();
  559|  8.44k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (559:7): [True: 0, False: 8.44k]
  ------------------
  560|      0|			return;
  561|       |
  562|  8.44k|		uint8_t* payload = m_Data + headerLen;
  563|  8.44k|		size_t payloadLen = m_DataLen - headerLen;
  564|       |
  565|  8.44k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  566|  8.44k|		{
  567|  7.34k|		case PCPP_PPP_IP:
  ------------------
  |  |  398|  7.34k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (567:3): [True: 7.34k, False: 1.09k]
  ------------------
  568|  7.34k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  569|  7.34k|			break;
  570|      0|		case PCPP_PPP_IPV6:
  ------------------
  |  |  450|      0|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (570:3): [True: 0, False: 8.44k]
  ------------------
  571|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  572|      0|			break;
  573|  1.09k|		default:
  ------------------
  |  Branch (573:3): [True: 1.09k, False: 7.34k]
  ------------------
  574|  1.09k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  575|  1.09k|			break;
  576|  8.44k|		}
  577|  8.44k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  580|    940|	{
  581|    940|		ppp_pptp_header* header = getPPP_PPTPHeader();
  582|    940|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (582:7): [True: 940, False: 0]
  ------------------
  583|    940|		{
  584|    940|			switch (m_NextLayer->getProtocol())
  585|    940|			{
  586|    789|			case IPv4:
  ------------------
  |  Branch (586:4): [True: 789, False: 151]
  ------------------
  587|    789|				header->protocol = htobe16(PCPP_PPP_IP);
  588|    789|				break;
  589|      0|			case IPv6:
  ------------------
  |  Branch (589:4): [True: 0, False: 940]
  ------------------
  590|      0|				header->protocol = htobe16(PCPP_PPP_IPV6);
  591|      0|				break;
  592|    151|			default:
  ------------------
  |  Branch (592:4): [True: 151, False: 789]
  ------------------
  593|    151|				break;
  594|    940|			}
  595|    940|		}
  596|      0|		else
  597|      0|			header->protocol = 0;
  598|    940|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  13.0k|	{
   23|  13.0k|		m_Data = nullptr;
   24|  13.0k|		m_DataLen = 0;
   25|  13.0k|		m_ExtType = 0;
   26|  13.0k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|    967|	{
   30|    967|		m_Data = data;
   31|    967|		m_DataLen = dataLen;
   32|    967|		m_ExtType = type;
   33|    967|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|    947|	{
   44|    947|		m_Data = other.m_Data;
   45|    947|		m_DataLen = other.m_DataLen;
   46|    947|		m_ExtType = other.m_ExtType;
   47|    947|		return *this;
   48|    947|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  10.0k|	{
   52|  10.0k|		return m_Data == nullptr;
   53|  10.0k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  1.97k|	{
   57|  1.97k|		return m_ExtType;
   58|  1.97k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  7.77k|	{
   62|  7.77k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 3.91k, False: 3.85k]
  ------------------
   63|  3.91k|		{
   64|  3.91k|			return 0;
   65|  3.91k|		}
   66|       |
   67|  3.85k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  3.85k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 3.61k, False: 247]
  ------------------
   69|  3.61k|		{
   70|  3.61k|			return len;
   71|  3.61k|		}
   72|       |
   73|    247|		return m_DataLen;
   74|  3.85k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  2.94k|	{
   78|  2.94k|		size_t res = getTotalLength();
   79|       |
   80|  2.94k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 986, False: 1.95k]
  ------------------
   81|    986|		{
   82|    986|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|    986|		}
   84|       |
   85|  1.95k|		return 0;
   86|  2.94k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  1.97k|	{
   90|  1.97k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 1.95k, False: 16]
  |  Branch (90:28): [True: 0, False: 16]
  ------------------
   91|  1.95k|		{
   92|  1.95k|			return nullptr;
   93|  1.95k|		}
   94|       |
   95|     16|		return m_Data + sizeof(uint8_t);
   96|  1.97k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  2.92k|	{
  100|  2.92k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 1.95k, False: 963]
  |  Branch (100:28): [True: 9, False: 954]
  ------------------
  101|  1.96k|		{
  102|  1.96k|			return 0;
  103|  1.96k|		}
  104|       |
  105|    954|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|    954|		return res;
  108|  2.92k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  2.92k|	{
  112|  2.92k|		size_t totalLength = getTotalLength();
  113|  2.92k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  2.92k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 913, False: 2.00k]
  |  Branch (114:26): [True: 854, False: 59]
  ------------------
  115|    854|		{
  116|    854|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|    854|		}
  118|  2.06k|		else
  119|  2.06k|		{
  120|  2.06k|			return {};
  121|  2.06k|		}
  122|  2.92k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  202|  24.5k|	{
  203|  24.5k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (203:7): [True: 24.5k, False: 0]
  |  Branch (203:26): [True: 24.5k, False: 0]
  |  Branch (203:62): [True: 13.4k, False: 11.1k]
  ------------------
  204|  13.4k|		{
  205|  13.4k|			return true;
  206|  13.4k|		}
  207|       |
  208|  11.1k|		return false;
  209|  24.5k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  212|  26.5k|	{
  213|  26.5k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (213:7): [True: 26.5k, False: 0]
  |  Branch (213:28): [True: 26.5k, False: 0]
  ------------------
  214|  26.5k|		{
  215|  26.5k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  216|  26.5k|		}
  217|       |
  218|      0|		return nullptr;
  219|  26.5k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  222|  1.97k|	{
  223|  1.97k|		gtpv1_header* header = getHeader();
  224|  1.97k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  225|  1.97k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (225:7): [True: 1.97k, False: 0]
  |  Branch (225:28): [True: 1.97k, False: 0]
  |  Branch (225:54): [True: 1.17k, False: 800]
  ------------------
  226|  1.17k|		{
  227|  1.17k|			seqNumber = be16toh(headerExtra->sequenceNumber);
  228|  1.17k|			return true;
  229|  1.17k|		}
  230|       |
  231|    800|		return false;
  232|  1.97k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  274|  1.97k|	{
  275|  1.97k|		gtpv1_header* header = getHeader();
  276|  1.97k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  277|  1.97k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (277:7): [True: 1.97k, False: 0]
  |  Branch (277:28): [True: 1.97k, False: 0]
  |  Branch (277:54): [True: 216, False: 1.75k]
  ------------------
  278|    216|		{
  279|    216|			npduNum = headerExtra->npduNumber;
  280|    216|			return true;
  281|    216|		}
  282|       |
  283|  1.75k|		return false;
  284|  1.97k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  326|  11.0k|	{
  327|  11.0k|		gtpv1_header* header = getHeader();
  328|  11.0k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  329|  11.0k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (329:7): [True: 11.0k, False: 0]
  |  Branch (329:28): [True: 11.0k, False: 0]
  |  Branch (329:54): [True: 952, False: 10.0k]
  ------------------
  330|    952|		{
  331|    952|			nextExtType = headerExtra->nextExtensionHeader;
  332|    952|			return true;
  333|    952|		}
  334|       |
  335|  10.0k|		return false;
  336|  11.0k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  339|  11.0k|	{
  340|  11.0k|		uint8_t nextExtType = 0;
  341|  11.0k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  342|  11.0k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (342:7): [True: 10.0k, False: 952]
  |  Branch (342:25): [True: 839, False: 113]
  |  Branch (342:45): [True: 0, False: 113]
  ------------------
  343|  10.9k|		{
  344|  10.9k|			return {};
  345|  10.9k|		}
  346|       |
  347|    113|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  348|    113|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  349|  11.0k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  430|  1.97k|	{
  431|  1.97k|		gtpv1_header* header = getHeader();
  432|       |
  433|  1.97k|		if (header == nullptr)
  ------------------
  |  Branch (433:7): [True: 0, False: 1.97k]
  ------------------
  434|      0|		{
  435|      0|			return GtpV1_MessageTypeUnknown;
  436|      0|		}
  437|       |
  438|  1.97k|		return (GtpV1MessageType)header->messageType;
  439|  1.97k|	}
_ZN4pcpp33createGtpV1MessageTypeToStringMapEv:
  442|      2|	{
  443|      2|		std::unordered_map<uint8_t, std::string> tempMap;
  444|       |
  445|      2|		tempMap[0] = "GTPv1 Message Type Unknown";
  446|      2|		tempMap[1] = "Echo Request";
  447|      2|		tempMap[2] = "Echo Response";
  448|      2|		tempMap[3] = "Version Not Supported";
  449|      2|		tempMap[4] = "Node Alive Request";
  450|      2|		tempMap[5] = "Node Alive Response";
  451|      2|		tempMap[6] = "Redirection Request";
  452|      2|		tempMap[7] = "Create PDP Context Request";
  453|      2|		tempMap[16] = "Create PDP Context Response";
  454|      2|		tempMap[17] = "Update PDP Context Request";
  455|      2|		tempMap[18] = "Update PDP Context Response";
  456|      2|		tempMap[19] = "Delete PDP Context Request";
  457|      2|		tempMap[20] = "Delete PDP Context Response";
  458|      2|		tempMap[22] = "Initiate PDP Context Activation Request";
  459|      2|		tempMap[23] = "Initiate PDP Context Activation Response";
  460|      2|		tempMap[26] = "Error Indication";
  461|      2|		tempMap[27] = "PDU Notification Request";
  462|      2|		tempMap[28] = "PDU Notification Response";
  463|      2|		tempMap[29] = "PDU Notification Reject Request";
  464|      2|		tempMap[30] = "PDU Notification Reject Response";
  465|      2|		tempMap[31] = "Supported Extensions Header Notification";
  466|      2|		tempMap[32] = "Send Routing for GPRS Request";
  467|      2|		tempMap[33] = "Send Routing for GPRS Response";
  468|      2|		tempMap[34] = "Failure Report Request";
  469|      2|		tempMap[35] = "Failure Report Response";
  470|      2|		tempMap[36] = "Note MS Present Request";
  471|      2|		tempMap[37] = "Note MS Present Response";
  472|      2|		tempMap[38] = "Identification Request";
  473|      2|		tempMap[39] = "Identification Response";
  474|      2|		tempMap[50] = "SGSN Context Request";
  475|      2|		tempMap[51] = "SGSN Context Response";
  476|      2|		tempMap[52] = "SGSN Context Acknowledge";
  477|      2|		tempMap[53] = "Forward Relocation Request";
  478|      2|		tempMap[54] = "Forward Relocation Response";
  479|      2|		tempMap[55] = "Forward Relocation Complete";
  480|      2|		tempMap[56] = "Relocation Cancel Request";
  481|      2|		tempMap[57] = "Relocation Cancel Response";
  482|      2|		tempMap[58] = "Forward SRNS Context";
  483|      2|		tempMap[59] = "Forward Relocation Complete Acknowledge";
  484|      2|		tempMap[60] = "Forward SRNS Context Acknowledge";
  485|      2|		tempMap[61] = "UE Registration Request";
  486|      2|		tempMap[62] = "UE Registration Response";
  487|      2|		tempMap[70] = "RAN Information Relay";
  488|      2|		tempMap[96] = "MBMS Notification Request";
  489|      2|		tempMap[97] = "MBMS Notification Response";
  490|      2|		tempMap[98] = "MBMS Notification Reject Request";
  491|      2|		tempMap[99] = "MBMS Notification Reject Response";
  492|      2|		tempMap[100] = "Create MBMS Notification Request";
  493|      2|		tempMap[101] = "Create MBMS Notification Response";
  494|      2|		tempMap[102] = "Update MBMS Notification Request";
  495|      2|		tempMap[103] = "Update MBMS Notification Response";
  496|      2|		tempMap[104] = "Delete MBMS Notification Request";
  497|      2|		tempMap[105] = "Delete MBMS Notification Response";
  498|      2|		tempMap[112] = "MBMS Registration Request";
  499|      2|		tempMap[113] = "MBMS Registration Response";
  500|      2|		tempMap[114] = "MBMS De-Registration Request";
  501|      2|		tempMap[115] = "MBMS De-Registration Response";
  502|      2|		tempMap[116] = "MBMS Session Start Request";
  503|      2|		tempMap[117] = "MBMS Session Start Response";
  504|      2|		tempMap[118] = "MBMS Session Stop Request";
  505|      2|		tempMap[119] = "MBMS Session Stop Response";
  506|      2|		tempMap[120] = "MBMS Session Update Request";
  507|      2|		tempMap[121] = "MBMS Session Update Response";
  508|      2|		tempMap[128] = "MS Info Change Request";
  509|      2|		tempMap[129] = "MS Info Change Response";
  510|      2|		tempMap[240] = "Data Record Transfer Request";
  511|      2|		tempMap[241] = "Data Record Transfer Response";
  512|      2|		tempMap[254] = "End Marker";
  513|      2|		tempMap[255] = "G-PDU";
  514|       |
  515|      2|		return tempMap;
  516|      2|	}
_ZNK4pcpp10GtpV1Layer22getMessageTypeAsStringEv:
  521|  3.11k|	{
  522|  3.11k|		gtpv1_header* header = getHeader();
  523|       |
  524|  3.11k|		if (header == nullptr)
  ------------------
  |  Branch (524:7): [True: 0, False: 3.11k]
  ------------------
  525|      0|		{
  526|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  527|      0|		}
  528|       |
  529|  3.11k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  530|  3.11k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (530:7): [True: 1.80k, False: 1.30k]
  ------------------
  531|  1.80k|		{
  532|  1.80k|			return iter->second;
  533|  1.80k|		}
  534|  1.30k|		else
  535|  1.30k|		{
  536|  1.30k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  537|  1.30k|		}
  538|  3.11k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  541|  1.97k|	{
  542|  1.97k|		gtpv1_header* header = getHeader();
  543|  1.97k|		if (header == nullptr)
  ------------------
  |  Branch (543:7): [True: 0, False: 1.97k]
  ------------------
  544|      0|		{
  545|      0|			return false;
  546|      0|		}
  547|       |
  548|  1.97k|		return header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  1.97k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  549|  1.97k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  552|  1.97k|	{
  553|  1.97k|		gtpv1_header* header = getHeader();
  554|  1.97k|		if (header == nullptr)
  ------------------
  |  Branch (554:7): [True: 0, False: 1.97k]
  ------------------
  555|      0|		{
  556|      0|			return false;
  557|      0|		}
  558|       |
  559|  1.97k|		return header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE;
  ------------------
  |  |   15|  1.97k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  560|  1.97k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  563|  13.4k|	{
  564|  13.4k|		size_t headerLen = getHeaderLen();
  565|  13.4k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (565:7): [True: 0, False: 13.4k]
  ------------------
  566|      0|		{
  567|       |			// do nothing
  568|      0|			return;
  569|      0|		}
  570|       |
  571|  13.4k|		gtpv1_header* header = getHeader();
  572|  13.4k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  13.4k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (572:7): [True: 3.25k, False: 10.1k]
  ------------------
  573|  3.25k|		{
  574|       |			// this is a GTP-C message, hence it is the last layer
  575|  3.25k|			return;
  576|  3.25k|		}
  577|       |
  578|  10.1k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (578:7): [True: 40, False: 10.1k]
  ------------------
  579|     40|		{
  580|       |			// no data beyond headerLen, nothing to parse further
  581|     40|			return;
  582|     40|		}
  583|       |
  584|       |		// GTP-U message, try to parse the next layer
  585|       |
  586|  10.1k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  587|  10.1k|		size_t payloadLen = m_DataLen - headerLen;
  588|       |
  589|  10.1k|		uint8_t subProto = *payload;
  590|  10.1k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (590:7): [True: 9.63k, False: 492]
  |  Branch (590:27): [True: 7.75k, False: 1.87k]
  ------------------
  591|  7.75k|		{
  592|  7.75k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  593|  7.75k|		}
  594|  2.37k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (594:12): [True: 1.76k, False: 604]
  ------------------
  595|  1.76k|		{
  596|  1.76k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  597|  1.76k|		}
  598|    604|		else
  599|    604|		{
  600|    604|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  601|    604|		}
  602|  10.1k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  605|  15.4k|	{
  606|  15.4k|		gtpv1_header* header = getHeader();
  607|  15.4k|		if (header == nullptr)
  ------------------
  |  Branch (607:7): [True: 0, False: 15.4k]
  ------------------
  608|      0|		{
  609|      0|			return 0;
  610|      0|		}
  611|       |
  612|  15.4k|		size_t res = sizeof(gtpv1_header);
  613|       |
  614|  15.4k|		if (header->messageType != PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  15.4k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (614:7): [True: 3.82k, False: 11.5k]
  ------------------
  615|  3.82k|		{
  616|  3.82k|			size_t msgLen = be16toh(header->messageLength);
  617|  3.82k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (617:12): [True: 2.51k, False: 1.31k]
  ------------------
  618|  3.82k|		}
  619|  11.5k|		else
  620|  11.5k|		{
  621|  11.5k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  622|  11.5k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (622:8): [True: 11.5k, False: 0]
  ------------------
  623|  11.5k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (623:9): [True: 771, False: 10.8k]
  |  Branch (623:45): [True: 7.96k, False: 2.83k]
  |  Branch (623:80): [True: 336, False: 2.50k]
  ------------------
  624|  9.07k|			{
  625|  9.07k|				res += sizeof(gtpv1_header_extra);
  626|  9.07k|				GtpExtension nextExt = getNextExtension();
  627|  10.0k|				while (!nextExt.isNull())
  ------------------
  |  Branch (627:12): [True: 947, False: 9.07k]
  ------------------
  628|    947|				{
  629|    947|					res += nextExt.getTotalLength();
  630|    947|					nextExt = nextExt.getNextExtension();
  631|    947|				}
  632|  9.07k|			}
  633|  11.5k|		}
  634|       |
  635|  15.4k|		return res;
  636|  15.4k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  639|  3.94k|	{
  640|  3.94k|		std::string res = "GTP v1 Layer";
  641|       |
  642|  3.94k|		gtpv1_header* header = getHeader();
  643|  3.94k|		if (header != nullptr)
  ------------------
  |  Branch (643:7): [True: 3.94k, False: 0]
  ------------------
  644|  3.94k|		{
  645|  3.94k|			std::stringstream teidStream;
  646|  3.94k|			teidStream << be32toh(header->teid);
  647|       |
  648|  3.94k|			std::string gtpu_gtpc;
  649|  3.94k|			if (header->messageType == PCPP_GTP_V1_GPDU_MESSAGE_TYPE)
  ------------------
  |  |   15|  3.94k|#define PCPP_GTP_V1_GPDU_MESSAGE_TYPE 0xff
  ------------------
  |  Branch (649:8): [True: 2.80k, False: 1.14k]
  ------------------
  650|  2.80k|			{
  651|  2.80k|				gtpu_gtpc = "GTP-U message";
  652|  2.80k|			}
  653|  1.14k|			else
  654|  1.14k|			{
  655|  1.14k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  656|  1.14k|			}
  657|       |
  658|  3.94k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  659|  3.94k|		}
  660|       |
  661|  3.94k|		return res;
  662|  3.94k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  665|  1.97k|	{
  666|  1.97k|		gtpv1_header* hdr = getHeader();
  667|  1.97k|		if (hdr == nullptr)
  ------------------
  |  Branch (667:7): [True: 0, False: 1.97k]
  ------------------
  668|      0|		{
  669|      0|			return;
  670|      0|		}
  671|       |
  672|  1.97k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  673|  1.97k|	}
_ZNK4pcpp16GtpV2MessageType8toStringEv:
  773|  4.43k|	{
  774|  4.43k|		auto iter = messageTypeMap.find(m_Value);
  775|  4.43k|		if (iter != messageTypeMap.end())
  ------------------
  |  Branch (775:7): [True: 18, False: 4.41k]
  ------------------
  776|     18|		{
  777|     18|			return iter->second;
  778|     18|		}
  779|       |
  780|  4.41k|		return "Unknown GTPv2 Message Type";
  781|  4.43k|	}
_ZN4pcpp16GtpV2MessageType13fromUintValueEh:
  871|  4.43k|	{
  872|  4.43k|		auto iter = uintToValueMap.find(value);
  873|  4.43k|		if (iter != uintToValueMap.end())
  ------------------
  |  Branch (873:7): [True: 18, False: 4.41k]
  ------------------
  874|     18|		{
  875|     18|			return iter->second;
  876|     18|		}
  877|       |
  878|  4.41k|		return Unknown;
  879|  4.43k|	}
_ZN4pcpp10GtpV2Layer11isDataValidEPKhm:
 1021|  14.9k|	{
 1022|  14.9k|		if (!data || dataSize < sizeof(gtpv2_basic_header) + sizeof(uint32_t))
  ------------------
  |  Branch (1022:7): [True: 0, False: 14.9k]
  |  Branch (1022:16): [True: 294, False: 14.6k]
  ------------------
 1023|    294|		{
 1024|    294|			return false;
 1025|    294|		}
 1026|       |
 1027|  14.6k|		auto* header = reinterpret_cast<const gtpv2_basic_header*>(data);
 1028|       |
 1029|  14.6k|		if (header->version != 2)
  ------------------
  |  Branch (1029:7): [True: 1.35k, False: 13.2k]
  ------------------
 1030|  1.35k|		{
 1031|  1.35k|			return false;
 1032|  1.35k|		}
 1033|       |
 1034|  13.2k|		return true;
 1035|  14.6k|	}
_ZNK4pcpp10GtpV2Layer14getMessageTypeEv:
 1038|  4.43k|	{
 1039|  4.43k|		return GtpV2MessageType::fromUintValue(getHeader()->messageType);
 1040|  4.43k|	}
_ZN4pcpp10GtpV2Layer14parseNextLayerEv:
 1302|  13.2k|	{
 1303|  13.2k|		auto headerLen = getHeaderLen();
 1304|  13.2k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (1304:7): [True: 5.86k, False: 7.41k]
  ------------------
 1305|  5.86k|		{
 1306|  5.86k|			return;
 1307|  5.86k|		}
 1308|       |
 1309|  7.41k|		auto* nextLayerData = m_Data + headerLen;
 1310|  7.41k|		auto nextLayerDataLen = m_DataLen - headerLen;
 1311|       |
 1312|  7.41k|		if (getHeader()->piggybacking)
  ------------------
  |  Branch (1312:7): [True: 7.38k, False: 36]
  ------------------
 1313|  7.38k|		{
 1314|  7.38k|			tryConstructNextLayerWithFallback<GtpV2Layer, PayloadLayer>(nextLayerData, nextLayerDataLen);
 1315|  7.38k|		}
 1316|     36|		else
 1317|     36|		{
 1318|     36|			constructNextLayer<PayloadLayer>(nextLayerData, nextLayerDataLen);
 1319|     36|		}
 1320|  7.41k|	}
_ZNK4pcpp10GtpV2Layer12getHeaderLenEv:
 1323|  15.4k|	{
 1324|  15.4k|		auto messageLength = be16toh(getHeader()->messageLength) + sizeof(gtpv2_basic_header);
 1325|  15.4k|		if (messageLength > m_DataLen)
  ------------------
  |  Branch (1325:7): [True: 6.83k, False: 8.65k]
  ------------------
 1326|  6.83k|		{
 1327|  6.83k|			return m_DataLen;
 1328|  6.83k|		}
 1329|       |
 1330|  8.65k|		return messageLength;
 1331|  15.4k|	}
_ZN4pcpp10GtpV2Layer22computeCalculateFieldsEv:
 1334|  2.21k|	{
 1335|  2.21k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (1335:7): [True: 978, False: 1.23k]
  ------------------
 1336|    978|		{
 1337|    978|			return;
 1338|    978|		}
 1339|       |
 1340|  1.23k|		if (m_NextLayer->getProtocol() == GTPv2)
  ------------------
  |  Branch (1340:7): [True: 964, False: 273]
  ------------------
 1341|    964|		{
 1342|    964|			getHeader()->piggybacking = 1;
 1343|    964|		}
 1344|    273|		else
 1345|    273|		{
 1346|    273|			getHeader()->piggybacking = 0;
 1347|    273|		}
 1348|  1.23k|	}
_ZNK4pcpp10GtpV2Layer8toStringEv:
 1351|  4.43k|	{
 1352|  4.43k|		return "GTPv2 Layer, " + getMessageType().toString() + " message";
 1353|  4.43k|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  682|  4.59k|		{
  683|  4.59k|			return static_cast<uint8_t>(messageType);
  684|  4.59k|		}

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

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

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

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  183|   868k|	{
  184|   868k|		m_Protocol = IPv4;
  185|   868k|		m_NumOfTrailingBytes = 0;
  186|   868k|		m_TempHeaderExtension = 0;
  187|   868k|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (187:7): [True: 868k, False: 0]
  ------------------
  188|   868k|		{
  189|   868k|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  190|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  191|       |			// value of totalLen and look at the data captured on the wire
  192|   868k|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (192:8): [True: 97.5k, False: 771k]
  |  Branch (192:34): [True: 83.3k, False: 14.2k]
  ------------------
  193|  83.3k|			{
  194|  83.3k|				auto headerLen = getHeaderLen();
  195|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  196|  83.3k|				m_DataLen = totalLen > headerLen ? totalLen : headerLen;
  ------------------
  |  Branch (196:17): [True: 83.2k, False: 42]
  ------------------
  197|  83.3k|			}
  198|   868k|		}
  199|   868k|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|   868k|	    : Layer(data, dataLen, prevLayer, packet)
  221|   868k|	{
  222|   868k|		initLayerInPacket(true);
  223|   868k|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  248|   868k|	{
  249|   868k|		size_t hdrLen = getHeaderLen();
  250|   868k|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (250:7): [True: 201, False: 868k]
  |  Branch (250:30): [True: 0, False: 868k]
  ------------------
  251|    201|			return;
  252|       |
  253|   868k|		iphdr* ipHdr = getIPv4Header();
  254|       |
  255|   868k|		uint8_t* payload = m_Data + hdrLen;
  256|   868k|		size_t payloadLen = m_DataLen - hdrLen;
  257|       |
  258|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  259|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  260|   868k|		if (isFragment())
  ------------------
  |  Branch (260:7): [True: 14.1k, False: 854k]
  ------------------
  261|  14.1k|		{
  262|  14.1k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  263|  14.1k|			return;
  264|  14.1k|		}
  265|       |
  266|   854k|		switch (ipHdr->protocol)
  ------------------
  |  Branch (266:11): [True: 851k, False: 2.77k]
  ------------------
  267|   854k|		{
  268|   273k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (268:3): [True: 273k, False: 580k]
  ------------------
  269|   273k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  270|   273k|			break;
  271|   503k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (271:3): [True: 503k, False: 351k]
  ------------------
  272|   503k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  273|   503k|			break;
  274|  19.8k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (274:3): [True: 19.8k, False: 834k]
  ------------------
  275|  19.8k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  276|  19.8k|			break;
  277|      8|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (277:3): [True: 8, False: 854k]
  ------------------
  278|      8|		{
  279|       |			// todo: no tests for this case
  280|      8|			switch (IPLayer::getIPVersion(payload, payloadLen))
  281|      8|			{
  282|      0|			case IPv4:
  ------------------
  |  Branch (282:4): [True: 0, False: 8]
  ------------------
  283|      0|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  284|      0|				break;
  285|      0|			case IPv6:
  ------------------
  |  Branch (285:4): [True: 0, False: 8]
  ------------------
  286|      0|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  287|      0|				break;
  288|      8|			default:
  ------------------
  |  Branch (288:4): [True: 8, False: 0]
  ------------------
  289|      8|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  290|      8|				break;
  291|      8|			}
  292|      8|			break;
  293|      8|		}
  294|  23.1k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (294:3): [True: 23.1k, False: 831k]
  ------------------
  295|  23.1k|		{
  296|  23.1k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  297|  23.1k|			{
  298|  5.17k|			case GREv0:
  ------------------
  |  Branch (298:4): [True: 5.17k, False: 17.9k]
  ------------------
  299|  5.17k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  300|  5.17k|				break;
  301|  17.8k|			case GREv1:
  ------------------
  |  Branch (301:4): [True: 17.8k, False: 5.26k]
  ------------------
  302|  17.8k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  303|  17.8k|				break;
  304|     84|			default:
  ------------------
  |  Branch (304:4): [True: 84, False: 23.0k]
  ------------------
  305|     84|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  306|     84|				break;
  307|  23.1k|			};
  308|  23.1k|			break;
  309|  23.1k|		}
  310|  7.33k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (310:3): [True: 7.33k, False: 847k]
  ------------------
  311|  7.33k|		{
  312|  7.33k|			bool igmpQuery = false;
  313|  7.33k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  314|  7.33k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  315|       |
  316|  7.33k|			switch (igmpVer)
  317|  7.33k|			{
  318|  1.88k|			case IGMPv1:
  ------------------
  |  Branch (318:4): [True: 1.88k, False: 5.44k]
  ------------------
  319|  1.88k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  320|  1.88k|				break;
  321|  3.14k|			case IGMPv2:
  ------------------
  |  Branch (321:4): [True: 3.14k, False: 4.19k]
  ------------------
  322|  3.14k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  323|  3.14k|				break;
  324|  2.17k|			case IGMPv3:
  ------------------
  |  Branch (324:4): [True: 2.17k, False: 5.15k]
  ------------------
  325|  2.17k|			{
  326|  2.17k|				if (igmpQuery)
  ------------------
  |  Branch (326:9): [True: 36, False: 2.13k]
  ------------------
  327|     36|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  328|     36|					                                                                  getAttachedPacket());
  329|  2.13k|				else
  330|  2.13k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  331|  2.13k|					                                                                   getAttachedPacket());
  332|  2.17k|				break;
  333|      0|			}
  334|    135|			default:
  ------------------
  |  Branch (334:4): [True: 135, False: 7.19k]
  ------------------
  335|    135|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  336|    135|				break;
  337|  7.33k|			}
  338|  7.33k|			break;
  339|  7.33k|		}
  340|  7.33k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (340:3): [True: 28, False: 854k]
  ------------------
  341|     28|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  342|     28|			                                                                           getAttachedPacket());
  343|     28|			break;
  344|      5|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (344:3): [True: 5, False: 854k]
  ------------------
  345|      5|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  346|      5|			break;
  347|  6.82k|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (347:3): [True: 6.82k, False: 847k]
  ------------------
  348|  6.82k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  349|  6.82k|			break;
  350|  17.6k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (350:3): [True: 17.6k, False: 836k]
  ------------------
  351|  17.6k|		{
  352|  17.6k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  353|  17.6k|			{
  354|  12.4k|			case VRRPv2:
  ------------------
  |  Branch (354:4): [True: 12.4k, False: 5.17k]
  ------------------
  355|  12.4k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  356|  12.4k|				break;
  357|  5.03k|			case VRRPv3:
  ------------------
  |  Branch (357:4): [True: 5.03k, False: 12.6k]
  ------------------
  358|  5.03k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  359|  5.03k|				                                                             IPAddress::IPv4AddressType);
  360|  5.03k|				break;
  361|    141|			default:
  ------------------
  |  Branch (361:4): [True: 141, False: 17.5k]
  ------------------
  362|    141|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  363|    141|				break;
  364|  17.6k|			}
  365|  17.6k|			break;
  366|  17.6k|		}
  367|   854k|		}
  368|       |
  369|       |		// If no next layer was constructed, assume it's a payload layer
  370|   854k|		if (!hasNextLayer())
  ------------------
  |  Branch (370:7): [True: 2.77k, False: 851k]
  ------------------
  371|  2.77k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  372|   854k|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  375|   165k|	{
  376|   165k|		iphdr* ipHdr = getIPv4Header();
  377|   165k|		ipHdr->ipVersion = (4 & 0x0f);
  378|   165k|		ipHdr->totalLength = htobe16(m_DataLen);
  379|   165k|		ipHdr->headerChecksum = 0;
  380|       |
  381|   165k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (381:7): [True: 165k, False: 53]
  ------------------
  382|   165k|		{
  383|   165k|			switch (m_NextLayer->getProtocol())
  384|   165k|			{
  385|  97.0k|			case TCP:
  ------------------
  |  Branch (385:4): [True: 97.0k, False: 68.4k]
  ------------------
  386|  97.0k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  387|  97.0k|				break;
  388|  51.8k|			case UDP:
  ------------------
  |  Branch (388:4): [True: 51.8k, False: 113k]
  ------------------
  389|  51.8k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  390|  51.8k|				break;
  391|  3.27k|			case ICMP:
  ------------------
  |  Branch (391:4): [True: 3.27k, False: 162k]
  ------------------
  392|  3.27k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  393|  3.27k|				break;
  394|    849|			case GREv0:
  ------------------
  |  Branch (394:4): [True: 849, False: 164k]
  ------------------
  395|  3.16k|			case GREv1:
  ------------------
  |  Branch (395:4): [True: 2.31k, False: 163k]
  ------------------
  396|  3.16k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  397|  3.16k|				break;
  398|    380|			case IGMPv1:
  ------------------
  |  Branch (398:4): [True: 380, False: 165k]
  ------------------
  399|  1.01k|			case IGMPv2:
  ------------------
  |  Branch (399:4): [True: 632, False: 164k]
  ------------------
  400|  1.55k|			case IGMPv3:
  ------------------
  |  Branch (400:4): [True: 539, False: 164k]
  ------------------
  401|  1.55k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  402|  1.55k|				break;
  403|  2.69k|			case VRRPv2:
  ------------------
  |  Branch (403:4): [True: 2.69k, False: 162k]
  ------------------
  404|  3.69k|			case VRRPv3:
  ------------------
  |  Branch (404:4): [True: 1.00k, False: 164k]
  ------------------
  405|  3.69k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  406|  3.69k|				break;
  407|  4.92k|			default:
  ------------------
  |  Branch (407:4): [True: 4.92k, False: 160k]
  ------------------
  408|  4.92k|				break;
  409|   165k|			}
  410|   165k|		}
  411|       |
  412|   165k|		ScalarBuffer<uint16_t> scalar = { (uint16_t*)ipHdr, (size_t)(ipHdr->internetHeaderLength * 4) };
  413|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  414|   165k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  417|  1.20M|	{
  418|  1.20M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  154|  1.20M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (418:11): [True: 12.8k, False: 1.19M]
  |  Branch (418:65): [True: 14.8k, False: 1.18M]
  ------------------
  419|  1.20M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  422|  4.59k|	{
  423|  4.59k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (423:10): [True: 4.59k, False: 0]
  |  Branch (423:26): [True: 148, False: 4.44k]
  ------------------
  424|  4.59k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  427|  4.44k|	{
  428|  4.44k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  154|  4.44k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (428:10): [True: 4.44k, False: 0]
  |  Branch (428:26): [True: 2.61k, False: 1.83k]
  ------------------
  429|  4.44k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  432|  1.21M|	{
  433|  1.21M|		return getIPv4Header()->fragmentOffset & 0xE0;
  434|  1.21M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  437|  1.20M|	{
  438|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  439|  1.20M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  442|   331k|	{
  443|   331k|		std::string fragment = "";
  444|   331k|		if (isFragment())
  ------------------
  |  Branch (444:7): [True: 4.59k, False: 326k]
  ------------------
  445|  4.59k|		{
  446|  4.59k|			if (isFirstFragment())
  ------------------
  |  Branch (446:8): [True: 148, False: 4.44k]
  ------------------
  447|    148|				fragment = "First fragment";
  448|  4.44k|			else if (isLastFragment())
  ------------------
  |  Branch (448:13): [True: 2.61k, False: 1.83k]
  ------------------
  449|  2.61k|				fragment = "Last fragment";
  450|  1.83k|			else
  451|  1.83k|				fragment = "Fragment";
  452|       |
  453|  4.59k|			std::stringstream sstm;
  454|  4.59k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  455|  4.59k|			fragment = sstm.str();
  456|  4.59k|		}
  457|       |
  458|   331k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  459|   331k|		       ", Dst: " + getDstIPv4Address().toString();
  460|   331k|	}

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

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

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   25|    179|	{
   26|    179|		routerAddress = addr.toInt();
   27|       |		preferenceLevel = htobe32(preference);
   28|    179|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   39|  85.0k|	{
   40|  85.0k|		uint8_t type = getIcmpHeader()->type;
   41|  85.0k|		if (type > 18)
  ------------------
  |  Branch (41:7): [True: 0, False: 85.0k]
  ------------------
   42|      0|			return ICMP_UNSUPPORTED;
   43|       |
   44|  85.0k|		return static_cast<IcmpMessageType>(type);
   45|  85.0k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   48|    935|	{
   49|       |		// remove all layers after
   50|       |
   51|    935|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (51:7): [True: 0, False: 935]
  ------------------
   52|      0|		{
   53|      0|			bool res = getAttachedPacket()->removeAllLayersAfter(this);
   54|      0|			if (!res)
  ------------------
  |  Branch (54:8): [True: 0, False: 0]
  ------------------
   55|      0|				return false;
   56|      0|		}
   57|       |
   58|       |		// shorten layer to size of icmphdr
   59|       |
   60|    935|		size_t headerLen = this->getHeaderLen();
   61|    935|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (61:7): [True: 935, False: 0]
  ------------------
   62|    935|		{
   63|    935|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (63:8): [True: 0, False: 935]
  ------------------
   64|      0|				return false;
   65|    935|		}
   66|       |
   67|    935|		return true;
   68|    935|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
  101|    660|	{
  102|    660|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (102:7): [True: 660, False: 0]
  ------------------
  103|    660|		{
  104|    660|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  443|    660|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    660|	do                                                                                                                 \
  |  |  |  |  413|    660|	{                                                                                                                  \
  |  |  |  |  414|    660|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    660|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    660|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 660, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    660|		{                                                                                                              \
  |  |  |  |  417|    660|			auto ctx =                                                                                                 \
  |  |  |  |  418|    660|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    660|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    660|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    660|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    660|		}                                                                                                              \
  |  |  |  |  422|    660|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 660]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|    660|			               "Please add the ICMP layer to a packet and try again");
  106|    660|			return false;
  107|    660|		}
  108|       |
  109|      0|		if (ipLayer != nullptr && !getAttachedPacket()->addLayer(ipLayer))
  ------------------
  |  Branch (109:7): [True: 0, False: 0]
  |  Branch (109:29): [True: 0, False: 0]
  ------------------
  110|      0|		{
  111|      0|			PCPP_LOG_ERROR("Couldn't add IP layer to ICMP packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  112|      0|			return false;
  113|      0|		}
  114|       |
  115|      0|		if (l4Layer != nullptr && !getAttachedPacket()->addLayer(l4Layer))
  ------------------
  |  Branch (115:7): [True: 0, False: 0]
  |  Branch (115:29): [True: 0, False: 0]
  ------------------
  116|      0|		{
  117|      0|			PCPP_LOG_ERROR("Couldn't add L4 layer to ICMP packet");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  118|      0|			return false;
  119|      0|		}
  120|       |
  121|      0|		return true;
  122|      0|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  227|  1.10k|	{
  228|  1.10k|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (228:7): [True: 0, False: 1.10k]
  ------------------
  229|      0|			return nullptr;
  230|       |
  231|  1.10k|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  232|  1.10k|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  236|    552|	{
  237|    552|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (237:7): [True: 0, False: 552]
  ------------------
  238|      0|			return nullptr;
  239|       |
  240|    552|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (240:7): [True: 0, False: 552]
  ------------------
  241|      0|			return nullptr;
  242|       |
  243|    552|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  244|       |
  245|    552|		icmp_destination_unreachable* header = getDestUnreachableData();
  246|    552|		header->code = code;
  247|    552|		header->nextHopMTU = htobe16(nextHopMTU);
  248|    552|		header->unused = 0;
  249|       |
  250|    552|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (250:7): [True: 552, False: 0]
  ------------------
  251|    552|			return nullptr;
  252|       |
  253|      0|		return header;
  254|    552|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  319|  1.61k|	{
  320|  1.61k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (320:7): [True: 0, False: 1.61k]
  ------------------
  321|      0|			return nullptr;
  322|       |
  323|  1.61k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  324|       |
  325|  1.61k|		return &m_RouterAdvData;
  326|  1.61k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  330|    179|	{
  331|    179|		if (code != 0 && code != 16)
  ------------------
  |  Branch (331:7): [True: 179, False: 0]
  |  Branch (331:20): [True: 0, False: 179]
  ------------------
  332|      0|		{
  333|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  334|      0|			                               << " for ICMP router advertisement data (only codes 0 and 16 are legal)");
  335|      0|			return nullptr;
  336|      0|		}
  337|       |
  338|    179|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (338:7): [True: 0, False: 179]
  ------------------
  339|      0|			return nullptr;
  340|       |
  341|    179|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (341:7): [True: 0, False: 179]
  ------------------
  342|    179|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  343|    179|		                                      sizeof(icmphdr)))
  344|      0|			return nullptr;
  345|       |
  346|    179|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  347|       |
  348|    179|		icmp_router_advertisement* header = getRouterAdvertisementData();
  349|    179|		header->header->code = code;
  350|    179|		header->header->lifetime = htobe16(lifetimeInSeconds);
  351|    179|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  352|    179|		header->header->addressEntrySize = 2;
  353|       |
  354|    179|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  355|    179|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  356|    179|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (356:25): [True: 179, False: 179]
  ------------------
  357|    179|		{
  358|    179|			curPos->routerAddress = iter.routerAddress;
  359|    179|			curPos->preferenceLevel = iter.preferenceLevel;
  360|    179|			curPos += 1;
  361|    179|		}
  362|       |
  363|    179|		return header;
  364|    179|	}
_ZN4pcpp9IcmpLayer19getTimeExceededDataEv:
  388|    216|	{
  389|    216|		if (!isMessageOfType(ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (389:7): [True: 0, False: 216]
  ------------------
  390|      0|			return nullptr;
  391|       |
  392|    216|		return reinterpret_cast<icmp_time_exceeded*>(m_Data);
  393|    216|	}
_ZN4pcpp9IcmpLayer19setTimeExceededDataEhPNS_9IPv4LayerEPNS_5LayerE:
  396|    108|	{
  397|    108|		if (code > 1)
  ------------------
  |  Branch (397:7): [True: 0, False: 108]
  ------------------
  398|      0|		{
  399|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP time exceeded data");
  ------------------
  |  |  443|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      0|	do                                                                                                                 \
  |  |  |  |  413|      0|	{                                                                                                                  \
  |  |  |  |  414|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  400|      0|			return nullptr;
  401|      0|		}
  402|       |
  403|    108|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (403:7): [True: 0, False: 108]
  ------------------
  404|      0|			return nullptr;
  405|       |
  406|    108|		if (!this->extendLayer(m_DataLen, sizeof(icmp_time_exceeded) - sizeof(icmphdr)))
  ------------------
  |  Branch (406:7): [True: 0, False: 108]
  ------------------
  407|      0|			return nullptr;
  408|       |
  409|    108|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIME_EXCEEDED);
  410|       |
  411|    108|		icmp_time_exceeded* header = getTimeExceededData();
  412|    108|		header->code = code;
  413|    108|		header->unused = 0;
  414|       |
  415|    108|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (415:7): [True: 108, False: 0]
  ------------------
  416|    108|			return nullptr;
  417|       |
  418|      0|		return header;
  419|    108|	}
_ZN4pcpp9IcmpLayer19getParamProblemDataEv:
  422|      2|	{
  423|      2|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (423:7): [True: 0, False: 2]
  ------------------
  424|      0|			return nullptr;
  425|       |
  426|      2|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  427|      2|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  431|      2|	{
  432|      2|		if (code > 2)
  ------------------
  |  Branch (432:7): [True: 2, False: 0]
  ------------------
  433|      2|		{
  434|      2|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  443|      2|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      2|	do                                                                                                                 \
  |  |  |  |  413|      2|	{                                                                                                                  \
  |  |  |  |  414|      2|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      2|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      2|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 2, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      2|		{                                                                                                              \
  |  |  |  |  417|      2|			auto ctx =                                                                                                 \
  |  |  |  |  418|      2|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      2|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      2|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      2|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      2|		}                                                                                                              \
  |  |  |  |  422|      2|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  435|      2|			return nullptr;
  436|      2|		}
  437|       |
  438|      0|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (438:7): [True: 0, False: 0]
  ------------------
  439|      0|			return nullptr;
  440|       |
  441|      0|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (441:7): [True: 0, False: 0]
  ------------------
  442|      0|			return nullptr;
  443|       |
  444|      0|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  445|       |
  446|      0|		icmp_param_problem* header = getParamProblemData();
  447|      0|		header->code = code;
  448|      0|		header->unused1 = 0;
  449|      0|		header->unused2 = 0;
  450|      0|		header->pointer = errorOctetPointer;
  451|       |
  452|      0|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (452:7): [True: 0, False: 0]
  ------------------
  453|      0|			return nullptr;
  454|       |
  455|      0|		return header;
  456|      0|	}
_ZN4pcpp9IcmpLayer23getAddressMaskReplyDataEv:
  486|    192|	{
  487|    192|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (487:7): [True: 0, False: 192]
  ------------------
  488|      0|			return nullptr;
  489|       |
  490|    192|		return reinterpret_cast<icmp_address_mask_reply*>(m_Data);
  491|    192|	}
_ZN4pcpp9IcmpLayer23setAddressMaskReplyDataEttNS_11IPv4AddressE:
  494|     96|	{
  495|     96|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (495:7): [True: 0, False: 96]
  ------------------
  496|      0|			return nullptr;
  497|       |
  498|     96|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (498:7): [True: 0, False: 96]
  ------------------
  499|      0|			return nullptr;
  500|       |
  501|     96|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REPLY);
  502|       |
  503|     96|		icmp_address_mask_reply* header = getAddressMaskReplyData();
  504|     96|		header->code = 0;
  505|     96|		header->id = htobe16(id);
  506|     96|		header->sequence = htobe16(sequence);
  507|     96|		header->addressMask = htobe32(mask.toInt());
  508|       |
  509|     96|		return header;
  510|     96|	}
_ZN4pcpp9IcmpLayer14parseNextLayerEv:
  565|  19.2k|	{
  566|  19.2k|		size_t headerLen = getHeaderLen();
  567|       |
  568|  19.2k|		auto payloadPtr = m_Data + headerLen;
  569|  19.2k|		auto payloadLen = m_DataLen - headerLen;
  570|       |
  571|  19.2k|		switch (getMessageType())
  572|  19.2k|		{
  573|  3.81k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (573:3): [True: 3.81k, False: 15.4k]
  ------------------
  574|  3.81k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (574:3): [True: 8, False: 19.2k]
  ------------------
  575|  4.50k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (575:3): [True: 684, False: 18.5k]
  ------------------
  576|  5.09k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (576:3): [True: 590, False: 18.6k]
  ------------------
  577|  5.10k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (577:3): [True: 10, False: 19.2k]
  ------------------
  578|  5.10k|		{
  579|  5.10k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  580|  5.10k|			break;
  581|  5.09k|		}
  582|  14.1k|		default:
  ------------------
  |  Branch (582:3): [True: 14.1k, False: 5.10k]
  ------------------
  583|  14.1k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (583:8): [True: 731, False: 13.4k]
  ------------------
  584|    731|			{
  585|    731|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  586|    731|			}
  587|  14.1k|			break;
  588|  19.2k|		}
  589|  19.2k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  592|  30.1k|	{
  593|  30.1k|		IcmpMessageType type = getMessageType();
  594|  30.1k|		size_t routerAdvSize = 0;
  595|  30.1k|		switch (type)
  596|  30.1k|		{
  597|  11.3k|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (597:3): [True: 11.3k, False: 18.8k]
  ------------------
  598|  19.5k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (598:3): [True: 8.26k, False: 21.8k]
  ------------------
  599|  19.5k|			return m_DataLen;
  600|    209|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (600:3): [True: 209, False: 29.9k]
  ------------------
  601|    209|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (601:3): [True: 0, False: 30.1k]
  ------------------
  602|    209|			return sizeof(icmp_timestamp_request);
  603|     20|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (603:3): [True: 20, False: 30.1k]
  ------------------
  604|     20|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (604:3): [True: 0, False: 30.1k]
  ------------------
  605|     20|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (605:3): [True: 0, False: 30.1k]
  ------------------
  606|     20|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (606:3): [True: 0, False: 30.1k]
  ------------------
  607|     20|			return sizeof(icmphdr);
  608|    949|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (608:3): [True: 949, False: 29.1k]
  ------------------
  609|    949|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (609:3): [True: 0, False: 30.1k]
  ------------------
  610|    949|			return sizeof(icmp_address_mask_request);
  611|  6.10k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (611:3): [True: 6.10k, False: 24.0k]
  ------------------
  612|  6.10k|			return sizeof(icmp_destination_unreachable);
  613|    872|		case ICMP_REDIRECT:
  ------------------
  |  Branch (613:3): [True: 872, False: 29.2k]
  ------------------
  614|    872|			return sizeof(icmp_redirect);
  615|  1.11k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (615:3): [True: 1.11k, False: 29.0k]
  ------------------
  616|  1.12k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (616:3): [True: 11, False: 30.1k]
  ------------------
  617|  1.12k|			return sizeof(icmp_time_exceeded);
  618|     16|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (618:3): [True: 16, False: 30.1k]
  ------------------
  619|     16|			return sizeof(icmp_param_problem);
  620|  1.25k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (620:3): [True: 1.25k, False: 28.8k]
  ------------------
  621|       |			// clang-format off
  622|  1.25k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  623|       |			// clang-format on
  624|  1.25k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (624:8): [True: 1.25k, False: 0]
  ------------------
  625|  1.25k|				return m_DataLen;
  626|      0|			return routerAdvSize;
  627|      0|		default:
  ------------------
  |  Branch (627:3): [True: 0, False: 30.1k]
  ------------------
  628|      0|			return sizeof(icmphdr);
  629|  30.1k|		}
  630|  30.1k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  633|  3.27k|	{
  634|       |		// calculate checksum
  635|  3.27k|		getIcmpHeader()->checksum = 0;
  636|       |
  637|  3.27k|		size_t icmpLen = 0;
  638|  3.27k|		Layer* curLayer = this;
  639|  9.27k|		while (curLayer != nullptr)
  ------------------
  |  Branch (639:10): [True: 5.99k, False: 3.27k]
  ------------------
  640|  5.99k|		{
  641|  5.99k|			icmpLen += curLayer->getHeaderLen();
  642|  5.99k|			curLayer = curLayer->getNextLayer();
  643|  5.99k|		}
  644|       |
  645|  3.27k|		ScalarBuffer<uint16_t> buffer;
  646|  3.27k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  647|  3.27k|		buffer.len = icmpLen;
  648|  3.27k|		size_t checksum = computeChecksum(&buffer, 1);
  649|       |
  650|       |		getIcmpHeader()->checksum = htobe16(checksum);
  651|  3.27k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  654|  6.54k|	{
  655|  6.54k|		std::string messageTypeAsString;
  656|  6.54k|		IcmpMessageType type = getMessageType();
  657|  6.54k|		switch (type)
  658|  6.54k|		{
  659|  2.01k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (659:3): [True: 2.01k, False: 4.53k]
  ------------------
  660|  2.01k|			messageTypeAsString = "Echo (ping) reply";
  661|  2.01k|			break;
  662|  1.10k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (662:3): [True: 1.10k, False: 5.44k]
  ------------------
  663|  1.10k|			messageTypeAsString = "Destination unreachable";
  664|  1.10k|			break;
  665|      2|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (665:3): [True: 2, False: 6.54k]
  ------------------
  666|      2|			messageTypeAsString = "Source quench (flow control)";
  667|      2|			break;
  668|    188|		case ICMP_REDIRECT:
  ------------------
  |  Branch (668:3): [True: 188, False: 6.35k]
  ------------------
  669|    188|			messageTypeAsString = "Redirect";
  670|    188|			break;
  671|  2.42k|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (671:3): [True: 2.42k, False: 4.12k]
  ------------------
  672|  2.42k|			messageTypeAsString = "Echo (ping) request";
  673|  2.42k|			break;
  674|    358|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (674:3): [True: 358, False: 6.18k]
  ------------------
  675|    358|			messageTypeAsString = "Router advertisement";
  676|    358|			break;
  677|      4|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (677:3): [True: 4, False: 6.54k]
  ------------------
  678|      4|			messageTypeAsString = "Router solicitation";
  679|      4|			break;
  680|    216|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (680:3): [True: 216, False: 6.33k]
  ------------------
  681|    216|			messageTypeAsString = "Time-to-live exceeded";
  682|    216|			break;
  683|      4|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (683:3): [True: 4, False: 6.54k]
  ------------------
  684|      4|			messageTypeAsString = "Parameter problem: bad IP header";
  685|      4|			break;
  686|     38|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (686:3): [True: 38, False: 6.50k]
  ------------------
  687|     38|			messageTypeAsString = "Timestamp request";
  688|     38|			break;
  689|      0|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (689:3): [True: 0, False: 6.54k]
  ------------------
  690|      0|			messageTypeAsString = "Timestamp reply";
  691|      0|			break;
  692|      0|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (692:3): [True: 0, False: 6.54k]
  ------------------
  693|      0|			messageTypeAsString = "Information request";
  694|      0|			break;
  695|      0|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (695:3): [True: 0, False: 6.54k]
  ------------------
  696|      0|			messageTypeAsString = "Information reply";
  697|      0|			break;
  698|      0|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (698:3): [True: 0, False: 6.54k]
  ------------------
  699|      0|			messageTypeAsString = "Address mask request";
  700|      0|			break;
  701|    192|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (701:3): [True: 192, False: 6.35k]
  ------------------
  702|    192|			messageTypeAsString = "Address mask reply";
  703|    192|			break;
  704|      0|		default:
  ------------------
  |  Branch (704:3): [True: 0, False: 6.54k]
  ------------------
  705|      0|			messageTypeAsString = "Unknown";
  706|      0|			break;
  707|  6.54k|		}
  708|       |
  709|  6.54k|		std::ostringstream typeStream;
  710|  6.54k|		typeStream << (int)getIcmpHeader()->type;
  711|       |
  712|  6.54k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  713|  6.54k|	}

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

_ZNK4pcpp9IgmpLayer7getTypeEv:
   32|  3.10k|	{
   33|  3.10k|		uint8_t type = getIgmpHeader()->type;
   34|  3.10k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (34:7): [True: 0, False: 3.10k]
  ------------------
   35|  3.10k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (35:8): [True: 1.06k, False: 2.04k]
  |  Branch (35:47): [True: 0, False: 1.06k]
  ------------------
   36|  3.10k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (36:8): [True: 1.06k, False: 2.04k]
  |  Branch (36:56): [True: 0, False: 1.06k]
  ------------------
   37|  3.10k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (37:8): [True: 0, False: 3.10k]
  |  Branch (37:55): [True: 0, False: 0]
  ------------------
   38|  3.10k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (38:7): [True: 0, False: 3.10k]
  ------------------
   39|      0|		{
   40|      0|			return IgmpType_Unknown;
   41|      0|		}
   42|       |
   43|  3.10k|		return (IgmpType)type;
   44|  3.10k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   56|  7.33k|	{
   57|  7.33k|		isQuery = false;
   58|       |
   59|  7.33k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (59:7): [True: 5, False: 7.32k]
  |  Branch (59:22): [True: 0, False: 7.32k]
  ------------------
   60|      5|			return UnknownProtocol;
   61|       |
   62|  7.32k|		switch ((int)data[0])
   63|  7.32k|		{
   64|  1.97k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (64:3): [True: 1.97k, False: 5.35k]
  ------------------
   65|  2.25k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (65:3): [True: 284, False: 7.04k]
  ------------------
   66|  2.25k|			return IGMPv2;
   67|  1.73k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (67:3): [True: 1.73k, False: 5.59k]
  ------------------
   68|  1.73k|			return IGMPv1;
   69|  2.13k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (69:3): [True: 2.13k, False: 5.18k]
  ------------------
   70|  2.13k|			return IGMPv3;
   71|  1.06k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (71:3): [True: 1.06k, False: 6.25k]
  ------------------
   72|  1.06k|		{
   73|  1.06k|			isQuery = true;
   74|       |
   75|  1.06k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (75:8): [True: 36, False: 1.03k]
  ------------------
   76|     36|				return IGMPv3;
   77|       |
   78|  1.03k|			if (data[1] == 0)
  ------------------
  |  Branch (78:8): [True: 150, False: 882]
  ------------------
   79|    150|				return IGMPv1;
   80|    882|			else
   81|    882|				return IGMPv2;
   82|  1.03k|		}
   83|    130|		default:
  ------------------
  |  Branch (83:3): [True: 130, False: 7.19k]
  ------------------
   84|    130|			return UnknownProtocol;
   85|  7.32k|		}
   86|  7.32k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   89|  1.55k|	{
   90|  1.55k|		ScalarBuffer<uint16_t> buffer;
   91|  1.55k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   92|  1.55k|		buffer.len = getHeaderLen();
   93|  1.55k|		return computeChecksum(&buffer, 1);
   94|  1.55k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  113|  3.10k|	{
  114|  3.10k|		std::string igmpVer = "";
  115|  3.10k|		switch (getProtocol())
  116|  3.10k|		{
  117|    760|		case IGMPv1:
  ------------------
  |  Branch (117:3): [True: 760, False: 2.34k]
  ------------------
  118|    760|			igmpVer = "1";
  119|    760|			break;
  120|  1.26k|		case IGMPv2:
  ------------------
  |  Branch (120:3): [True: 1.26k, False: 1.83k]
  ------------------
  121|  1.26k|			igmpVer = "2";
  122|  1.26k|			break;
  123|  1.07k|		default:
  ------------------
  |  Branch (123:3): [True: 1.07k, False: 2.02k]
  ------------------
  124|  1.07k|			igmpVer = "3";
  125|  3.10k|		}
  126|       |
  127|  3.10k|		std::string msgType;
  128|       |
  129|  3.10k|		switch (getType())
  130|  3.10k|		{
  131|    432|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (131:3): [True: 432, False: 2.67k]
  ------------------
  132|    432|			msgType = "Membership Query";
  133|    432|			break;
  134|    700|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (134:3): [True: 700, False: 2.40k]
  ------------------
  135|    700|			msgType = "Membership Report";
  136|    700|			break;
  137|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (137:3): [True: 0, False: 3.10k]
  ------------------
  138|      0|			msgType = "DVMRP";
  139|      0|			break;
  140|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (140:3): [True: 0, False: 3.10k]
  ------------------
  141|      0|			msgType = "PIMv1";
  142|      0|			break;
  143|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (143:3): [True: 0, False: 3.10k]
  ------------------
  144|      0|			msgType = "Cisco Trace";
  145|      0|			break;
  146|    796|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (146:3): [True: 796, False: 2.30k]
  ------------------
  147|    796|			msgType = "Membership Report";
  148|    796|			break;
  149|    114|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (149:3): [True: 114, False: 2.98k]
  ------------------
  150|    114|			msgType = "Leave Group";
  151|    114|			break;
  152|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (152:3): [True: 0, False: 3.10k]
  ------------------
  153|      0|			msgType = "Multicast Traceroute Response";
  154|      0|			break;
  155|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (155:3): [True: 0, False: 3.10k]
  ------------------
  156|      0|			msgType = "Multicast Traceroute";
  157|      0|			break;
  158|  1.06k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (158:3): [True: 1.06k, False: 2.04k]
  ------------------
  159|  1.06k|			msgType = "Membership Report";
  160|  1.06k|			break;
  161|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (161:3): [True: 0, False: 3.10k]
  ------------------
  162|      0|			msgType = "Multicast Router Advertisement";
  163|      0|			break;
  164|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (164:3): [True: 0, False: 3.10k]
  ------------------
  165|      0|			msgType = "Multicast Router Solicitation";
  166|      0|			break;
  167|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (167:3): [True: 0, False: 3.10k]
  ------------------
  168|      0|			msgType = "Multicast Router Termination";
  169|      0|			break;
  170|      0|		default:
  ------------------
  |  Branch (170:3): [True: 0, False: 3.10k]
  ------------------
  171|      0|			msgType = "Unknown";
  172|      0|			break;
  173|  3.10k|		}
  174|       |
  175|  3.10k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  176|  3.10k|		return result;
  177|  3.10k|	}
_ZN4pcpp11IgmpV1Layer22computeCalculateFieldsEv:
  182|    380|	{
  183|    380|		igmp_header* hdr = getIgmpHeader();
  184|    380|		hdr->checksum = 0;
  185|       |		hdr->checksum = htobe16(calculateChecksum());
  186|    380|		hdr->maxResponseTime = 0;
  187|    380|	}
_ZN4pcpp11IgmpV2Layer22computeCalculateFieldsEv:
  192|    632|	{
  193|    632|		igmp_header* hdr = getIgmpHeader();
  194|    632|		hdr->checksum = 0;
  195|       |		hdr->checksum = htobe16(calculateChecksum());
  196|    632|	}
_ZN4pcpp16IgmpV3QueryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  201|     36|	    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  202|     36|	{}
_ZNK4pcpp16IgmpV3QueryLayer21getSourceAddressCountEv:
  211|     18|	{
  212|       |		return be16toh(getIgmpV3QueryHeader()->numOfSources);
  213|     18|	}
_ZNK4pcpp16IgmpV3QueryLayer12getHeaderLenEv:
  231|     18|	{
  232|     18|		uint16_t numOfSources = getSourceAddressCount();
  233|       |
  234|     18|		int headerLen = numOfSources * sizeof(uint32_t) + sizeof(igmpv3_query_header);
  235|       |
  236|       |		// verify numOfRecords is a reasonable number that points to data within the packet
  237|     18|		if ((size_t)headerLen > getDataLen())
  ------------------
  |  Branch (237:7): [True: 14, False: 4]
  ------------------
  238|     14|			return getDataLen();
  239|       |
  240|      4|		return (size_t)headerLen;
  241|     18|	}
_ZN4pcpp16IgmpV3QueryLayer22computeCalculateFieldsEv:
  244|      9|	{
  245|      9|		igmpv3_query_header* hdr = getIgmpV3QueryHeader();
  246|      9|		hdr->checksum = 0;
  247|       |		hdr->checksum = htobe16(calculateChecksum());
  248|      9|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  363|    530|	{
  364|    530|		igmpv3_report_header* hdr = getReportHeader();
  365|    530|		hdr->checksum = 0;
  366|       |		hdr->checksum = htobe16(calculateChecksum());
  367|    530|	}

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   28|  12.3k|	{
   29|  12.3k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (29:7): [True: 0, False: 12.3k]
  ------------------
   30|      0|			return;
   31|       |
   32|  12.3k|		llc_header* hdr = getLlcHeader();
   33|  12.3k|		uint8_t* payload = m_Data + sizeof(llc_header);
   34|  12.3k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   35|       |
   36|  12.3k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (36:7): [True: 5.24k, False: 7.06k]
  |  Branch (36:28): [True: 5.24k, False: 4]
  |  Branch (36:49): [True: 5.24k, False: 0]
  ------------------
   37|  5.24k|		{
   38|  5.24k|			constructNextLayerFromFactory(StpLayer::parseStpLayer, payload, payloadLen);
   39|  5.24k|		}
   40|       |
   41|  12.3k|		if (!hasNextLayer())
  ------------------
  |  Branch (41:7): [True: 7.21k, False: 5.09k]
  ------------------
   42|  7.21k|		{
   43|  7.21k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   44|  7.21k|		}
   45|  12.3k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   48|  4.82k|	{
   49|  4.82k|		return "Logical Link Control";
   50|  4.82k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   53|  13.0k|	{
   54|  13.0k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (54:10): [True: 12.4k, False: 645]
  |  Branch (54:45): [True: 4.60k, False: 7.80k]
  |  Branch (54:64): [True: 101, False: 4.50k]
  ------------------
   55|  13.0k|	}

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

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

_ZNK4pcpp11ModbusLayer15getModbusHeaderEv:
   29|  1.78k|	{
   30|  1.78k|		return reinterpret_cast<modbus_header*>(m_Data);
   31|  1.78k|	}
_ZNK4pcpp11ModbusLayer16getTransactionIdEv:
   34|    356|	{
   35|       |		return be16toh(getModbusHeader()->transactionId);
   36|    356|	}
_ZNK4pcpp11ModbusLayer13getProtocolIdEv:
   39|    356|	{
   40|       |		return be16toh(getModbusHeader()->protocolId);
   41|    356|	}
_ZNK4pcpp11ModbusLayer9getLengthEv:
   44|    356|	{
   45|       |		return be16toh(getModbusHeader()->length);
   46|    356|	}
_ZNK4pcpp11ModbusLayer9getUnitIdEv:
   49|    356|	{
   50|    356|		return getModbusHeader()->unitId;
   51|    356|	}
_ZNK4pcpp11ModbusLayer15getFunctionCodeEv:
   54|    356|	{
   55|    356|		switch (getModbusHeader()->functionCode)
   56|    356|		{
   57|     44|		case 1:
  ------------------
  |  Branch (57:3): [True: 44, False: 312]
  ------------------
   58|     44|			return ModbusFunctionCode::ReadCoils;
   59|      0|		case 2:
  ------------------
  |  Branch (59:3): [True: 0, False: 356]
  ------------------
   60|      0|			return ModbusFunctionCode::ReadDiscreteInputs;
   61|    110|		case 3:
  ------------------
  |  Branch (61:3): [True: 110, False: 246]
  ------------------
   62|    110|			return ModbusFunctionCode::ReadHoldingRegisters;
   63|      0|		case 4:
  ------------------
  |  Branch (63:3): [True: 0, False: 356]
  ------------------
   64|      0|			return ModbusFunctionCode::ReadInputRegisters;
   65|      0|		case 5:
  ------------------
  |  Branch (65:3): [True: 0, False: 356]
  ------------------
   66|      0|			return ModbusFunctionCode::WriteSingleCoil;
   67|     24|		case 6:
  ------------------
  |  Branch (67:3): [True: 24, False: 332]
  ------------------
   68|     24|			return ModbusFunctionCode::WriteSingleHoldingRegister;
   69|      0|		case 15:
  ------------------
  |  Branch (69:3): [True: 0, False: 356]
  ------------------
   70|      0|			return ModbusFunctionCode::WriteMultipleCoils;
   71|      0|		case 16:
  ------------------
  |  Branch (71:3): [True: 0, False: 356]
  ------------------
   72|      0|			return ModbusFunctionCode::WriteMultipleHoldingRegisters;
   73|      0|		case 17:
  ------------------
  |  Branch (73:3): [True: 0, False: 356]
  ------------------
   74|      0|			return ModbusFunctionCode::ReadSlaveId;
   75|    178|		default:
  ------------------
  |  Branch (75:3): [True: 178, False: 178]
  ------------------
   76|    178|			return ModbusFunctionCode::UnknownFunction;
   77|    356|		}
   78|    356|	}
_ZNK4pcpp11ModbusLayer8toStringEv:
   96|    356|	{
   97|    356|		return "Modbus Layer, Transaction ID: " + std::to_string(getTransactionId()) +
   98|    356|		       ", Protocol ID: " + std::to_string(getProtocolId()) + ", Length: " + std::to_string(getLength()) +
   99|    356|		       ", Unit ID: " + std::to_string(getUnitId()) +
  100|    356|		       ", Function Code: " + std::to_string(static_cast<uint8_t>(getFunctionCode()));
  101|    356|	}

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

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

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

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

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

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

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

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

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

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

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

_ZN4pcpp15PostgresMessage27parsePostgresBackendMessageEPKhm:
  309|      2|	{
  310|      2|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (310:7): [True: 0, False: 2]
  |  Branch (310:26): [True: 0, False: 2]
  ------------------
  311|      0|		{
  312|      0|			return nullptr;
  313|      0|		}
  314|       |
  315|      2|		if (dataLen < 5)
  ------------------
  |  Branch (315:7): [True: 1, False: 1]
  ------------------
  316|      1|		{
  317|      1|			return std::unique_ptr<PostgresMessage>(
  318|      1|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  319|      1|		}
  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::unique_ptr<PostgresMessage>(new PostgresParameterStatus(data, messageLength + 1));
  418|      0|		}
  419|      0|		case PostgresBackendMessage_Z:
  ------------------
  |  Branch (419:3): [True: 0, False: 0]
  ------------------
  420|      0|		{
  421|      0|			messageType = PostgresMessageType::Backend_ReadyForQuery;
  422|      0|			break;
  423|      0|		}
  424|      0|		case PostgresBackendMessage_C:
  ------------------
  |  Branch (424:3): [True: 0, False: 0]
  ------------------
  425|      0|		{
  426|      0|			messageType = PostgresMessageType::Backend_CommandComplete;
  427|      0|			break;
  428|      0|		}
  429|      0|		case PostgresBackendMessage_d:
  ------------------
  |  Branch (429:3): [True: 0, False: 0]
  ------------------
  430|      0|		{
  431|      0|			messageType = PostgresMessageType::Backend_CopyData;
  432|      0|			break;
  433|      0|		}
  434|      0|		case PostgresBackendMessage_c:
  ------------------
  |  Branch (434:3): [True: 0, False: 0]
  ------------------
  435|      0|		{
  436|      0|			messageType = PostgresMessageType::Backend_CopyDone;
  437|      0|			break;
  438|      0|		}
  439|      0|		case PostgresBackendMessage_G:
  ------------------
  |  Branch (439:3): [True: 0, False: 0]
  ------------------
  440|      0|		{
  441|      0|			messageType = PostgresMessageType::Backend_CopyInResponse;
  442|      0|			break;
  443|      0|		}
  444|      0|		case PostgresBackendMessage_H:
  ------------------
  |  Branch (444:3): [True: 0, False: 0]
  ------------------
  445|      0|		{
  446|      0|			messageType = PostgresMessageType::Backend_CopyOutResponse;
  447|      0|			break;
  448|      0|		}
  449|      0|		case PostgresBackendMessage_W:
  ------------------
  |  Branch (449:3): [True: 0, False: 0]
  ------------------
  450|      0|		{
  451|      0|			messageType = PostgresMessageType::Backend_CopyBothResponse;
  452|      0|			break;
  453|      0|		}
  454|      0|		case PostgresBackendMessage_D:
  ------------------
  |  Branch (454:3): [True: 0, False: 0]
  ------------------
  455|      0|		{
  456|      0|			return std::unique_ptr<PostgresMessage>(new PostgresDataRowMessage(data, messageLength + 1));
  457|      0|		}
  458|      0|		case PostgresBackendMessage_I:
  ------------------
  |  Branch (458:3): [True: 0, False: 0]
  ------------------
  459|      0|		{
  460|      0|			messageType = PostgresMessageType::Backend_EmptyQueryResponse;
  461|      0|			break;
  462|      0|		}
  463|      0|		case PostgresBackendMessage_E:
  ------------------
  |  Branch (463:3): [True: 0, False: 0]
  ------------------
  464|      0|		{
  465|      0|			return std::unique_ptr<PostgresMessage>(new PostgresErrorResponseMessage(data, messageLength + 1));
  466|      0|		}
  467|      0|		case PostgresBackendMessage_V:
  ------------------
  |  Branch (467:3): [True: 0, False: 0]
  ------------------
  468|      0|		{
  469|      0|			messageType = PostgresMessageType::Backend_FunctionCallResponse;
  470|      0|			break;
  471|      0|		}
  472|      0|		case PostgresBackendMessage_v:
  ------------------
  |  Branch (472:3): [True: 0, False: 0]
  ------------------
  473|      0|		{
  474|      0|			messageType = PostgresMessageType::Backend_NegotiateProtocolVersion;
  475|      0|			break;
  476|      0|		}
  477|      0|		case PostgresBackendMessage_n:
  ------------------
  |  Branch (477:3): [True: 0, False: 0]
  ------------------
  478|      0|		{
  479|      0|			messageType = PostgresMessageType::Backend_NoData;
  480|      0|			break;
  481|      0|		}
  482|      0|		case PostgresBackendMessage_N:
  ------------------
  |  Branch (482:3): [True: 0, False: 0]
  ------------------
  483|      0|		{
  484|      0|			messageType = PostgresMessageType::Backend_NoticeResponse;
  485|      0|			break;
  486|      0|		}
  487|      0|		case PostgresBackendMessage_A:
  ------------------
  |  Branch (487:3): [True: 0, False: 0]
  ------------------
  488|      0|		{
  489|      0|			messageType = PostgresMessageType::Backend_NotificationResponse;
  490|      0|			break;
  491|      0|		}
  492|      0|		case PostgresBackendMessage_t:
  ------------------
  |  Branch (492:3): [True: 0, False: 0]
  ------------------
  493|      0|		{
  494|      0|			messageType = PostgresMessageType::Backend_ParameterDescription;
  495|      0|			break;
  496|      0|		}
  497|      0|		case PostgresBackendMessage_1:
  ------------------
  |  Branch (497:3): [True: 0, False: 0]
  ------------------
  498|      0|		{
  499|      0|			messageType = PostgresMessageType::Backend_ParseComplete;
  500|      0|			break;
  501|      0|		}
  502|      0|		case PostgresBackendMessage_s:
  ------------------
  |  Branch (502:3): [True: 0, False: 0]
  ------------------
  503|      0|		{
  504|      0|			messageType = PostgresMessageType::Backend_PortalSuspended;
  505|      0|			break;
  506|      0|		}
  507|      0|		case PostgresBackendMessage_T:
  ------------------
  |  Branch (507:3): [True: 0, False: 0]
  ------------------
  508|      0|		{
  509|      0|			return std::unique_ptr<PostgresMessage>(new PostgresRowDescriptionMessage(data, messageLength + 1));
  510|      0|		}
  511|      0|		default:
  ------------------
  |  Branch (511:3): [True: 0, False: 0]
  ------------------
  512|      0|		{
  513|      0|			break;
  514|      0|		}
  515|      0|		}
  516|       |
  517|      0|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  518|      0|	}
_ZN4pcpp15PostgresMessage28parsePostgresFrontendMessageEPKhm:
  521|     16|	{
  522|     16|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (522:7): [True: 0, False: 16]
  |  Branch (522:26): [True: 0, False: 16]
  ------------------
  523|      0|		{
  524|      0|			return nullptr;
  525|      0|		}
  526|       |
  527|     16|		uint8_t messageTypeValue = data[0];
  528|     16|		if (messageTypeValue == PostgresMessage_0)
  ------------------
  |  Branch (528:7): [True: 2, False: 14]
  ------------------
  529|      2|		{
  530|      2|			if (dataLen < 8)
  ------------------
  |  Branch (530:8): [True: 1, False: 1]
  ------------------
  531|      1|			{
  532|      1|				return std::unique_ptr<PostgresMessage>(
  533|      1|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  534|      1|			}
  535|       |
  536|      1|			auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data));
  537|      1|			if (messageLength > dataLen)
  ------------------
  |  Branch (537:8): [True: 1, False: 0]
  ------------------
  538|      1|			{
  539|      1|				return std::unique_ptr<PostgresMessage>(
  540|      1|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  541|      1|			}
  542|       |
  543|      0|			auto messageTag = be32toh(*reinterpret_cast<const uint32_t*>(data + 4));
  544|      0|			auto messageType = PostgresMessageType::Frontend_Unknown;
  545|       |
  546|      0|			switch (messageTag)
  547|      0|			{
  548|      0|			case PostgresFrontendTag_StartupMessage:
  ------------------
  |  Branch (548:4): [True: 0, False: 0]
  ------------------
  549|      0|			{
  550|      0|				return std::unique_ptr<PostgresMessage>(new PostgresStartupMessage(data, messageLength));
  551|      0|			}
  552|      0|			case PostgresFrontendTag_SSLRequest:
  ------------------
  |  Branch (552:4): [True: 0, False: 0]
  ------------------
  553|      0|			{
  554|      0|				messageType = PostgresMessageType::Frontend_SSLRequest;
  555|      0|				break;
  556|      0|			}
  557|      0|			case PostgresFrontendTag_CancelRequest:
  ------------------
  |  Branch (557:4): [True: 0, False: 0]
  ------------------
  558|      0|			{
  559|      0|				messageType = PostgresMessageType::Frontend_CancelRequest;
  560|      0|				break;
  561|      0|			}
  562|      0|			case PostgresFrontendTag_GSSENCRequest:
  ------------------
  |  Branch (562:4): [True: 0, False: 0]
  ------------------
  563|      0|			{
  564|      0|				messageType = PostgresMessageType::Frontend_GSSENCRequest;
  565|      0|				break;
  566|      0|			}
  567|      0|			default:
  ------------------
  |  Branch (567:4): [True: 0, False: 0]
  ------------------
  568|      0|			{
  569|      0|				break;
  570|      0|			}
  571|      0|			}
  572|       |
  573|      0|			return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength, messageType));
  574|      0|		}
  575|       |
  576|     14|		if (dataLen < 5)
  ------------------
  |  Branch (576:7): [True: 3, False: 11]
  ------------------
  577|      3|		{
  578|      3|			return std::unique_ptr<PostgresMessage>(
  579|      3|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  580|      3|		}
  581|       |
  582|     11|		auto messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  583|     11|		if (dataLen < messageLength + 1)
  ------------------
  |  Branch (583:7): [True: 11, False: 0]
  ------------------
  584|     11|		{
  585|     11|			return std::unique_ptr<PostgresMessage>(
  586|     11|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  587|     11|		}
  588|       |
  589|      0|		auto messageType = PostgresMessageType::Frontend_Unknown;
  590|      0|		switch (messageTypeValue)
  591|      0|		{
  592|      0|		case PostgresFrontendMessage_Q:
  ------------------
  |  Branch (592:3): [True: 0, False: 0]
  ------------------
  593|      0|		{
  594|      0|			return std::unique_ptr<PostgresMessage>(
  595|      0|			    new PostgresQueryMessage(data, (std::min)(static_cast<size_t>(messageLength) + 1, dataLen)));
  596|      0|		}
  597|      0|		case PostgresFrontendMessage_P:
  ------------------
  |  Branch (597:3): [True: 0, False: 0]
  ------------------
  598|      0|		{
  599|      0|			messageType = PostgresMessageType::Frontend_Parse;
  600|      0|			break;
  601|      0|		}
  602|      0|		case PostgresFrontendMessage_B:
  ------------------
  |  Branch (602:3): [True: 0, False: 0]
  ------------------
  603|      0|		{
  604|      0|			messageType = PostgresMessageType::Frontend_Bind;
  605|      0|			break;
  606|      0|		}
  607|      0|		case PostgresFrontendMessage_E:
  ------------------
  |  Branch (607:3): [True: 0, False: 0]
  ------------------
  608|      0|		{
  609|      0|			messageType = PostgresMessageType::Frontend_Execute;
  610|      0|			break;
  611|      0|		}
  612|      0|		case PostgresFrontendMessage_C:
  ------------------
  |  Branch (612:3): [True: 0, False: 0]
  ------------------
  613|      0|		{
  614|      0|			messageType = PostgresMessageType::Frontend_Close;
  615|      0|			break;
  616|      0|		}
  617|      0|		case PostgresFrontendMessage_D:
  ------------------
  |  Branch (617:3): [True: 0, False: 0]
  ------------------
  618|      0|		{
  619|      0|			messageType = PostgresMessageType::Frontend_Describe;
  620|      0|			break;
  621|      0|		}
  622|      0|		case PostgresFrontendMessage_F:
  ------------------
  |  Branch (622:3): [True: 0, False: 0]
  ------------------
  623|      0|		{
  624|      0|			messageType = PostgresMessageType::Frontend_FunctionCall;
  625|      0|			break;
  626|      0|		}
  627|      0|		case PostgresFrontendMessage_H:
  ------------------
  |  Branch (627:3): [True: 0, False: 0]
  ------------------
  628|      0|		{
  629|      0|			messageType = PostgresMessageType::Frontend_Flush;
  630|      0|			break;
  631|      0|		}
  632|      0|		case PostgresFrontendMessage_S:
  ------------------
  |  Branch (632:3): [True: 0, False: 0]
  ------------------
  633|      0|		{
  634|      0|			messageType = PostgresMessageType::Frontend_Sync;
  635|      0|			break;
  636|      0|		}
  637|      0|		case PostgresFrontendMessage_d:
  ------------------
  |  Branch (637:3): [True: 0, False: 0]
  ------------------
  638|      0|		{
  639|      0|			messageType = PostgresMessageType::Frontend_CopyData;
  640|      0|			break;
  641|      0|		}
  642|      0|		case PostgresFrontendMessage_c:
  ------------------
  |  Branch (642:3): [True: 0, False: 0]
  ------------------
  643|      0|		{
  644|      0|			messageType = PostgresMessageType::Frontend_CopyDone;
  645|      0|			break;
  646|      0|		}
  647|      0|		case PostgresFrontendMessage_f:
  ------------------
  |  Branch (647:3): [True: 0, False: 0]
  ------------------
  648|      0|		{
  649|      0|			messageType = PostgresMessageType::Frontend_CopyFail;
  650|      0|			break;
  651|      0|		}
  652|      0|		case PostgresFrontendMessage_X:
  ------------------
  |  Branch (652:3): [True: 0, False: 0]
  ------------------
  653|      0|		{
  654|      0|			messageType = PostgresMessageType::Frontend_Terminate;
  655|      0|			break;
  656|      0|		}
  657|      0|		default:
  ------------------
  |  Branch (657:3): [True: 0, False: 0]
  ------------------
  658|      0|		{
  659|      0|			break;
  660|      0|		}
  661|      0|		}
  662|       |
  663|      0|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  664|      0|	}
_ZN4pcpp13PostgresLayer28parsePostgresBackendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1010|     10|	{
 1011|     10|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Backend);
 1012|     10|	}
_ZN4pcpp13PostgresLayer29parsePostgresFrontendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1016|     80|	{
 1017|     80|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Frontend);
 1018|     80|	}
_ZNK4pcpp13PostgresLayer19getPostgresMessagesEv:
 1021|     36|	{
 1022|     36|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (1022:7): [True: 18, False: 18]
  ------------------
 1023|     18|		{
 1024|     18|			auto parseFunc = (m_MessageOrigin == PostgresMessageOrigin::Backend)
  ------------------
  |  Branch (1024:21): [True: 2, False: 16]
  ------------------
 1025|     18|			                     ? &PostgresMessage::parsePostgresBackendMessage
 1026|     18|			                     : &PostgresMessage::parsePostgresFrontendMessage;
 1027|       |
 1028|     18|			auto data = m_Data;
 1029|     18|			auto dataLen = m_DataLen;
 1030|       |
 1031|     36|			while (dataLen > 0)
  ------------------
  |  Branch (1031:11): [True: 18, False: 18]
  ------------------
 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|     18|			m_MessagesInitialized = true;
 1045|     18|		}
 1046|       |
 1047|     36|		return m_Messages;
 1048|     36|	}
_ZNK4pcpp13PostgresLayer8toStringEv:
 1061|     36|	{
 1062|     36|		const auto& messages = getPostgresMessages();
 1063|     36|		return std::string("PostgreSQL ") +
 1064|     36|		       (m_MessageOrigin == PostgresMessageOrigin::Frontend ? "Frontend" : "Backend") + " Layer, " +
  ------------------
  |  Branch (1064:11): [True: 32, False: 4]
  ------------------
 1065|     36|		       std::to_string(messages.size()) + " message(s)";
 1066|     36|	}

_ZN4pcpp11RadiusLayer22getRadiusMessageStringEh:
   97|  9.14k|	{
   98|  9.14k|		switch (radiusMessageCode)
   99|  9.14k|		{
  100|  2.60k|		case 1:
  ------------------
  |  Branch (100:3): [True: 2.60k, False: 6.54k]
  ------------------
  101|  2.60k|			return "Access-Request";
  102|    622|		case 2:
  ------------------
  |  Branch (102:3): [True: 622, False: 8.52k]
  ------------------
  103|    622|			return "Access-Accept";
  104|    718|		case 3:
  ------------------
  |  Branch (104:3): [True: 718, False: 8.42k]
  ------------------
  105|    718|			return "Access-Reject";
  106|    210|		case 4:
  ------------------
  |  Branch (106:3): [True: 210, False: 8.93k]
  ------------------
  107|    210|			return "Accounting-Request";
  108|     86|		case 5:
  ------------------
  |  Branch (108:3): [True: 86, False: 9.06k]
  ------------------
  109|     86|			return "Accounting-Response";
  110|  1.55k|		case 11:
  ------------------
  |  Branch (110:3): [True: 1.55k, False: 7.59k]
  ------------------
  111|  1.55k|			return "Access-Challenge";
  112|      0|		case 12:
  ------------------
  |  Branch (112:3): [True: 0, False: 9.14k]
  ------------------
  113|      0|			return "Status-Server";
  114|      0|		case 13:
  ------------------
  |  Branch (114:3): [True: 0, False: 9.14k]
  ------------------
  115|      0|			return "Status-Client";
  116|  1.73k|		case 40:
  ------------------
  |  Branch (116:3): [True: 1.73k, False: 7.41k]
  ------------------
  117|  1.73k|			return "Disconnect-Request";
  118|  1.10k|		case 41:
  ------------------
  |  Branch (118:3): [True: 1.10k, False: 8.04k]
  ------------------
  119|  1.10k|			return "Disconnect-ACK";
  120|    166|		case 42:
  ------------------
  |  Branch (120:3): [True: 166, False: 8.98k]
  ------------------
  121|    166|			return "Disconnect-NAK";
  122|      0|		case 43:
  ------------------
  |  Branch (122:3): [True: 0, False: 9.14k]
  ------------------
  123|      0|			return "CoA-Request";
  124|    114|		case 44:
  ------------------
  |  Branch (124:3): [True: 114, False: 9.03k]
  ------------------
  125|    114|			return "CoA-ACK";
  126|      0|		case 45:
  ------------------
  |  Branch (126:3): [True: 0, False: 9.14k]
  ------------------
  127|      0|			return "CoA-NAK";
  128|      0|		case 255:
  ------------------
  |  Branch (128:3): [True: 0, False: 9.14k]
  ------------------
  129|      0|			return "Reserved";
  130|    244|		default:
  ------------------
  |  Branch (130:3): [True: 244, False: 8.90k]
  ------------------
  131|    244|			return "Unknown";
  132|  9.14k|		}
  133|  9.14k|	}
_ZNK4pcpp11RadiusLayer12getHeaderLenEv:
  136|  4.57k|	{
  137|  4.57k|		uint16_t len = be16toh(getRadiusHeader()->length);
  138|  4.57k|		if (len > m_DataLen)
  ------------------
  |  Branch (138:7): [True: 0, False: 4.57k]
  ------------------
  139|      0|			return m_DataLen;
  140|       |
  141|  4.57k|		return len;
  142|  4.57k|	}
_ZN4pcpp11RadiusLayer22computeCalculateFieldsEv:
  145|  4.57k|	{
  146|       |		getRadiusHeader()->length = htobe16(m_DataLen);
  147|  4.57k|	}
_ZNK4pcpp11RadiusLayer8toStringEv:
  150|  9.14k|	{
  151|  9.14k|		std::ostringstream str;
  152|  9.14k|		str << "RADIUS Layer, " << RadiusLayer::getRadiusMessageString(getRadiusHeader()->code) << "("
  153|  9.14k|		    << (int)getRadiusHeader()->code
  154|  9.14k|		    << "), "
  155|  9.14k|		       "Id="
  156|  9.14k|		    << (int)getRadiusHeader()->id << ", "
  157|  9.14k|		    << "Length=" << be16toh(getRadiusHeader()->length);
  158|       |
  159|  9.14k|		return str.str();
  160|  9.14k|	}
_ZN4pcpp11RadiusLayer11isDataValidEPKhm:
  243|  30.1k|	{
  244|  30.1k|		if (udpData != nullptr && udpDataLen >= sizeof(radius_header))
  ------------------
  |  Branch (244:7): [True: 30.1k, False: 0]
  |  Branch (244:29): [True: 30.0k, False: 150]
  ------------------
  245|  30.0k|		{
  246|  30.0k|			const radius_header* radHdr = reinterpret_cast<const radius_header*>(udpData);
  247|  30.0k|			size_t radLen = be16toh(radHdr->length);
  248|  30.0k|			return radLen >= sizeof(radius_header) && radLen <= udpDataLen;
  ------------------
  |  Branch (248:11): [True: 29.7k, False: 220]
  |  Branch (248:46): [True: 22.8k, False: 6.91k]
  ------------------
  249|  30.0k|		}
  250|    150|		return false;
  251|  30.1k|	}

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

_ZNK4pcpp11S7CommLayer8toStringEv:
   48|  2.05k|	{
   49|  2.05k|		std::ostringstream str;
   50|  2.05k|		str << "S7Comm Layer, ";
   51|       |
   52|  2.05k|		switch (getS7commHeader()->msgType)
   53|  2.05k|		{
   54|    116|		case 0x01:
  ------------------
  |  Branch (54:3): [True: 116, False: 1.93k]
  ------------------
   55|    116|			str << "Job Request";
   56|    116|			break;
   57|      0|		case 0x02:
  ------------------
  |  Branch (57:3): [True: 0, False: 2.05k]
  ------------------
   58|      0|			str << "Ack";
   59|      0|			break;
   60|    112|		case 0x03:
  ------------------
  |  Branch (60:3): [True: 112, False: 1.93k]
  ------------------
   61|    112|			str << "Ack-Data";
   62|    112|			break;
   63|  1.01k|		case 0x07:
  ------------------
  |  Branch (63:3): [True: 1.01k, False: 1.03k]
  ------------------
   64|  1.01k|			str << "Userdata";
   65|  1.01k|			break;
   66|    804|		default:
  ------------------
  |  Branch (66:3): [True: 804, False: 1.24k]
  ------------------
   67|    804|			str << "Unknown message";
   68|  2.05k|		}
   69|       |
   70|  2.05k|		return str.str();
   71|  2.05k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
   74|  8.62k|	{
   75|  8.62k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (75:7): [True: 0, False: 8.62k]
  |  Branch (75:16): [True: 0, False: 8.62k]
  ------------------
   76|      0|			return false;
   77|       |
   78|  8.62k|		return data[0] == 0x32;
   79|  8.62k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  15.9k|	{
   20|  15.9k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  15.9k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 1.21k, False: 14.7k]
  ------------------
   22|  1.21k|			return sshIdnetMsg;
   23|       |
   24|  14.7k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  14.7k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 2.43k, False: 12.2k]
  ------------------
   26|  2.43k|			return sshHandshakeMessage;
   27|       |
   28|  12.2k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  14.7k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  15.9k|	{
   33|  15.9k|		size_t headerLen = getHeaderLen();
   34|  15.9k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 15.1k, False: 822]
  ------------------
   35|  15.1k|			return;
   36|       |
   37|    822|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|    822|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  15.9k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  15.9k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 239, False: 15.6k]
  ------------------
   49|    239|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  15.6k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 10.5k, False: 5.10k]
  |  Branch (52:26): [True: 10.0k, False: 497]
  |  Branch (52:45): [True: 10.0k, False: 86]
  |  Branch (52:64): [True: 9.99k, False: 15]
  |  Branch (52:83): [True: 1.21k, False: 8.78k]
  ------------------
   53|  1.21k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  14.4k|		return nullptr;
   56|  15.6k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|    484|	{
   67|    484|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Identification message";
  ------------------
  |  |   12|    484|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
   68|    484|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|    896|	{
   76|    896|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|    896|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 254, False: 642]
  |  Branch (77:28): [True: 216, False: 426]
  |  Branch (77:50): [True: 426, False: 0]
  |  Branch (77:71): [True: 426, False: 0]
  ------------------
   78|    896|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|      0|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|    896|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|    896|	{
   84|    896|		switch (getMessageType())
   85|    896|		{
   86|    254|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 254, False: 642]
  ------------------
   87|    254|			return "Key Exchange Init";
   88|    216|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 216, False: 680]
  ------------------
   89|    216|			return "New Keys";
   90|      4|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 4, False: 892]
  ------------------
   91|      4|			return "Diffie-Hellman Key Exchange Init";
   92|    104|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 104, False: 792]
  ------------------
   93|    104|			return "Diffie-Hellman Key Exchange Reply";
   94|     84|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 84, False: 812]
  ------------------
   95|     84|			return "Diffie-Hellman Group Exchange Init";
   96|    124|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 124, False: 772]
  ------------------
   97|    124|			return "Diffie-Hellman Group Exchange Reply";
   98|    110|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 110, False: 786]
  ------------------
   99|    110|			return "Diffie-Hellman Group Exchange Request";
  100|      0|		default:
  ------------------
  |  Branch (100:3): [True: 0, False: 896]
  ------------------
  101|      0|			return "Unknown";
  102|    896|		}
  103|    896|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  122|  2.88k|	{
  123|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  124|  2.88k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  127|    896|	{
  128|    896|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Handshake Message: " + getMessageTypeStr();
  ------------------
  |  |   12|    896|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  129|    896|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  132|  14.7k|	{
  133|  14.7k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (133:7): [True: 264, False: 14.4k]
  ------------------
  134|    264|		{
  135|    264|			PCPP_LOG_DEBUG(
  ------------------
  |  |  425|    264|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    264|	do                                                                                                                 \
  |  |  |  |  413|    264|	{                                                                                                                  \
  |  |  |  |  414|    264|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    264|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    264|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 264]
  |  |  |  |  ------------------
  |  |  |  |  416|    264|		{                                                                                                              \
  |  |  |  |  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|    264|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 264]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|    264|			    "Data length is smaller than the minimum size of an SSH handshake message. It's probably not an SSH handshake message");
  137|    264|			return nullptr;
  138|    264|		}
  139|       |
  140|  14.4k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  141|       |
  142|  14.4k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  143|  14.4k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (143:7): [True: 11.9k, False: 2.50k]
  ------------------
  144|  11.9k|		{
  145|  11.9k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  425|  11.9k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  11.9k|	do                                                                                                                 \
  |  |  |  |  413|  11.9k|	{                                                                                                                  \
  |  |  |  |  414|  11.9k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  11.9k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  11.9k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 11.9k]
  |  |  |  |  ------------------
  |  |  |  |  416|  11.9k|		{                                                                                                              \
  |  |  |  |  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.9k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 11.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|  11.9k|			return nullptr;
  147|  11.9k|		}
  148|       |
  149|  2.50k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (149:7): [True: 0, False: 2.50k]
  ------------------
  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.50k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (155:7): [True: 1.80k, False: 705]
  |  Branch (155:37): [True: 1.20k, False: 594]
  ------------------
  156|  1.20k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (156:8): [True: 5, False: 1.20k]
  |  Branch (156:37): [True: 70, False: 1.13k]
  ------------------
  157|     75|		{
  158|     75|			PCPP_LOG_DEBUG("Unknown message type " << (int)msgBase->messageCode
  ------------------
  |  |  425|     75|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|     75|	do                                                                                                                 \
  |  |  |  |  413|     75|	{                                                                                                                  \
  |  |  |  |  414|     75|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     75|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     75|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 75]
  |  |  |  |  ------------------
  |  |  |  |  416|     75|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE 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|     75|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 75]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|     75|			                                       << ". It's probably not an SSH handshake message");
  160|     75|			return nullptr;
  161|     75|		}
  162|       |
  163|  2.43k|		switch (msgBase->messageCode)
  164|  2.43k|		{
  165|    705|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (165:3): [True: 705, False: 1.72k]
  ------------------
  166|    705|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  167|  1.72k|		default:
  ------------------
  |  Branch (167:3): [True: 1.72k, False: 705]
  ------------------
  168|  1.72k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  169|  2.43k|		}
  170|  2.43k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  178|    705|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  179|    705|	{
  180|    705|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  181|    705|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  256|  4.79k|	{
  257|  4.79k|		return std::string(SSH_LAYER_BASE_STRING) + ", " + "Encrypted Message";
  ------------------
  |  |   12|  4.79k|#define SSH_LAYER_BASE_STRING "SSH Layer"
  ------------------
  258|  4.79k|	}

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

_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|   127k|	{
 1057|   127k|		std::unordered_map<uint16_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteIdToObjectMap.find(id);
 1058|   127k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 33.2k, False: 94.1k]
  ------------------
 1059|  33.2k|			return nullptr;
 1060|  94.1k|		else
 1061|  94.1k|			return pos->second;
 1062|   127k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  6.82k|	{
 1066|  6.82k|		uint32_t nameHash = hashString(std::move(name));
 1067|  6.82k|		std::unordered_map<uint32_t, SSLCipherSuite*>::const_iterator pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  6.82k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 6.82k]
  ------------------
 1069|      0|			return nullptr;
 1070|  6.82k|		else
 1071|  6.82k|			return pos->second;
 1072|  6.82k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   395k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   395k|	{
 1083|   395k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 395k]
  |  Branch (1083:26): [True: 0, False: 395k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   395k|		uint16_t extDataLen = getLength();
 1089|   395k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 395k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   395k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  20.6k|	{
 1097|  20.6k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  20.6k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 9.99k, False: 10.6k]
  |  Branch (1098:26): [True: 487, False: 10.1k]
  |  Branch (1098:45): [True: 2.45k, False: 7.67k]
  ------------------
 1099|  12.9k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  7.67k|		return SSL_EXT_Unknown;
 1102|  20.6k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|   100k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|   100k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   833k|	{
 1111|   833k|		return getExtensionStruct()->getDataLength();
 1112|   833k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   395k|	{
 1116|   395k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   395k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  27.0k|	{
 1121|  27.0k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 25.6k, False: 1.35k]
  ------------------
 1122|  25.6k|		{
 1123|  25.6k|			return getExtensionStruct()->extensionData;
 1124|  25.6k|		}
 1125|       |
 1126|  1.35k|		return nullptr;
 1127|  27.0k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|  1.24M|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|  1.24M|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  5.94k|	{
 1140|  5.94k|		auto* extensionDataPtr = getData();
 1141|  5.94k|		if (extensionDataPtr == nullptr)
  ------------------
  |  Branch (1141:7): [True: 1.35k, False: 4.59k]
  ------------------
 1142|  1.35k|		{
 1143|  1.35k|			return "";
 1144|  1.35k|		}
 1145|       |
 1146|  4.59k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1147|  4.59k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1148|       |
 1149|  4.59k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1150|  4.59k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1151|  4.59k|		uint8_t const* extensionDataEndIt = extensionDataPtr + getLength();
 1152|       |
 1153|  4.59k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1153:7): [True: 23, False: 4.57k]
  ------------------
 1154|     23|		{
 1155|     23|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  431|     23|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|     23|	do                                                                                                                 \
  |  |  |  |  413|     23|	{                                                                                                                  \
  |  |  |  |  414|     23|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|     23|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     23|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 23, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|     23|		{                                                                                                              \
  |  |  |  |  417|     23|			auto ctx =                                                                                                 \
  |  |  |  |  418|     23|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     23|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|     23|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|     23|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|     23|		}                                                                                                              \
  |  |  |  |  422|     23|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 23]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1156|     23|			hostNameDataEndIt = extensionDataEndIt;
 1157|     23|		}
 1158|       |
 1159|  4.59k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1160|  5.94k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1167|  4.41k|	{
 1168|  4.41k|		std::vector<SSLVersion> result;
 1169|  4.41k|		uint16_t extensionLength = getLength();
 1170|  4.41k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1170:7): [True: 2.24k, False: 2.16k]
  ------------------
 1171|  2.24k|		{
 1172|  2.24k|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1173|  2.24k|		}
 1174|  2.16k|		else  // client-hello message
 1175|  2.16k|		{
 1176|  2.16k|			uint8_t listLength = *getData();
 1177|  2.16k|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1177:8): [True: 1, False: 2.16k]
  |  Branch (1177:67): [True: 0, False: 2.16k]
  ------------------
 1178|      1|				return result;  // bad extension data
 1179|       |
 1180|  2.16k|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1181|  7.91k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1181:20): [True: 5.75k, False: 2.16k]
  ------------------
 1182|  5.75k|			{
 1183|  5.75k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1184|  5.75k|				dataPtr += sizeof(uint16_t);
 1185|  5.75k|			}
 1186|  2.16k|		}
 1187|       |
 1188|  4.41k|		return result;
 1189|  4.41k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1196|  4.75k|	{
 1197|  4.75k|		std::vector<uint16_t> result;
 1198|       |
 1199|  4.75k|		uint16_t extensionLength = getLength();
 1200|  4.75k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1200:7): [True: 1, False: 4.75k]
  ------------------
 1201|      1|			return result;  // bad extension data
 1202|       |
 1203|  4.75k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1204|  4.75k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1204:7): [True: 236, False: 4.51k]
  |  Branch (1204:61): [True: 0, False: 4.51k]
  ------------------
 1205|    236|			return result;  // bad extension data
 1206|       |
 1207|  4.51k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1208|  24.5k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1208:19): [True: 19.9k, False: 4.51k]
  ------------------
 1209|  19.9k|		{
 1210|  19.9k|			result.push_back(be16toh(*(uint16_t*)dataPtr));
 1211|  19.9k|			dataPtr += sizeof(uint16_t);
 1212|  19.9k|		}
 1213|       |
 1214|  4.51k|		return result;
 1215|  4.75k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1222|  2.61k|	{
 1223|  2.61k|		std::vector<uint8_t> result;
 1224|       |
 1225|  2.61k|		uint16_t extensionLength = getLength();
 1226|       |
 1227|  2.61k|		if (extensionLength < 1)
  ------------------
  |  Branch (1227:7): [True: 0, False: 2.61k]
  ------------------
 1228|      0|			return result;
 1229|       |
 1230|  2.61k|		uint8_t listLength = *getData();
 1231|       |
 1232|  2.61k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1232:7): [True: 6, False: 2.60k]
  ------------------
 1233|      6|			return result;  // bad extension data
 1234|       |
 1235|  2.60k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1236|  5.82k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1236:19): [True: 3.22k, False: 2.60k]
  ------------------
 1237|  3.22k|		{
 1238|  3.22k|			result.push_back(*dataPtr);
 1239|  3.22k|			dataPtr += sizeof(uint8_t);
 1240|  3.22k|		}
 1241|       |
 1242|  2.60k|		return result;
 1243|  2.61k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1281|   134k|	{
 1282|   134k|		m_Data = data;
 1283|   134k|		m_DataLen = dataLen;
 1284|   134k|		m_Container = container;
 1285|   134k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1289|   232k|	{
 1290|   232k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1290:7): [True: 98.1k, False: 134k]
  ------------------
 1291|  98.1k|			return nullptr;
 1292|       |
 1293|   134k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1294|       |
 1295|   134k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1295:7): [True: 134k, False: 134]
  |  Branch (1295:25): [True: 4.15k, False: 130k]
  |  Branch (1295:66): [True: 18.0k, False: 112k]
  ------------------
 1296|  22.1k|		{
 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|  22.1k|			return new SSLUnknownMessage(data, dataLen, container);
 1304|  22.1k|		}
 1305|       |
 1306|   112k|		switch (hsMsgHeader->handshakeType)
 1307|   112k|		{
 1308|  37.8k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1308:3): [True: 37.8k, False: 74.4k]
  ------------------
 1309|  37.8k|			return new SSLClientHelloMessage(data, dataLen, container);
 1310|  38.4k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1310:3): [True: 38.4k, False: 73.8k]
  ------------------
 1311|  38.4k|			return new SSLServerHelloMessage(data, dataLen, container);
 1312|  8.55k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1312:3): [True: 8.55k, False: 103k]
  ------------------
 1313|  8.55k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1314|  4.51k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1314:3): [True: 4.51k, False: 107k]
  ------------------
 1315|  4.51k|			return new SSLCertificateMessage(data, dataLen, container);
 1316|     13|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1316:3): [True: 13, False: 112k]
  ------------------
 1317|     13|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1318|      0|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 0, False: 112k]
  ------------------
 1319|      0|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1320|      0|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1320:3): [True: 0, False: 112k]
  ------------------
 1321|      0|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1322|  6.19k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 6.19k, False: 106k]
  ------------------
 1323|  6.19k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1324|  2.32k|		case SSL_FINISHED:
  ------------------
  |  Branch (1324:3): [True: 2.32k, False: 109k]
  ------------------
 1325|  2.32k|			return new SSLFinishedMessage(data, dataLen, container);
 1326|  13.4k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1326:3): [True: 13.4k, False: 98.9k]
  ------------------
 1327|  13.4k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1328|    761|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1328:3): [True: 761, False: 111k]
  ------------------
 1329|    761|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1330|    197|		default:
  ------------------
  |  Branch (1330:3): [True: 197, False: 112k]
  ------------------
 1331|    197|			return new SSLUnknownMessage(data, dataLen, container);
 1332|   112k|		}
 1333|   112k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1336|  6.82k|	{
 1337|  6.82k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1338|  6.82k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1339|  6.82k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1342|   291k|	{
 1343|   291k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|       |		// TODO: add handshakeLayer->length1 to the calculation
 1345|   291k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1346|   291k|		if (len > m_DataLen)
  ------------------
  |  Branch (1346:7): [True: 58.8k, False: 233k]
  ------------------
 1347|  58.8k|			return m_DataLen;
 1348|       |
 1349|   233k|		return len;
 1350|   291k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1353|  14.3k|	{
 1354|  14.3k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1354:7): [True: 0, False: 14.3k]
  ------------------
 1355|      0|			return false;
 1356|       |
 1357|  14.3k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1358|       |		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1359|  14.3k|		return len <= m_DataLen;
 1360|  14.3k|	}
_ZN4pcpp21SSLClientHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1367|  37.8k|	    : SSLHandshakeMessage(data, dataLen, container)
 1368|  37.8k|	{
 1369|  37.8k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1370|  37.8k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1371|  37.8k|		                               2 * sizeof(uint8_t);
 1372|  37.8k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1372:7): [True: 2.09k, False: 35.7k]
  ------------------
 1373|  2.09k|			return;
 1374|       |
 1375|  35.7k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1376|  35.7k|		uint16_t extensionLength = getExtensionsLength();
 1377|  35.7k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1378|       |
 1379|  35.7k|		size_t messageLen = getMessageLength();
 1380|       |
 1381|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1382|  35.7k|		uint8_t* extensionIt = extensionPos;
 1383|  35.7k|		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|  35.7k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1388|  35.7k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1388:7): [True: 11.5k, False: 24.2k]
  ------------------
 1389|  11.5k|		{
 1390|  11.5k|			extensionEndIt = endOfMessageIt;
 1391|  11.5k|		}
 1392|       |
 1393|  35.7k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1394|   388k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1394:10): [True: 374k, False: 14.1k]
  ------------------
 1395|   374k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1395:10): [True: 366k, False: 7.72k]
  ------------------
 1396|   366k|		{
 1397|   366k|			std::unique_ptr<SSLExtension> newExt;
 1398|       |
 1399|   366k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1400|   366k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1401|       |
 1402|   366k|			switch (sslExtType)
 1403|   366k|			{
 1404|  43.8k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1404:4): [True: 43.8k, False: 322k]
  ------------------
 1405|  43.8k|			{
 1406|  43.8k|				newExt =
 1407|  43.8k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1408|  43.8k|				break;
 1409|      0|			}
 1410|  10.7k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1410:4): [True: 10.7k, False: 355k]
  ------------------
 1411|  10.7k|			{
 1412|  10.7k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1413|  10.7k|				break;
 1414|      0|			}
 1415|  23.8k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1415:4): [True: 23.8k, False: 342k]
  ------------------
 1416|  23.8k|			{
 1417|  23.8k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1418|  23.8k|				break;
 1419|      0|			}
 1420|  13.1k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1420:4): [True: 13.1k, False: 353k]
  ------------------
 1421|  13.1k|			{
 1422|  13.1k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1423|  13.1k|				break;
 1424|      0|			}
 1425|   275k|			default:
  ------------------
  |  Branch (1425:4): [True: 275k, False: 91.5k]
  ------------------
 1426|   275k|			{
 1427|   275k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1428|   275k|			}
 1429|   366k|			}
 1430|       |
 1431|   366k|			if (newExt == nullptr)
  ------------------
  |  Branch (1431:8): [True: 13.8k, False: 352k]
  ------------------
 1432|  13.8k|			{
 1433|  13.8k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|  13.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  13.8k|	do                                                                                                                 \
  |  |  |  |  413|  13.8k|	{                                                                                                                  \
  |  |  |  |  414|  13.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  13.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.8k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 13.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  13.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE 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|  13.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 13.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1434|  13.8k|				                                                        << " skipping remaining extensions.");
 1435|  13.8k|				break;
 1436|  13.8k|			}
 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|   352k|			size_t newExtTotalLen = newExt->getTotalLength();
 1441|   352k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1441:8): [True: 0, False: 352k]
  ------------------
 1442|      0|			{
 1443|      0|				break;
 1444|      0|			}
 1445|       |
 1446|   352k|			m_ExtensionList.pushBack(std::move(newExt));
 1447|   352k|			std::advance(extensionIt, newExtTotalLen);
 1448|   352k|		}
 1449|  35.7k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1452|  13.6k|	{
 1453|       |		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1454|  13.6k|		return SSLVersion(handshakeVersion);
 1455|  13.6k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1458|  13.9M|	{
 1459|  13.9M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1459:7): [True: 1.25k, False: 13.9M]
  ------------------
 1460|  1.25k|			return 0;
 1461|       |
 1462|  13.9M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1463|  13.9M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1463:7): [True: 19, False: 13.9M]
  ------------------
 1464|     19|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1465|       |
 1466|  13.9M|		return val;
 1467|  13.9M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1470|  6.82k|	{
 1471|  6.82k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1471:7): [True: 2.45k, False: 4.37k]
  ------------------
 1472|  2.45k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1473|  4.37k|		else
 1474|  4.37k|			return nullptr;
 1475|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1478|  7.98M|	{
 1479|  7.98M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1480|  7.98M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1480:7): [True: 678, False: 7.98M]
  ------------------
 1481|    678|			return 0;
 1482|       |
 1483|  7.98M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1484|       |		return be16toh(cipherSuiteLen) / 2;
 1485|  7.98M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1488|  1.97M|	{
 1489|  1.97M|		bool isValid;
 1490|  1.97M|		uint16_t id = getCipherSuiteID(index, isValid);
 1491|  1.97M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1491:11): [True: 123k, False: 1.84M]
  ------------------
 1492|  1.97M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1495|  5.91M|	{
 1496|  5.91M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1496:7): [True: 0, False: 5.91M]
  |  Branch (1496:20): [True: 0, False: 5.91M]
  ------------------
 1497|      0|		{
 1498|      0|			isValid = false;
 1499|      0|			return 0;
 1500|      0|		}
 1501|       |
 1502|  5.91M|		size_t cipherSuiteStartOffset =
 1503|  5.91M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1504|  5.91M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1504:7): [True: 5.54M, False: 370k]
  ------------------
 1505|  5.54M|		{
 1506|  5.54M|			isValid = false;
 1507|  5.54M|			return 0;
 1508|  5.54M|		}
 1509|       |
 1510|   370k|		isValid = true;
 1511|   370k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1512|       |		return be16toh(*(cipherSuiteStartPos + index));
 1513|  5.91M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1516|  6.82k|	{
 1517|  6.82k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1518|  6.82k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1519|  6.82k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1519:7): [True: 295, False: 6.53k]
  ------------------
 1520|    295|			return 0xff;
 1521|       |
 1522|  6.53k|		uint8_t* pos = m_Data + offset;
 1523|  6.53k|		return *pos;
 1524|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1527|  6.82k|	{
 1528|  6.82k|		return m_ExtensionList.size();
 1529|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1532|  35.7k|	{
 1533|  35.7k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1534|  35.7k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1535|  35.7k|		                               2 * sizeof(uint8_t);
 1536|  35.7k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1536:7): [True: 0, False: 35.7k]
  ------------------
 1537|      0|			return 0;
 1538|       |
 1539|  35.7k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1540|       |		return be16toh(*(uint16_t*)extensionLengthPos);
 1541|  35.7k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1544|  61.1k|	{
 1545|  61.1k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1546|  61.1k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1549|  6.82k|	{
 1550|  6.82k|		size_t vecSize = m_ExtensionList.size();
 1551|  13.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1551:22): [True: 12.2k, False: 881]
  ------------------
 1552|  12.2k|		{
 1553|  12.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1554|  12.2k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1554:8): [True: 5.94k, False: 6.32k]
  ------------------
 1555|  5.94k|				return curElem;
 1556|  12.2k|		}
 1557|       |
 1558|    881|		return nullptr;
 1559|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1562|  6.82k|	{
 1563|  6.82k|		size_t vecSize = m_ExtensionList.size();
 1564|  13.1k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1564:22): [True: 12.2k, False: 881]
  ------------------
 1565|  12.2k|		{
 1566|  12.2k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1567|  12.2k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1567:8): [True: 5.94k, False: 6.32k]
  ------------------
 1568|  5.94k|				return curElem;
 1569|  12.2k|		}
 1570|       |
 1571|    881|		return nullptr;
 1572|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1575|  6.82k|	{
 1576|  6.82k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1577|       |
 1578|       |		// extract version
 1579|  6.82k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1580|       |
 1581|       |		// extract cipher suites
 1582|  6.82k|		int cipherSuiteCount = getCipherSuiteCount();
 1583|  1.98M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1583:19): [True: 1.97M, False: 6.82k]
  ------------------
 1584|  1.97M|		{
 1585|  1.97M|			bool isValid = false;
 1586|  1.97M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1587|  1.97M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1587:8): [True: 123k, False: 1.84M]
  |  Branch (1587:8): [True: 122k, False: 1.85M]
  |  Branch (1587:19): [True: 122k, False: 1.47k]
  ------------------
 1588|   122k|				result.cipherSuites.push_back(cipherSuiteID);
 1589|  1.97M|		}
 1590|       |
 1591|       |		// extract extensions
 1592|  6.82k|		int extensionCount = getExtensionCount();
 1593|  68.0k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1593:19): [True: 61.1k, False: 6.82k]
  ------------------
 1594|  61.1k|		{
 1595|  61.1k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1596|  61.1k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1596:8): [True: 1.51k, False: 59.6k]
  ------------------
 1597|  1.51k|				continue;
 1598|       |
 1599|  59.6k|			result.extensions.push_back(extensionType);
 1600|  59.6k|		}
 1601|       |
 1602|       |		// extract supported groups
 1603|  6.82k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1604|  6.82k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1604:7): [True: 4.75k, False: 2.07k]
  ------------------
 1605|  4.75k|		{
 1606|  4.75k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1607|  4.75k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1607:26): [True: 19.9k, False: 4.75k]
  ------------------
 1608|  19.9k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1608:9): [True: 19.4k, False: 523]
  ------------------
 1609|  19.4k|					result.supportedGroups.push_back(iter);
 1610|  4.75k|		}
 1611|       |
 1612|       |		// extract EC point formats
 1613|  6.82k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1614|  6.82k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1614:7): [True: 2.61k, False: 4.21k]
  ------------------
 1615|  2.61k|		{
 1616|  2.61k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1617|  2.61k|		}
 1618|       |
 1619|  6.82k|		return result;
 1620|  6.82k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1623|  13.8k|	{
 1624|  13.8k|		return "Client Hello message";
 1625|  13.8k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1632|  6.82k|	{
 1633|  6.82k|		std::stringstream tlsFingerprint;
 1634|       |
 1635|       |		// add version
 1636|  6.82k|		tlsFingerprint << tlsVersion << ",";
 1637|       |
 1638|       |		// add cipher suites
 1639|  6.82k|		bool firstCipher = true;
 1640|  6.82k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1640:25): [True: 122k, False: 6.82k]
  ------------------
 1641|   122k|		{
 1642|   122k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1642:23): [True: 6.68k, False: 115k]
  ------------------
 1643|   122k|			firstCipher = false;
 1644|   122k|		}
 1645|  6.82k|		tlsFingerprint << ",";
 1646|       |
 1647|       |		// add extensions
 1648|  6.82k|		bool firstExtension = true;
 1649|  6.82k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1649:25): [True: 59.6k, False: 6.82k]
  ------------------
 1650|  59.6k|		{
 1651|  59.6k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1651:23): [True: 6.40k, False: 53.2k]
  ------------------
 1652|  59.6k|			firstExtension = false;
 1653|  59.6k|		}
 1654|  6.82k|		tlsFingerprint << ",";
 1655|       |
 1656|       |		// add supported groups
 1657|  6.82k|		bool firstGroup = true;
 1658|  6.82k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1658:25): [True: 19.4k, False: 6.82k]
  ------------------
 1659|  19.4k|		{
 1660|  19.4k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1660:23): [True: 4.51k, False: 14.9k]
  ------------------
 1661|  19.4k|			firstGroup = false;
 1662|  19.4k|		}
 1663|  6.82k|		tlsFingerprint << ",";
 1664|       |
 1665|       |		// add EC point formats
 1666|  6.82k|		bool firstPointFormat = true;
 1667|  6.82k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1667:18): [True: 3.22k, False: 6.82k]
  ------------------
 1668|  3.22k|		{
 1669|  3.22k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1669:23): [True: 2.60k, False: 616]
  ------------------
 1670|  3.22k|			firstPointFormat = false;
 1671|  3.22k|		}
 1672|       |
 1673|  6.82k|		return tlsFingerprint.str();
 1674|  6.82k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1677|  6.82k|	{
 1678|  6.82k|		return toStringAndMD5().second;
 1679|  6.82k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1682|  6.82k|	{
 1683|  6.82k|		std::string str = toString();
 1684|  6.82k|		MD5 md5;
 1685|  6.82k|		return std::pair<std::string, std::string>(str, md5(str));
 1686|  6.82k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1693|  38.4k|	    : SSLHandshakeMessage(data, dataLen, container)
 1694|  38.4k|	{
 1695|  38.4k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1696|  38.4k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1697|  38.4k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1697:7): [True: 11.0k, False: 27.4k]
  ------------------
 1698|  11.0k|			return;
 1699|       |
 1700|  27.4k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1701|  27.4k|		uint16_t extensionLength = getExtensionsLength();
 1702|  27.4k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1703|  27.4k|		size_t messageLen = getMessageLength();
 1704|       |
 1705|  27.4k|		uint8_t* extensionIt = extensionPos;
 1706|  27.4k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1707|       |
 1708|  27.4k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1709|  27.4k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1709:7): [True: 13.3k, False: 14.1k]
  ------------------
 1710|  13.3k|		{
 1711|  13.3k|			extensionEndIt = endOfMessageIt;
 1712|  13.3k|		}
 1713|       |
 1714|  27.4k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1715|  69.9k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1715:10): [True: 42.7k, False: 27.1k]
  ------------------
 1716|  42.7k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1716:10): [True: 42.7k, False: 0]
  ------------------
 1717|  42.7k|		{
 1718|  42.7k|			std::unique_ptr<SSLExtension> newExt;
 1719|       |
 1720|  42.7k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1721|  42.7k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1722|       |
 1723|  42.7k|			switch (sslExtType)
 1724|  42.7k|			{
 1725|  3.74k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1725:4): [True: 3.74k, False: 39.0k]
  ------------------
 1726|  3.74k|			{
 1727|  3.74k|				newExt =
 1728|  3.74k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1729|  3.74k|				break;
 1730|      0|			}
 1731|  8.29k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1731:4): [True: 8.29k, False: 34.4k]
  ------------------
 1732|  8.29k|			{
 1733|  8.29k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1734|  8.29k|				break;
 1735|      0|			}
 1736|      0|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1736:4): [True: 0, False: 42.7k]
  ------------------
 1737|      0|			{
 1738|      0|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1739|      0|				break;
 1740|      0|			}
 1741|  4.45k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1741:4): [True: 4.45k, False: 38.3k]
  ------------------
 1742|  4.45k|			{
 1743|  4.45k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1744|  4.45k|				break;
 1745|      0|			}
 1746|  26.2k|			default:
  ------------------
  |  Branch (1746:4): [True: 26.2k, False: 16.4k]
  ------------------
 1747|  26.2k|			{
 1748|  26.2k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1749|  26.2k|			}
 1750|  42.7k|			}
 1751|       |
 1752|  42.7k|			if (newExt == nullptr)
  ------------------
  |  Branch (1752:8): [True: 330, False: 42.4k]
  ------------------
 1753|    330|			{
 1754|    330|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  425|    330|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|    330|	do                                                                                                                 \
  |  |  |  |  413|    330|	{                                                                                                                  \
  |  |  |  |  414|    330|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    330|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    330|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 330]
  |  |  |  |  ------------------
  |  |  |  |  416|    330|		{                                                                                                              \
  |  |  |  |  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|    330|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 330]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1755|    330|				                                                        << " skipping remaining extensions.");
 1756|    330|				break;
 1757|    330|			}
 1758|       |
 1759|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1760|       |			// and means that this extension (and packet) are malformed
 1761|  42.4k|			size_t newExtTotalLen = newExt->getTotalLength();
 1762|  42.4k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1762:8): [True: 0, False: 42.4k]
  ------------------
 1763|      0|			{
 1764|      0|				break;
 1765|      0|			}
 1766|       |
 1767|  42.4k|			m_ExtensionList.pushBack(std::move(newExt));
 1768|  42.4k|			std::advance(extensionIt, newExtTotalLen);
 1769|  42.4k|		}
 1770|  27.4k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1773|  9.51k|	{
 1774|  9.51k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1775|  9.51k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1775:7): [True: 2.27k, False: 7.23k]
  ------------------
 1776|  2.27k|		{
 1777|  2.27k|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1778|  2.27k|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1778:8): [True: 2.24k, False: 30]
  ------------------
 1779|  2.24k|				return supportedVersions[0];
 1780|  2.27k|		}
 1781|       |
 1782|  7.26k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1783|  7.26k|		return SSLVersion(handshakeVersion);
 1784|  9.51k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1786|  84.9k|	{
 1787|  84.9k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1787:7): [True: 842, False: 84.1k]
  ------------------
 1788|    842|			return 0;
 1789|       |
 1790|  84.1k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1791|  84.1k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1791:7): [True: 12.9k, False: 71.1k]
  ------------------
 1792|  12.9k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1793|       |
 1794|  71.1k|		return val;
 1795|  84.1k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1798|  4.75k|	{
 1799|  4.75k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1799:7): [True: 4.39k, False: 358]
  ------------------
 1800|  4.39k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1801|    358|		else
 1802|    358|			return nullptr;
 1803|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1806|  4.75k|	{
 1807|  4.75k|		bool isValid;
 1808|  4.75k|		uint16_t id = getCipherSuiteID(isValid);
 1809|  4.75k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1809:11): [True: 3.81k, False: 941]
  ------------------
 1810|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1813|  9.51k|	{
 1814|  9.51k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1815|  9.51k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1815:7): [True: 1.88k, False: 7.62k]
  ------------------
 1816|  1.88k|		{
 1817|  1.88k|			isValid = false;
 1818|  1.88k|			return 0;
 1819|  1.88k|		}
 1820|       |
 1821|  7.62k|		isValid = true;
 1822|  7.62k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1823|       |		return be16toh(*(cipherSuiteStartPos));
 1824|  9.51k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1827|  4.75k|	{
 1828|  4.75k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1829|  4.75k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1829:7): [True: 942, False: 3.81k]
  ------------------
 1830|    942|			return 0xff;
 1831|       |
 1832|  3.81k|		uint8_t* pos = m_Data + offset;
 1833|  3.81k|		return *pos;
 1834|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1837|  4.75k|	{
 1838|  4.75k|		return m_ExtensionList.size();
 1839|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1842|  27.4k|	{
 1843|  27.4k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1844|  27.4k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1845|  27.4k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1845:7): [True: 0, False: 27.4k]
  ------------------
 1846|      0|			return 0;
 1847|       |
 1848|  27.4k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1849|       |		return be16toh(*extensionLengthPos);
 1850|  27.4k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1853|  6.58k|	{
 1854|  6.58k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1854:7): [True: 0, False: 6.58k]
  |  Branch (1854:20): [True: 0, False: 6.58k]
  ------------------
 1855|      0|			return nullptr;
 1856|       |
 1857|  6.58k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1858|  6.58k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1861|  4.75k|	{
 1862|  4.75k|		size_t vecSize = m_ExtensionList.size();
 1863|  8.33k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1863:22): [True: 4.16k, False: 4.17k]
  ------------------
 1864|  4.16k|		{
 1865|  4.16k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1866|  4.16k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1866:8): [True: 583, False: 3.58k]
  ------------------
 1867|    583|				return curElem;
 1868|  4.16k|		}
 1869|       |
 1870|  4.17k|		return nullptr;
 1871|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1874|  4.75k|	{
 1875|  4.75k|		size_t vecSize = m_ExtensionList.size();
 1876|  8.33k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1876:22): [True: 4.16k, False: 4.17k]
  ------------------
 1877|  4.16k|		{
 1878|  4.16k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1879|  4.16k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1879:8): [True: 583, False: 3.58k]
  ------------------
 1880|    583|				return curElem;
 1881|  4.16k|		}
 1882|       |
 1883|  4.17k|		return nullptr;
 1884|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1887|  4.75k|	{
 1888|  4.75k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1889|       |
 1890|       |		// extract version
 1891|  4.75k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1892|       |
 1893|       |		// extract cipher suite
 1894|  4.75k|		bool isValid;
 1895|  4.75k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1896|  4.75k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1896:25): [True: 3.81k, False: 941]
  ------------------
 1897|       |
 1898|       |		// extract extensions
 1899|  4.75k|		int extensionCount = getExtensionCount();
 1900|  11.3k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1900:19): [True: 6.58k, False: 4.75k]
  ------------------
 1901|  6.58k|		{
 1902|  6.58k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1903|  6.58k|			result.extensions.push_back(extensionType);
 1904|  6.58k|		}
 1905|       |
 1906|  4.75k|		return result;
 1907|  4.75k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1910|  9.83k|	{
 1911|  9.83k|		return "Server Hello message";
 1912|  9.83k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1919|  4.75k|	{
 1920|  4.75k|		std::stringstream tlsFingerprint;
 1921|       |
 1922|       |		// add version and cipher suite
 1923|  4.75k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1924|       |
 1925|       |		// add extensions
 1926|  4.75k|		bool firstExtension = true;
 1927|  4.75k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1927:25): [True: 6.58k, False: 4.75k]
  ------------------
 1928|  6.58k|		{
 1929|  6.58k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1929:23): [True: 2.13k, False: 4.45k]
  ------------------
 1930|  6.58k|			firstExtension = false;
 1931|  6.58k|		}
 1932|       |
 1933|  4.75k|		return tlsFingerprint.str();
 1934|  4.75k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1937|  4.75k|	{
 1938|  4.75k|		return toStringAndMD5().second;
 1939|  4.75k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1942|  4.75k|	{
 1943|  4.75k|		std::string str = toString();
 1944|  4.75k|		MD5 md5;
 1945|  4.75k|		return std::pair<std::string, std::string>(str, md5(str));
 1946|  4.75k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1953|  4.51k|	    : SSLHandshakeMessage(data, dataLen, container)
 1954|  4.51k|	{
 1955|  4.51k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1955:7): [True: 0, False: 4.51k]
  ------------------
 1956|      0|			return;
 1957|       |
 1958|  4.51k|		size_t messageLen = getMessageLength();
 1959|       |		// read certificates length
 1960|       |		// TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1961|  4.51k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1962|  4.51k|		uint16_t certificatesLength = be16toh(*(uint16_t*)(curPos));
 1963|  4.51k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1963:7): [True: 0, False: 4.51k]
  ------------------
 1964|      0|			return;
 1965|       |
 1966|       |		// advance to position of first certificate
 1967|  4.51k|		curPos += sizeof(uint16_t);
 1968|       |
 1969|  10.0k|		while (true)
  ------------------
  |  Branch (1969:10): [True: 10.0k, Folded]
  ------------------
 1970|  10.0k|		{
 1971|       |			// try to read certificate length (3B)
 1972|       |			// TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1973|  10.0k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1973:8): [True: 4.51k, False: 5.56k]
  ------------------
 1974|  4.51k|				break;
 1975|       |
 1976|       |			// read certificate length
 1977|  5.56k|			curPos += sizeof(uint8_t);
 1978|  5.56k|			uint16_t certificateLength = be16toh(*(uint16_t*)(curPos));
 1979|       |
 1980|       |			// advance to start position of certificate
 1981|  5.56k|			curPos += sizeof(uint16_t);
 1982|       |
 1983|       |			// if packet doesn't contain the full certificate, read only what you got from current position till the
 1984|       |			// end of the packet
 1985|  5.56k|			bool certificateFull = true;
 1986|  5.56k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1986:8): [True: 4.43k, False: 1.13k]
  ------------------
 1987|  4.43k|			{
 1988|  4.43k|				certificateLength = messageLen - (curPos - data);
 1989|  4.43k|				certificateFull = false;
 1990|  4.43k|			}
 1991|       |
 1992|  5.56k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  425|  5.56k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  5.56k|	do                                                                                                                 \
  |  |  |  |  413|  5.56k|	{                                                                                                                  \
  |  |  |  |  414|  5.56k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  5.56k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.56k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 5.56k]
  |  |  |  |  ------------------
  |  |  |  |  416|  5.56k|		{                                                                                                              \
  |  |  |  |  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|  5.56k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 5.56k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1993|  5.56k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 1994|  5.56k|			m_CertificateList.pushBack(newCert);
 1995|       |
 1996|  5.56k|			curPos += certificateLength;
 1997|  5.56k|		}
 1998|  4.51k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2001|  1.52k|	{
 2002|  1.52k|		return "Certificate message";
 2003|  1.52k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2027|  1.53k|	{
 2028|  1.53k|		return "Hello Request message";
 2029|  1.53k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2036|  3.28k|	{
 2037|  3.28k|		return "Server Hello Done message";
 2038|  3.28k|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2062|      4|	{
 2063|      4|		return "Server Key Exchange message";
 2064|      4|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2088|  1.83k|	{
 2089|  1.83k|		return "Client Key Exchange message";
 2090|  1.83k|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2210|    108|	{
 2211|    108|		return "Finished message";
 2212|    108|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2236|    242|	{
 2237|    242|		return "New Session Ticket message";
 2238|    242|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2252|  44.7k|	{
 2253|       |		// if message type is unknown, it may be some encrypted message so message length isn't necessarily written
 2254|       |		// in clear. So in this case assume message is in length of all remaining data
 2255|  44.7k|		return m_DataLen;
 2256|  44.7k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2259|  5.72k|	{
 2260|  5.72k|		return "Unknown message";
 2261|  5.72k|	}
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.82k|	{
  695|  6.82k|		unsigned h = FIRST_HASH;
  ------------------
  |  |  691|  6.82k|#define FIRST_HASH 37  ///< also prime
  ------------------
  696|   150k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 143k, False: 6.82k]
  ------------------
  697|   143k|		{
  698|   143k|			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  688|   143k|#define A 54059        ///< a prime
  ------------------
              			h = (h * A) ^ (str[i] * B);
  ------------------
  |  |  689|   143k|#define B 76963        ///< another prime
  ------------------
  699|   143k|		}
  700|  6.82k|		return h;
  701|  6.82k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   666k|	{
   16|       |		// check the port map first
   17|   666k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 541k, False: 124k]
  |  Branch (17:23): [True: 370k, False: 170k]
  |  Branch (17:46): [True: 239k, False: 131k]
  ------------------
   18|   239k|			return false;
   19|       |
   20|   427k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 3.38k, False: 423k]
  ------------------
   21|  3.38k|			return false;
   22|       |
   23|   423k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   423k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 2.65k, False: 421k]
  ------------------
   27|  2.65k|			return false;
   28|       |
   29|   421k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 6.96k, False: 414k]
  |  Branch (29:39): [True: 40.1k, False: 374k]
  ------------------
   30|  47.0k|			return false;
   31|       |
   32|   374k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   374k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 11.0k, False: 362k]
  |  Branch (34:46): [True: 303k, False: 59.7k]
  ------------------
   35|  59.7k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 20, False: 59.6k]
  |  Branch (35:46): [True: 46.3k, False: 13.3k]
  ------------------
   36|  13.3k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 11.6k, False: 1.65k]
  ------------------
   37|   372k|			return true;
   38|  1.65k|		else
   39|  1.65k|			return false;
   40|   374k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   372k|	{
   44|   372k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 372k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   372k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   372k|		switch (recordLayer->recordType)
   51|   372k|		{
   52|  98.1k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 98.1k, False: 274k]
  ------------------
   53|  98.1k|		{
   54|  98.1k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  9.96k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 9.96k, False: 362k]
  ------------------
   58|  9.96k|		{
   59|  9.96k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  33.9k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 33.9k, False: 338k]
  ------------------
   63|  33.9k|		{
   64|  33.9k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|   230k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 230k, False: 141k]
  ------------------
   68|   230k|		{
   69|   230k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 372k]
  ------------------
   73|      0|			return nullptr;
   74|   372k|		}
   75|   372k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|   125k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|   125k|		return SSLVersion(recordVersion);
   81|   125k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   435k|	{
   90|   435k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   435k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 45.0k, False: 390k]
  ------------------
   92|  45.0k|			return m_DataLen;
   93|   390k|		return len;
   94|   435k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   372k|	{
   98|   372k|		size_t headerLen = getHeaderLen();
   99|   372k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 247k, False: 124k]
  ------------------
  100|   247k|			return;
  101|       |
  102|   124k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 121k, False: 3.42k]
  ------------------
  103|   121k|		{
  104|   121k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|   121k|		}
  106|   124k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  30.1k|	{
  114|  30.1k|		std::stringstream result;
  115|  30.1k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|  68.0k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 37.9k, False: 30.1k]
  ------------------
  117|  37.9k|		{
  118|  37.9k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 28.6k, False: 9.22k]
  ------------------
  119|  28.6k|				result << " " << m_MessageList.at(i)->toString();
  120|  9.22k|			else
  121|  9.22k|				result << ", " << m_MessageList.at(i)->toString();
  122|  37.9k|		}
  123|  30.1k|		return result.str();
  124|  30.1k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|  98.1k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|  98.1k|	{
  129|  98.1k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|  98.1k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|  98.1k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|  98.1k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 25.7k, False: 72.3k]
  ------------------
  134|  25.7k|		{
  135|  25.7k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 25.7k, False: 0]
  ------------------
  136|  25.7k|		}
  137|       |
  138|  98.1k|		size_t curPosIndex = 0;
  139|   232k|		while (true)
  ------------------
  |  Branch (139:10): [True: 232k, Folded]
  ------------------
  140|   232k|		{
  141|   232k|			SSLHandshakeMessage* message =
  142|   232k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   232k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 98.1k, False: 134k]
  ------------------
  144|  98.1k|				break;
  145|       |
  146|   134k|			m_MessageList.pushBack(message);
  147|   134k|			curPos += message->getMessageLength();
  148|   134k|			curPosIndex += message->getMessageLength();
  149|   134k|		}
  150|  98.1k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  9.83k|	{
  166|  9.83k|		std::stringstream result;
  167|  9.83k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  9.83k|		return result.str();
  169|  9.83k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  2.86k|	{
  177|  2.86k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  178|  2.86k|		uint8_t alertLevel = *pos;
  179|  2.86k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (179:7): [True: 1.38k, False: 1.47k]
  |  Branch (179:48): [True: 624, False: 850]
  ------------------
  180|  2.01k|			return (SSLAlertLevel)alertLevel;
  181|    850|		else
  182|    850|			return SSL_ALERT_LEVEL_ENCRYPTED;
  183|  2.86k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  227|  2.86k|	{
  228|  2.86k|		std::stringstream result;
  229|  2.86k|		result << getRecordVersion().toString(true) << " Layer, ";
  230|  2.86k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (230:7): [True: 850, False: 2.01k]
  ------------------
  231|    850|			result << "Encrypted Alert";
  232|  2.01k|		else
  233|       |			// TODO: add alert level and description here
  234|  2.01k|			result << "Alert";
  235|  2.86k|		return result.str();
  236|  2.86k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  260|  82.6k|	{
  261|  82.6k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  262|  82.6k|	}

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

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

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

_ZN4pcpp9Sll2Layer24getLinkLayerAsMacAddressEv:
   49|  1.88k|	{
   50|  1.88k|		const uint8_t* data = getLinkLayerAddr();
   51|  1.88k|		uint8_t dataLen = getLinkLayerAddrLen();
   52|  1.88k|		if (data == nullptr || dataLen == 0 || dataLen > 8)
  ------------------
  |  Branch (52:7): [True: 0, False: 1.88k]
  |  Branch (52:26): [True: 182, False: 1.70k]
  |  Branch (52:42): [True: 1.40k, False: 306]
  ------------------
   53|  1.58k|		{
   54|  1.58k|			return MacAddress::Zero;
   55|  1.58k|		}
   56|    306|		return MacAddress(data);
   57|  1.88k|	}
_ZN4pcpp9Sll2Layer14parseNextLayerEv:
   67|  7.79k|	{
   68|  7.79k|		if (m_DataLen <= sizeof(sll2_header))
  ------------------
  |  Branch (68:7): [True: 0, False: 7.79k]
  ------------------
   69|      0|			return;
   70|       |
   71|  7.79k|		uint8_t* payload = m_Data + sizeof(sll2_header);
   72|  7.79k|		size_t payloadLen = m_DataLen - sizeof(sll2_header);
   73|       |
   74|  7.79k|		sll2_header* hdr = getSll2Header();
   75|  7.79k|		switch (be16toh(hdr->protocol_type))
   76|  7.79k|		{
   77|      0|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|      0|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (77:3): [True: 0, False: 7.79k]
  ------------------
   78|      0|		{
   79|      0|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   80|      0|			break;
   81|      0|		}
   82|      0|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|      0|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (82:3): [True: 0, False: 7.79k]
  ------------------
   83|      0|		{
   84|      0|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   85|      0|			break;
   86|      0|		}
   87|      0|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|      0|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (87:3): [True: 0, False: 7.79k]
  ------------------
   88|      0|		{
   89|      0|			constructNextLayer<ArpLayer>(payload, payloadLen);
   90|      0|			break;
   91|      0|		}
   92|      0|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|      0|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (92:3): [True: 0, False: 7.79k]
  ------------------
   93|  5.65k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  5.65k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (93:3): [True: 5.65k, False: 2.13k]
  ------------------
   94|  5.65k|		{
   95|  5.65k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   96|  5.65k|			break;
   97|      0|		}
   98|    128|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|    128|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (98:3): [True: 128, False: 7.66k]
  ------------------
   99|    128|		{
  100|    128|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
  101|    128|			break;
  102|      0|		}
  103|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (103:3): [True: 0, False: 7.79k]
  ------------------
  104|      0|		{
  105|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
  106|      0|			break;
  107|      0|		}
  108|      0|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|      0|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (108:3): [True: 0, False: 7.79k]
  ------------------
  109|      0|		{
  110|      0|			constructNextLayer<MplsLayer>(payload, payloadLen);
  111|      0|			break;
  112|      0|		}
  113|      0|		case Sll2ProtoTypeLLC:
  ------------------
  |  Branch (113:3): [True: 0, False: 7.79k]
  ------------------
  114|      0|		{
  115|      0|			tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  116|      0|			break;
  117|      0|		}
  118|  2.01k|		default:
  ------------------
  |  Branch (118:3): [True: 2.01k, False: 5.78k]
  ------------------
  119|  2.01k|		{
  120|  2.01k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  121|  2.01k|			break;
  122|      0|		}
  123|  7.79k|		}
  124|  7.79k|	}
_ZN4pcpp9Sll2Layer22computeCalculateFieldsEv:
  127|  1.88k|	{
  128|  1.88k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (128:7): [True: 0, False: 1.88k]
  ------------------
  129|      0|			return;
  130|       |
  131|  1.88k|		sll2_header* hdr = getSll2Header();
  132|  1.88k|		switch (m_NextLayer->getProtocol())
  133|  1.88k|		{
  134|      0|		case IPv4:
  ------------------
  |  Branch (134:3): [True: 0, False: 1.88k]
  ------------------
  135|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  136|      0|			break;
  137|      0|		case IPv6:
  ------------------
  |  Branch (137:3): [True: 0, False: 1.88k]
  ------------------
  138|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  139|      0|			break;
  140|      0|		case ARP:
  ------------------
  |  Branch (140:3): [True: 0, False: 1.88k]
  ------------------
  141|      0|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  142|      0|			break;
  143|  1.18k|		case VLAN:
  ------------------
  |  Branch (143:3): [True: 1.18k, False: 702]
  ------------------
  144|  1.18k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  145|  1.18k|			break;
  146|      0|		case LLC:
  ------------------
  |  Branch (146:3): [True: 0, False: 1.88k]
  ------------------
  147|      0|			hdr->protocol_type = htobe16(Sll2ProtoTypeLLC);
  148|      0|			break;
  149|    702|		default:
  ------------------
  |  Branch (149:3): [True: 702, False: 1.18k]
  ------------------
  150|    702|			return;
  151|  1.88k|		}
  152|  1.88k|	}
_ZN4pcpp9Sll2Layer11isDataValidEPKhm:
  155|  7.94k|	{
  156|  7.94k|		return data && dataLen >= sizeof(sll2_header);
  ------------------
  |  Branch (156:10): [True: 7.94k, False: 0]
  |  Branch (156:18): [True: 7.79k, False: 148]
  ------------------
  157|  7.94k|	}
_ZNK4pcpp9Sll2Layer8toStringEv:
  160|  3.77k|	{
  161|  3.77k|		return "Linux cooked header v2";
  162|  3.77k|	}
_ZNK4pcpp9Sll2Layer15getProtocolTypeEv:
  165|  1.88k|	{
  166|       |		return be16toh(getSll2Header()->protocol_type);
  167|  1.88k|	}
_ZNK4pcpp9Sll2Layer17getInterfaceIndexEv:
  175|  1.88k|	{
  176|       |		return be32toh(getSll2Header()->interface_index);
  177|  1.88k|	}
_ZNK4pcpp9Sll2Layer13getArphrdTypeEv:
  185|  1.88k|	{
  186|       |		return be16toh(getSll2Header()->ARPHRD_type);
  187|  1.88k|	}
_ZNK4pcpp9Sll2Layer13getPacketTypeEv:
  195|  1.88k|	{
  196|  1.88k|		return getSll2Header()->packet_type;
  197|  1.88k|	}
_ZNK4pcpp9Sll2Layer19getLinkLayerAddrLenEv:
  205|  1.88k|	{
  206|  1.88k|		return getSll2Header()->link_layer_addr_len;
  207|  1.88k|	}
_ZNK4pcpp9Sll2Layer16getLinkLayerAddrEv:
  210|  1.88k|	{
  211|  1.88k|		return getSll2Header()->link_layer_addr;
  212|  1.88k|	}

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

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   47|  58.4k|	{
   48|       |		// Ideas taken from wireshark some ip dissector
   49|  58.4k|		const size_t headerLen = sizeof(someiphdr);
   50|  58.4k|		if (dataLen < headerLen)
  ------------------
  |  Branch (50:7): [True: 256, False: 58.1k]
  ------------------
   51|    256|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   52|       |
   53|  58.1k|		uint32_t lengthBE = 0;
   54|  58.1k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   55|  58.1k|		uint32_t length = be32toh(lengthBE);
   56|  58.1k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (56:7): [True: 88, False: 58.0k]
  |  Branch (56:23): [True: 3.36k, False: 54.7k]
  ------------------
   57|  3.44k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   58|       |
   59|  54.7k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (59:7): [True: 169, False: 54.5k]
  ------------------
   60|    169|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   61|       |
   62|  54.5k|		someiphdr* hdr = (someiphdr*)data;
   63|       |
   64|  54.5k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   65|  54.5k|		{
   66|    668|		case MsgType::REQUEST:
  ------------------
  |  Branch (66:3): [True: 668, False: 53.8k]
  ------------------
   67|    668|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (67:3): [True: 0, False: 54.5k]
  ------------------
   68|  33.5k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (68:3): [True: 32.8k, False: 21.7k]
  ------------------
   69|  33.5k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (69:3): [True: 0, False: 54.5k]
  ------------------
   70|  52.5k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (70:3): [True: 19.0k, False: 35.5k]
  ------------------
   71|  52.5k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (71:3): [True: 0, False: 54.5k]
  ------------------
   72|  54.4k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (72:3): [True: 1.93k, False: 52.6k]
  ------------------
   73|  54.4k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (73:3): [True: 0, False: 54.5k]
  ------------------
   74|  54.4k|		case MsgType::ERRORS:
  ------------------
  |  Branch (74:3): [True: 0, False: 54.5k]
  ------------------
   75|  54.4k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (75:3): [True: 0, False: 54.5k]
  ------------------
   76|  54.4k|			break;
   77|     75|		default:
  ------------------
  |  Branch (77:3): [True: 75, False: 54.4k]
  ------------------
   78|     75|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   79|  54.5k|		}
   80|       |
   81|  54.4k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (81:7): [True: 52.5k, False: 1.95k]
  |  Branch (81:44): [True: 52.1k, False: 310]
  ------------------
   82|  52.1k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (82:7): [True: 40.9k, False: 11.2k]
  ------------------
   83|  40.9k|		{
   84|  40.9k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   85|  40.9k|		}
   86|  13.4k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (86:12): [True: 0, False: 13.4k]
  ------------------
   87|      0|		{
   88|      0|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   89|      0|		}
   90|  13.4k|		else
   91|  13.4k|		{
   92|  13.4k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   93|  13.4k|		}
   94|  54.4k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   97|   676k|	{
   98|   676k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (98:10): [True: 55.6k, False: 620k]
  ------------------
   99|   620k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (99:10): [True: 0, False: 620k]
  ------------------
  100|   620k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  101|   676k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  138|  5.26k|	{
  139|       |		return be16toh(getSomeIpHeader()->serviceID);
  140|  5.26k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  148|  5.26k|	{
  149|       |		return be16toh(getSomeIpHeader()->methodID);
  150|  5.26k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  158|  70.5k|	{
  159|       |		return be32toh(getSomeIpHeader()->length);
  160|  70.5k|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  259|  54.4k|	{
  260|  54.4k|		size_t headerLen = getHeaderLen();
  261|  54.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (261:7): [True: 51.7k, False: 2.71k]
  ------------------
  262|  51.7k|			return;
  263|       |
  264|  2.71k|		uint8_t* payload = m_Data + headerLen;
  265|  2.71k|		size_t payloadLen = m_DataLen - headerLen;
  266|       |
  267|  2.71k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  268|  2.71k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  271|  5.26k|	{
  272|  5.26k|		std::stringstream dataStream;
  273|       |
  274|  5.26k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  275|  5.26k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  276|       |
  277|  5.26k|		return dataStream.str();
  278|  5.26k|	}

_ZN4pcpp14SomeIpSdOptionD2Ev:
   14|  10.4k|	{
   15|  10.4k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (15:7): [True: 0, False: 10.4k]
  ------------------
   16|      0|			delete[] m_ShadowData;
   17|  10.4k|	}
_ZNK4pcpp14SomeIpSdOption7getTypeEv:
   20|  5.76k|	{
   21|  5.76k|		return static_cast<OptionType>(getSomeIpSdOptionHeader()->type);
   22|  5.76k|	}
_ZNK4pcpp14SomeIpSdOption10getDataPtrEv:
   25|  22.9k|	{
   26|  22.9k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (26:7): [True: 22.9k, False: 0]
  ------------------
   27|  22.9k|			return m_DataContainer->getDataPtr(m_Offset);
   28|       |
   29|      0|		return m_ShadowData;
   30|  22.9k|	}
_ZNK4pcpp14SomeIpSdOption23getSomeIpSdOptionHeaderEv:
   33|  5.76k|	{
   34|  5.76k|		return (someipsdhdroptionsbase*)getDataPtr();
   35|  5.76k|	}
_ZN4pcpp18SomeIpSdIPv4OptionC2EPKNS_14IDataContainerEm:
   75|  10.4k|	    : SomeIpSdOption(dataContainer, offset)
   76|  10.4k|	{
   77|  10.4k|		m_DataLen = sizeof(someipsdhdroptionsipv4);
   78|  10.4k|	}
_ZNK4pcpp18SomeIpSdIPv4Option12getIpAddressEv:
   81|  5.73k|	{
   82|  5.73k|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   83|  5.73k|		IPv4Address ipAddr(hdr->ipv4Address);
   84|       |
   85|  5.73k|		return ipAddr;
   86|  5.73k|	}
_ZNK4pcpp18SomeIpSdIPv4Option7getPortEv:
   89|  5.73k|	{
   90|  5.73k|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   91|       |		return be16toh(hdr->portNumber);
   92|  5.73k|	}
_ZNK4pcpp18SomeIpSdIPv4Option11getProtocolEv:
   95|  5.73k|	{
   96|  5.73k|		someipsdhdroptionsipv4* hdr = (someipsdhdroptionsipv4*)getDataPtr();
   97|  5.73k|		return hdr->l4Protocol;
   98|  5.73k|	}
_ZN4pcpp27SomeIpSdLoadBalancingOptionC2EPKNS_14IDataContainerEm:
  195|     32|	    : SomeIpSdOption(dataContainer, offset)
  196|     32|	{
  197|     32|		m_DataLen = sizeof(someipsdhdroptionsload);
  198|     32|	}
_ZN4pcpp13SomeIpSdEntryC2EPKNS_13SomeIpSdLayerEm:
  230|  8.30k|	    : m_Layer(pSomeIpSdLayer), m_Offset(offset), m_ShadowData(nullptr)
  231|  8.30k|	{
  232|  8.30k|		EntryType entryType;
  233|       |
  234|  8.30k|		someipsdhdrentry* hdr = getSomeIpSdEntryHeader();
  235|  8.30k|		TypeInternal internalType = static_cast<TypeInternal>(hdr->type);
  236|  8.30k|		auto ttl = getTtl();
  237|       |
  238|  8.30k|		switch (internalType)
  239|  8.30k|		{
  240|    142|		case SomeIpSdEntry::TypeInternal::FindService_Internal:
  ------------------
  |  Branch (240:3): [True: 142, False: 8.16k]
  ------------------
  241|    142|			entryType = SomeIpSdEntry::EntryType::FindService;
  242|    142|			break;
  243|  2.14k|		case SomeIpSdEntry::TypeInternal::OfferService_Internal:
  ------------------
  |  Branch (243:3): [True: 2.14k, False: 6.16k]
  ------------------
  244|  2.14k|			if (ttl == 0)
  ------------------
  |  Branch (244:8): [True: 2.09k, False: 49]
  ------------------
  245|  2.09k|			{
  246|  2.09k|				entryType = EntryType::StopOfferService;
  247|  2.09k|			}
  248|     49|			else
  249|     49|			{
  250|     49|				entryType = EntryType::OfferService;
  251|     49|			}
  252|  2.14k|			break;
  253|  4.14k|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroup_Internal:
  ------------------
  |  Branch (253:3): [True: 4.14k, False: 4.16k]
  ------------------
  254|  4.14k|			if (ttl == 0)
  ------------------
  |  Branch (254:8): [True: 2.47k, False: 1.67k]
  ------------------
  255|  2.47k|			{
  256|  2.47k|				entryType = EntryType::StopSubscribeEventgroup;
  257|  2.47k|			}
  258|  1.67k|			else
  259|  1.67k|			{
  260|  1.67k|				entryType = EntryType::SubscribeEventgroup;
  261|  1.67k|			}
  262|  4.14k|			break;
  263|    451|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroupAck_Internal:
  ------------------
  |  Branch (263:3): [True: 451, False: 7.85k]
  ------------------
  264|    451|			if (ttl == 0)
  ------------------
  |  Branch (264:8): [True: 0, False: 451]
  ------------------
  265|      0|			{
  266|      0|				entryType = EntryType::SubscribeEventgroupNack;
  267|      0|			}
  268|    451|			else
  269|    451|			{
  270|    451|				entryType = EntryType::SubscribeEventgroupAck;
  271|    451|			}
  272|    451|			break;
  273|  1.42k|		default:
  ------------------
  |  Branch (273:3): [True: 1.42k, False: 6.88k]
  ------------------
  274|  1.42k|			entryType = EntryType::UnknownEntryType;
  275|  1.42k|			break;
  276|  8.30k|		}
  277|       |
  278|  8.30k|		m_EntryType = entryType;
  279|  8.30k|	}
_ZN4pcpp13SomeIpSdEntryD2Ev:
  282|  8.30k|	{
  283|  8.30k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (283:7): [True: 0, False: 8.30k]
  ------------------
  284|      0|			delete[] m_ShadowData;
  285|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry10getDataPtrEv:
  288|  74.7k|	{
  289|  74.7k|		if (m_Layer != nullptr)
  ------------------
  |  Branch (289:7): [True: 74.7k, False: 0]
  ------------------
  290|  74.7k|			return m_Layer->getDataPtr(m_Offset);
  291|       |
  292|      0|		return m_ShadowData;
  293|  74.7k|	}
_ZNK4pcpp13SomeIpSdEntry22getSomeIpSdEntryHeaderEv:
  296|  74.7k|	{
  297|  74.7k|		return (someipsdhdrentry*)getDataPtr();
  298|  74.7k|	}
_ZNK4pcpp13SomeIpSdEntry13getNumOptionsEv:
  301|  8.30k|	{
  302|  8.30k|		auto* hdr = getSomeIpSdEntryHeader();
  303|  8.30k|		return hdr->nrOpt1 + hdr->nrOpt2;
  304|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry12getServiceIdEv:
  307|  8.30k|	{
  308|       |		return be16toh(getSomeIpSdEntryHeader()->serviceID);
  309|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry13getInstanceIdEv:
  317|  8.30k|	{
  318|       |		return be16toh(getSomeIpSdEntryHeader()->instanceID);
  319|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry15getMajorVersionEv:
  327|  8.30k|	{
  328|       |		return (be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & ~SOMEIPSD_HDR_ENTRY_MASK_TTL) >> 24;
  329|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry6getTtlEv:
  339|  8.30k|	{
  340|       |		return be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & SOMEIPSD_HDR_ENTRY_MASK_TTL;
  341|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry15getMinorVersionEv:
  352|  8.30k|	{
  353|       |		return be32toh(getSomeIpSdEntryHeader()->data);
  354|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry10getCounterEv:
  362|  8.30k|	{
  363|       |		return (uint8_t)((be32toh(getSomeIpSdEntryHeader()->data) >> 16) & 0x0F);
  364|  8.30k|	}
_ZNK4pcpp13SomeIpSdEntry15getEventgroupIdEv:
  373|  8.30k|	{
  374|       |		return (uint16_t)(be32toh(getSomeIpSdEntryHeader()->data) & 0x0000FFFF);
  375|  8.30k|	}
_ZN4pcpp13SomeIpSdLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  433|  40.9k|	    : SomeIpLayer(data, dataLen, prevLayer, packet)
  434|  40.9k|	{
  435|  40.9k|		countOptions(m_NumOptions, data);
  436|  40.9k|	}
_ZNK4pcpp13SomeIpSdLayer8getFlagsEv:
  461|  8.17k|	{
  462|  8.17k|		someipsdhdr* hdr = (someipsdhdr*)m_Data;
  463|  8.17k|		return hdr->flags;
  464|  8.17k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumEntriesEv:
  473|  24.5k|	{
  474|  24.5k|		return (uint32_t)(getLenEntries() / sizeof(SomeIpSdEntry::someipsdhdrentry));
  475|  24.5k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumOptionsEv:
  478|  16.3k|	{
  479|  16.3k|		return m_NumOptions;
  480|  16.3k|	}
_ZNK4pcpp13SomeIpSdLayer10getEntriesEv:
  483|  8.17k|	{
  484|  8.17k|		size_t remainingLen = getLenEntries();
  485|  8.17k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t);
  486|       |
  487|  8.17k|		EntriesVec vecEntries;
  488|  8.17k|		EntryPtr entry;
  489|       |
  490|  16.4k|		while (remainingLen > 0)
  ------------------
  |  Branch (490:10): [True: 8.30k, False: 8.17k]
  ------------------
  491|  8.30k|		{
  492|       |			// Ensure there is enough remaining length for a new entry
  493|  8.30k|			if (remainingLen < sizeof(SomeIpSdEntry::someipsdhdrentry))
  ------------------
  |  Branch (493:8): [True: 0, False: 8.30k]
  ------------------
  494|      0|			{
  495|      0|				break;
  496|      0|			}
  497|  8.30k|			entry = new SomeIpSdEntry(this, offset);
  498|       |
  499|  8.30k|			size_t entryLen = entry->getLength();
  500|  8.30k|			remainingLen -= entryLen;
  501|  8.30k|			offset += entryLen;
  502|       |
  503|  8.30k|			vecEntries.push_back(entry);
  504|  8.30k|		}
  505|       |
  506|  8.17k|		return vecEntries;
  507|  8.17k|	};
_ZNK4pcpp13SomeIpSdLayer10getOptionsEv:
  510|  8.17k|	{
  511|  8.17k|		OptionsVec vecOptions;
  512|  8.17k|		OptionPtr option;
  513|       |
  514|  8.17k|		size_t remainingLen = getLenOptions();
  515|  8.17k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  516|       |
  517|  16.3k|		while (remainingLen > 0)
  ------------------
  |  Branch (517:10): [True: 8.16k, False: 8.17k]
  ------------------
  518|  8.16k|		{
  519|  8.16k|			SomeIpSdOption::someipsdhdroptionsbase* hdr = (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  520|  8.16k|			SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdr->type);
  521|       |
  522|  8.16k|			option = parseOption(optionType, offset);
  523|       |
  524|  8.16k|			if (option != nullptr)
  ------------------
  |  Branch (524:8): [True: 5.76k, False: 2.40k]
  ------------------
  525|  5.76k|			{
  526|  5.76k|				vecOptions.push_back(std::move(option));
  527|  5.76k|			}
  528|       |
  529|  8.16k|			size_t optionLen = be16toh(hdr->length) + 3;
  530|  8.16k|			remainingLen -= optionLen;
  531|  8.16k|			offset += optionLen;
  532|  8.16k|		}
  533|       |
  534|  8.17k|		return vecOptions;
  535|  8.17k|	}
_ZNK4pcpp13SomeIpSdLayer19getOptionsFromEntryEj:
  538|  8.17k|	{
  539|  8.17k|		OptionsVec vecOptions;
  540|  8.17k|		OptionPtr option;
  541|       |
  542|  8.17k|		if (index >= getNumEntries())
  ------------------
  |  Branch (542:7): [True: 0, False: 8.17k]
  ------------------
  543|      0|			return vecOptions;
  544|       |
  545|  8.17k|		size_t remainingLen = getLenOptions();
  546|  8.17k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  547|       |
  548|  8.17k|		size_t offsetToEntry = sizeof(someipsdhdr) + sizeof(uint32_t) + index * sizeof(SomeIpSdEntry::someipsdhdrentry);
  549|  8.17k|		SomeIpSdEntry::someipsdhdrentry* hdrEntry = (SomeIpSdEntry::someipsdhdrentry*)(m_Data + offsetToEntry);
  550|  8.17k|		uint8_t startIdxRun1 = hdrEntry->indexFirstOption;
  551|  8.17k|		uint8_t lenRun1 = hdrEntry->nrOpt1;
  552|  8.17k|		uint8_t startIdxRun2 = hdrEntry->indexSecondOption;
  553|  8.17k|		uint8_t lenRun2 = hdrEntry->nrOpt2;
  554|       |
  555|  8.17k|		int idx = 0;
  556|       |
  557|  16.3k|		while (remainingLen > 0)
  ------------------
  |  Branch (557:10): [True: 8.16k, False: 8.17k]
  ------------------
  558|  8.16k|		{
  559|  8.16k|			SomeIpSdOption::someipsdhdroptionsbase* hdrOption =
  560|  8.16k|			    (SomeIpSdOption::someipsdhdroptionsbase*)(m_Data + offset);
  561|       |
  562|  8.16k|			if (((idx >= startIdxRun1) && (idx < (startIdxRun1 + lenRun1))) ||
  ------------------
  |  Branch (562:9): [True: 7.18k, False: 980]
  |  Branch (562:34): [True: 3.42k, False: 3.76k]
  ------------------
  563|  4.74k|			    ((idx >= startIdxRun2) && (idx < (startIdxRun2 + lenRun2))))
  ------------------
  |  Branch (563:9): [True: 2.73k, False: 2.00k]
  |  Branch (563:34): [True: 2.01k, False: 723]
  ------------------
  564|  5.44k|			{
  565|  5.44k|				SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdrOption->type);
  566|       |
  567|  5.44k|				option = parseOption(optionType, offset);
  568|       |
  569|  5.44k|				if (option != nullptr)
  ------------------
  |  Branch (569:9): [True: 4.70k, False: 739]
  ------------------
  570|  4.70k|				{
  571|  4.70k|					vecOptions.push_back(std::move(option));
  572|  4.70k|				}
  573|  5.44k|			}
  574|       |
  575|  8.16k|			size_t optionLen = be16toh(hdrOption->length) + 3;
  576|  8.16k|			remainingLen -= optionLen;
  577|  8.16k|			offset += optionLen;
  578|  8.16k|			++idx;
  579|  8.16k|		}
  580|       |
  581|  8.17k|		return vecOptions;
  582|  8.17k|	}
_ZNK4pcpp13SomeIpSdLayer8toStringEv:
  608|  16.3k|	{
  609|  16.3k|		std::stringstream dataStream;
  610|       |
  611|  16.3k|		dataStream << "SOME/IP-SD Layer, " << getNumEntries() << " entries, " << getNumOptions() << " options";
  612|       |
  613|  16.3k|		return dataStream.str();
  614|  16.3k|	}
_ZN4pcpp13SomeIpSdLayer11isDataValidEPKhm:
  634|  52.1k|	{
  635|  52.1k|		uint32_t count;
  636|  52.1k|		if (!data || dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
  ------------------
  |  Branch (636:7): [True: 0, False: 52.1k]
  |  Branch (636:16): [True: 0, False: 52.1k]
  ------------------
  637|  52.1k|		    dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
  ------------------
  |  Branch (637:7): [True: 508, False: 51.6k]
  ------------------
  638|  51.6k|		    dataLen <
  ------------------
  |  Branch (638:7): [True: 1.27k, False: 50.4k]
  ------------------
  639|  51.6k|		        sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) + getLenOptions(data) ||
  640|  50.4k|		    !countOptions(count, data))
  ------------------
  |  Branch (640:7): [True: 9.43k, False: 40.9k]
  ------------------
  641|  11.2k|		{
  642|  11.2k|			return false;
  643|  11.2k|		}
  644|       |
  645|  40.9k|		return true;
  646|  52.1k|	}
_ZN4pcpp13SomeIpSdLayer12countOptionsERjPKh:
  649|  91.3k|	{
  650|  91.3k|		size_t offsetOption = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t);
  651|  91.3k|		size_t lenOptions = getLenOptions(data);
  652|  91.3k|		uint32_t len = 0;
  653|       |
  654|  91.3k|		count = 0;
  655|   173k|		while (len < lenOptions)
  ------------------
  |  Branch (655:10): [True: 91.3k, False: 81.9k]
  ------------------
  656|  91.3k|		{
  657|  91.3k|			if (len + sizeof(uint16_t) + 3 * sizeof(uint8_t) > lenOptions)
  ------------------
  |  Branch (657:8): [True: 20, False: 91.3k]
  ------------------
  658|     20|				return false;
  659|       |
  660|  91.3k|			uint32_t lenOption = be16toh(*((uint16_t*)(data + offsetOption + len))) + 3 * sizeof(uint8_t);
  661|  91.3k|			len += lenOption;
  662|  91.3k|			if (len > lenOptions)  // the last one must be equal to lenOptions
  ------------------
  |  Branch (662:8): [True: 9.41k, False: 81.9k]
  ------------------
  663|  9.41k|				return false;
  664|       |
  665|  81.9k|			++(count);
  666|  81.9k|		}
  667|  81.9k|		return true;
  668|  91.3k|	}
_ZNK4pcpp13SomeIpSdLayer11parseOptionENS_14SomeIpSdOption10OptionTypeEm:
  760|  13.6k|	{
  761|  13.6k|		switch (type)
  762|  13.6k|		{
  763|  1.47k|		case SomeIpSdOption::OptionType::IPv4Endpoint:
  ------------------
  |  Branch (763:3): [True: 1.47k, False: 12.1k]
  ------------------
  764|  1.54k|		case SomeIpSdOption::OptionType::IPv4Multicast:
  ------------------
  |  Branch (764:3): [True: 74, False: 13.5k]
  ------------------
  765|  10.4k|		case SomeIpSdOption::OptionType::IPv4SdEndpoint:
  ------------------
  |  Branch (765:3): [True: 8.88k, False: 4.72k]
  ------------------
  766|  10.4k|		{
  767|  10.4k|			return new SomeIpSdIPv4Option(this, offset);
  768|  1.54k|		}
  769|      0|		case SomeIpSdOption::OptionType::IPv6Endpoint:
  ------------------
  |  Branch (769:3): [True: 0, False: 13.6k]
  ------------------
  770|      0|		case SomeIpSdOption::OptionType::IPv6Multicast:
  ------------------
  |  Branch (770:3): [True: 0, False: 13.6k]
  ------------------
  771|      0|		case SomeIpSdOption::OptionType::IPv6SdEndpoint:
  ------------------
  |  Branch (771:3): [True: 0, False: 13.6k]
  ------------------
  772|      0|		{
  773|      0|			return new SomeIpSdIPv6Option(this, offset);
  774|      0|		}
  775|      0|		case SomeIpSdOption::OptionType::ConfigurationString:
  ------------------
  |  Branch (775:3): [True: 0, False: 13.6k]
  ------------------
  776|      0|		{
  777|      0|			return new SomeIpSdConfigurationOption(this, offset);
  778|      0|		}
  779|     32|		case SomeIpSdOption::OptionType::LoadBalancing:
  ------------------
  |  Branch (779:3): [True: 32, False: 13.5k]
  ------------------
  780|     32|		{
  781|     32|			return new SomeIpSdLoadBalancingOption(this, offset);
  782|      0|		}
  783|  3.14k|		default:
  ------------------
  |  Branch (783:3): [True: 3.14k, False: 10.4k]
  ------------------
  784|  3.14k|			break;
  785|  13.6k|		}
  786|  3.14k|		return nullptr;
  787|  13.6k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenEntriesEv:
  790|  49.0k|	{
  791|  49.0k|		return getLenEntries(m_Data);
  792|  49.0k|	}
_ZN4pcpp13SomeIpSdLayer13getLenEntriesEPKh:
  795|   403k|	{
  796|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr))));
  797|   403k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenOptionsEv:
  800|  16.3k|	{
  801|  16.3k|		return getLenOptions(m_Data);
  802|  16.3k|	}
_ZN4pcpp13SomeIpSdLayer13getLenOptionsEPKh:
  805|   159k|	{
  806|       |		return be32toh(*((uint32_t*)(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data))));
  807|   159k|	}

_ZN4pcpp8StpLayer11isDataValidEPKhm:
   30|  5.24k|	{
   31|  5.24k|		return data && dataLen;
  ------------------
  |  Branch (31:10): [True: 5.24k, False: 0]
  |  Branch (31:18): [True: 5.24k, False: 0]
  ------------------
   32|  5.24k|	}
_ZN4pcpp8StpLayer13parseStpLayerEPhmPNS_5LayerEPNS_6PacketE:
   35|  5.24k|	{
   36|  5.24k|		if (dataLen >= sizeof(stp_tcn_bpdu))
  ------------------
  |  Branch (36:7): [True: 5.24k, False: 0]
  ------------------
   37|  5.24k|		{
   38|  5.24k|			stp_tcn_bpdu* ptr = reinterpret_cast<stp_tcn_bpdu*>(data);
   39|  5.24k|			switch (ptr->type)
   40|  5.24k|			{
   41|  1.98k|			case 0x00:
  ------------------
  |  Branch (41:4): [True: 1.98k, False: 3.26k]
  ------------------
   42|  1.98k|				return StpConfigurationBPDULayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (42:12): [True: 1.98k, False: 0]
  ------------------
   43|  1.98k|				           ? new StpConfigurationBPDULayer(data, dataLen, prevLayer, packet)
   44|  1.98k|				           : nullptr;
   45|  1.28k|			case 0x02:
  ------------------
  |  Branch (45:4): [True: 1.28k, False: 3.95k]
  ------------------
   46|  1.28k|				if (ptr->version == 0x2)
  ------------------
  |  Branch (46:9): [True: 1.08k, False: 204]
  ------------------
   47|  1.08k|					return RapidStpLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (47:13): [True: 1.08k, False: 0]
  ------------------
   48|  1.08k|					           ? new RapidStpLayer(data, dataLen, prevLayer, packet)
   49|  1.08k|					           : nullptr;
   50|    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.26k]
  ------------------
   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|      4|			default:
  ------------------
  |  Branch (63:4): [True: 4, False: 5.23k]
  ------------------
   64|      4|				PCPP_LOG_DEBUG("Unknown Spanning Tree Protocol type");
  ------------------
  |  |  425|      4|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, 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 PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  |  |  416|      4|		{                                                                                                              \
  |  |  |  |  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|      4|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   65|      4|				return nullptr;
   66|  5.24k|			}
   67|  5.24k|		}
   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.24k|	}
_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|  1.98k|	{
  231|  1.98k|		if (m_DataLen > sizeof(stp_conf_bpdu))
  ------------------
  |  Branch (231:7): [True: 1.98k, False: 0]
  ------------------
  232|  1.98k|		{
  233|  1.98k|			constructNextLayer<PayloadLayer>(m_Data, m_DataLen - sizeof(stp_conf_bpdu));
  234|  1.98k|		}
  235|  1.98k|	}
_ZN4pcpp13RapidStpLayer14parseNextLayerEv:
  247|  1.08k|	{
  248|  1.08k|		if (m_DataLen > sizeof(rstp_conf_bpdu))
  ------------------
  |  Branch (248:7): [True: 1.08k, False: 0]
  ------------------
  249|  1.08k|		{
  250|  1.08k|			constructNextLayer<PayloadLayer>(m_Data, m_DataLen - sizeof(rstp_conf_bpdu));
  251|  1.08k|		}
  252|  1.08k|	}

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

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

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

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

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

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   40|   389k|	{
   41|       |		return be16toh(getUdpHeader()->portSrc);
   42|   389k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   45|   389k|	{
   46|       |		return be16toh(getUdpHeader()->portDst);
   47|   389k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   50|  53.6k|	{
   51|  53.6k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   52|  53.6k|		uint16_t checksumRes = 0;
   53|  53.6k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   54|       |
   55|  53.6k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (55:7): [True: 53.6k, False: 0]
  ------------------
   56|  53.6k|		{
   57|  53.6k|			udpHdr->headerChecksum = 0;
   58|  53.6k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  425|  53.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  53.6k|	do                                                                                                                 \
  |  |  |  |  413|  53.6k|	{                                                                                                                  \
  |  |  |  |  414|  53.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  53.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  53.6k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 53.6k]
  |  |  |  |  ------------------
  |  |  |  |  416|  53.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|  53.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 53.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   59|       |
   60|  53.6k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (60:8): [True: 51.8k, False: 1.85k]
  ------------------
   61|  51.8k|			{
   62|  51.8k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   63|  51.8k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   64|       |
   65|  51.8k|				checksumRes = pcpp::computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv4AddressType,
   66|  51.8k|				                                             PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   67|       |
   68|  51.8k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  51.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  51.8k|	do                                                                                                                 \
  |  |  |  |  413|  51.8k|	{                                                                                                                  \
  |  |  |  |  414|  51.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  51.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  51.8k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 51.8k]
  |  |  |  |  ------------------
  |  |  |  |  416|  51.8k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  51.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 51.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|  51.8k|			}
   70|  1.85k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (70:13): [True: 1.85k, False: 0]
  ------------------
   71|  1.85k|			{
   72|  1.85k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   73|  1.85k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   74|       |
   75|  1.85k|				checksumRes = computePseudoHdrChecksum((uint8_t*)udpHdr, getDataLen(), IPAddress::IPv6AddressType,
   76|  1.85k|				                                       PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   77|       |
   78|  1.85k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  425|  1.85k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  1.85k|	do                                                                                                                 \
  |  |  |  |  413|  1.85k|	{                                                                                                                  \
  |  |  |  |  414|  1.85k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  1.85k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.85k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 1.85k]
  |  |  |  |  ------------------
  |  |  |  |  416|  1.85k|		{                                                                                                              \
  |  |  |  |  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.85k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1.85k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   79|  1.85k|			}
   80|  53.6k|		}
   81|       |
   82|  53.6k|		if (checksumRes == 0)
  ------------------
  |  Branch (82:7): [True: 108, False: 53.5k]
  ------------------
   83|    108|			checksumRes = 0xffff;
   84|       |
   85|  53.6k|		if (writeResultToPacket)
  ------------------
  |  Branch (85:7): [True: 53.6k, False: 0]
  ------------------
   86|  53.6k|			udpHdr->headerChecksum = htobe16(checksumRes);
   87|      0|		else
   88|      0|			udpHdr->headerChecksum = currChecksumValue;
   89|       |
   90|  53.6k|		return checksumRes;
   91|  53.6k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   94|   282k|	{
   95|   282k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (95:7): [True: 534, False: 282k]
  ------------------
   96|    534|			return;
   97|       |
   98|   282k|		uint16_t portDst = getDstPort();
   99|   282k|		uint16_t portSrc = getSrcPort();
  100|       |
  101|   282k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  102|   282k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  103|       |
  104|   282k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (104:7): [True: 20.8k, False: 261k]
  ------------------
  105|  20.8k|		{
  106|  20.8k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  107|  20.8k|		}
  108|   261k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (108:12): [True: 6.20k, False: 255k]
  ------------------
  109|  6.20k|		{
  110|  6.20k|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  111|  6.20k|		}
  112|   255k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (112:12): [True: 252k, False: 2.80k]
  ------------------
  113|   252k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (113:13): [True: 46.5k, False: 205k]
  |  Branch (113:45): [True: 14.6k, False: 191k]
  ------------------
  114|  61.2k|		{
  115|  61.2k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  116|  61.2k|		}
  117|   194k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (117:12): [True: 12.5k, False: 181k]
  |  Branch (117:44): [True: 254, False: 181k]
  ------------------
  118|  12.7k|		{
  119|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  120|  12.7k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  121|  12.7k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  122|  12.7k|		}
  123|   181k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (123:13): [True: 15.2k, False: 166k]
  |  Branch (123:51): [True: 14.9k, False: 151k]
  ------------------
  124|  30.1k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (124:12): [True: 22.8k, False: 7.28k]
  ------------------
  125|  22.8k|		{
  126|  22.8k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  127|  22.8k|		}
  128|   158k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (128:13): [True: 22.7k, False: 135k]
  |  Branch (128:49): [True: 1.74k, False: 133k]
  ------------------
  129|  24.5k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (129:12): [True: 13.4k, False: 11.1k]
  ------------------
  130|  13.4k|		{
  131|  13.4k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  132|  13.4k|		}
  133|   145k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (133:13): [True: 7.52k, False: 137k]
  |  Branch (133:49): [True: 5, False: 137k]
  ------------------
  134|  7.52k|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (134:12): [True: 7.48k, False: 45]
  ------------------
  135|  7.48k|		{
  136|  7.48k|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  137|  7.48k|		}
  138|   137k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (138:13): [True: 2.43k, False: 135k]
  |  Branch (138:51): [True: 1.68k, False: 133k]
  ------------------
  139|  4.11k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (139:12): [True: 4.11k, False: 0]
  ------------------
  140|  4.11k|		{
  141|  4.11k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  142|  4.11k|		}
  143|   133k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (143:13): [True: 1.64k, False: 131k]
  |  Branch (143:45): [True: 5.28k, False: 126k]
  ------------------
  144|  6.93k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (144:12): [True: 6.80k, False: 134]
  ------------------
  145|  6.80k|		{
  146|  6.80k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  147|  6.80k|		}
  148|   126k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (148:13): [True: 0, False: 126k]
  |  Branch (148:47): [True: 0, False: 126k]
  ------------------
  149|      0|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (149:12): [True: 0, False: 0]
  ------------------
  150|      0|		{
  151|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  152|      0|		}
  153|   126k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (153:12): [True: 2.83k, False: 123k]
  |  Branch (153:50): [True: 52.4k, False: 71.3k]
  ------------------
  154|  55.2k|		{
  155|  55.2k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  156|  55.2k|		}
  157|  71.3k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (157:13): [True: 3.13k, False: 68.1k]
  |  Branch (157:57): [True: 555, False: 2.57k]
  ------------------
  158|    555|		{
  159|    555|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  160|    555|		}
  161|  70.7k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (161:13): [True: 1.65k, False: 69.1k]
  ------------------
  162|  1.65k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (162:13): [True: 1.54k, False: 110]
  ------------------
  163|  1.54k|		{
  164|  1.54k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  165|  1.54k|			                                                           udpDataLen);
  166|  1.54k|		}
  167|       |
  168|       |		// If a valid layer was found, return immediately
  169|   282k|		if (hasNextLayer())
  ------------------
  |  Branch (169:7): [True: 213k, False: 69.2k]
  ------------------
  170|   213k|		{
  171|   213k|			return;
  172|   213k|		}
  173|       |
  174|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  175|  69.2k|		{
  176|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  177|  69.2k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  178|  69.2k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  179|  69.2k|		}
  180|       |
  181|  69.2k|		if (!hasNextLayer())
  ------------------
  |  Branch (181:7): [True: 0, False: 69.2k]
  ------------------
  182|      0|		{
  183|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  184|      0|		}
  185|  69.2k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  188|  53.6k|	{
  189|  53.6k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  190|       |		udpHdr->length = htobe16(m_DataLen);
  191|  53.6k|		calculateChecksum(true);
  192|  53.6k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  195|   107k|	{
  196|   107k|		std::ostringstream srcPortStream;
  197|   107k|		srcPortStream << getSrcPort();
  198|   107k|		std::ostringstream dstPortStream;
  199|   107k|		dstPortStream << getDstPort();
  200|       |
  201|   107k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  202|   107k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   33|  16.7k|	{
   34|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   35|  16.7k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   38|  16.7k|	{
   39|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   40|  16.7k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   43|  16.7k|	{
   44|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   45|  16.7k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   63|  57.0k|	{
   64|  57.0k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (64:7): [True: 0, False: 57.0k]
  ------------------
   65|      0|			return;
   66|       |
   67|  57.0k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   68|  57.0k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   69|       |
   70|  57.0k|		vlan_header* hdr = getVlanHeader();
   71|  57.0k|		switch (be16toh(hdr->etherType))
   72|  57.0k|		{
   73|  15.3k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   31|  15.3k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (73:3): [True: 15.3k, False: 41.6k]
  ------------------
   74|  15.3k|		{
   75|  15.3k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   76|  15.3k|			break;
   77|      0|		}
   78|  2.09k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   47|  2.09k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (78:3): [True: 2.09k, False: 54.9k]
  ------------------
   79|  2.09k|		{
   80|  2.09k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   81|  2.09k|			break;
   82|      0|		}
   83|  4.92k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   33|  4.92k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (83:3): [True: 4.92k, False: 52.1k]
  ------------------
   84|  4.92k|		{
   85|  4.92k|			constructNextLayer<ArpLayer>(payload, payloadLen);
   86|  4.92k|			break;
   87|      0|		}
   88|  5.94k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   43|  5.94k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (88:3): [True: 5.94k, False: 51.1k]
  ------------------
   89|  5.94k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   61|  5.94k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (89:3): [True: 0, False: 57.0k]
  ------------------
   90|  5.94k|		{
   91|  5.94k|			constructNextLayer<VlanLayer>(payload, payloadLen);
   92|  5.94k|			break;
   93|  5.94k|		}
   94|  22.5k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   53|  22.5k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (94:3): [True: 22.5k, False: 34.4k]
  ------------------
   95|  22.5k|		{
   96|  22.5k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   97|  22.5k|			break;
   98|  5.94k|		}
   99|      0|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   51|      0|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (99:3): [True: 0, False: 57.0k]
  ------------------
  100|      0|		{
  101|      0|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
  102|      0|			break;
  103|  5.94k|		}
  104|     32|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   55|     32|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (104:3): [True: 32, False: 57.0k]
  ------------------
  105|     32|		{
  106|     32|			constructNextLayer<MplsLayer>(payload, payloadLen);
  107|     32|			break;
  108|  5.94k|		}
  109|  6.08k|		default:
  ------------------
  |  Branch (109:3): [True: 6.08k, False: 50.9k]
  ------------------
  110|  6.08k|		{
  111|  6.08k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (111:8): [True: 4.88k, False: 1.19k]
  ------------------
  112|  4.88k|			{
  113|  4.88k|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  114|  4.88k|			}
  115|  1.19k|			else
  116|  1.19k|			{
  117|  1.19k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  118|  1.19k|			}
  119|  6.08k|			break;
  120|  5.94k|		}
  121|  57.0k|		}
  122|  57.0k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  125|  8.35k|	{
  126|  8.35k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (126:7): [True: 0, False: 8.35k]
  ------------------
  127|      0|			return;
  128|       |
  129|  8.35k|		switch (m_NextLayer->getProtocol())
  130|  8.35k|		{
  131|  2.37k|		case IPv4:
  ------------------
  |  Branch (131:3): [True: 2.37k, False: 5.98k]
  ------------------
  132|  2.37k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  133|  2.37k|			break;
  134|    334|		case IPv6:
  ------------------
  |  Branch (134:3): [True: 334, False: 8.02k]
  ------------------
  135|    334|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  136|    334|			break;
  137|    985|		case ARP:
  ------------------
  |  Branch (137:3): [True: 985, False: 7.37k]
  ------------------
  138|    985|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  139|    985|			break;
  140|    847|		case VLAN:
  ------------------
  |  Branch (140:3): [True: 847, False: 7.51k]
  ------------------
  141|    847|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  142|    847|			break;
  143|  3.82k|		default:
  ------------------
  |  Branch (143:3): [True: 3.82k, False: 4.53k]
  ------------------
  144|  3.82k|			return;
  145|  8.35k|		}
  146|  8.35k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  149|  16.7k|	{
  150|  16.7k|		std::ostringstream cfiStream;
  151|  16.7k|		cfiStream << (int)getCFI();
  152|  16.7k|		std::ostringstream priStream;
  153|  16.7k|		priStream << (int)getPriority();
  154|  16.7k|		std::ostringstream idStream;
  155|  16.7k|		idStream << getVlanID();
  156|       |
  157|  16.7k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  158|  16.7k|		       ", CFI: " + cfiStream.str();
  159|  16.7k|	}

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

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

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

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

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

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

_ZN4pcpp11IFileDevice21reportPacketProcessedEm:
   66|   227k|		{
   67|   227k|			m_NumOfPacketsProcessed += numPackets;
   68|   227k|		}
_ZN4pcpp20PcapFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  149|  2.16k|		explicit PcapFileReaderDevice(const std::string& fileName) : IFileReaderDevice(fileName)
  150|  2.16k|		{}
_ZN4pcpp20PcapFileReaderDeviceD2Ev:
  153|  2.16k|		~PcapFileReaderDevice() override = default;

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

_ZN4pcpp15toLinkLayerTypeEj:
   80|  2.14k|	{
   81|  2.14k|		switch (value)
   82|  2.14k|		{
   83|     42|		case LINKTYPE_NULL:
  ------------------
  |  Branch (83:3): [True: 42, False: 2.10k]
  ------------------
   84|  1.90k|		case LINKTYPE_ETHERNET:
  ------------------
  |  Branch (84:3): [True: 1.86k, False: 277]
  ------------------
   85|  1.90k|		case LINKTYPE_AX25:
  ------------------
  |  Branch (85:3): [True: 0, False: 2.14k]
  ------------------
   86|  1.90k|		case LINKTYPE_IEEE802_5:
  ------------------
  |  Branch (86:3): [True: 0, False: 2.14k]
  ------------------
   87|  1.90k|		case LINKTYPE_ARCNET_BSD:
  ------------------
  |  Branch (87:3): [True: 0, False: 2.14k]
  ------------------
   88|  1.90k|		case LINKTYPE_SLIP:
  ------------------
  |  Branch (88:3): [True: 0, False: 2.14k]
  ------------------
   89|  1.90k|		case LINKTYPE_PPP:
  ------------------
  |  Branch (89:3): [True: 0, False: 2.14k]
  ------------------
   90|  1.90k|		case LINKTYPE_FDDI:
  ------------------
  |  Branch (90:3): [True: 0, False: 2.14k]
  ------------------
   91|  1.92k|		case LINKTYPE_DLT_RAW1:
  ------------------
  |  Branch (91:3): [True: 16, False: 2.12k]
  ------------------
   92|  1.98k|		case LINKTYPE_DLT_RAW2:
  ------------------
  |  Branch (92:3): [True: 63, False: 2.08k]
  ------------------
   93|  1.98k|		case LINKTYPE_PPP_HDLC:
  ------------------
  |  Branch (93:3): [True: 0, False: 2.14k]
  ------------------
   94|  1.98k|		case LINKTYPE_PPP_ETHER:
  ------------------
  |  Branch (94:3): [True: 0, False: 2.14k]
  ------------------
   95|  1.98k|		case LINKTYPE_ATM_RFC1483:
  ------------------
  |  Branch (95:3): [True: 0, False: 2.14k]
  ------------------
   96|  2.00k|		case LINKTYPE_RAW:
  ------------------
  |  Branch (96:3): [True: 16, False: 2.12k]
  ------------------
   97|  2.00k|		case LINKTYPE_C_HDLC:
  ------------------
  |  Branch (97:3): [True: 5, False: 2.13k]
  ------------------
   98|  2.00k|		case LINKTYPE_IEEE802_11:
  ------------------
  |  Branch (98:3): [True: 0, False: 2.14k]
  ------------------
   99|  2.00k|		case LINKTYPE_FRELAY:
  ------------------
  |  Branch (99:3): [True: 0, False: 2.14k]
  ------------------
  100|  2.00k|		case LINKTYPE_LOOP:
  ------------------
  |  Branch (100:3): [True: 0, False: 2.14k]
  ------------------
  101|  2.05k|		case LINKTYPE_LINUX_SLL:
  ------------------
  |  Branch (101:3): [True: 46, False: 2.09k]
  ------------------
  102|  2.05k|		case LINKTYPE_LTALK:
  ------------------
  |  Branch (102:3): [True: 0, False: 2.14k]
  ------------------
  103|  2.05k|		case LINKTYPE_PFLOG:
  ------------------
  |  Branch (103:3): [True: 0, False: 2.14k]
  ------------------
  104|  2.05k|		case LINKTYPE_IEEE802_11_PRISM:
  ------------------
  |  Branch (104:3): [True: 0, False: 2.14k]
  ------------------
  105|  2.05k|		case LINKTYPE_IP_OVER_FC:
  ------------------
  |  Branch (105:3): [True: 0, False: 2.14k]
  ------------------
  106|  2.05k|		case LINKTYPE_SUNATM:
  ------------------
  |  Branch (106:3): [True: 0, False: 2.14k]
  ------------------
  107|  2.05k|		case LINKTYPE_IEEE802_11_RADIOTAP:
  ------------------
  |  Branch (107:3): [True: 0, False: 2.14k]
  ------------------
  108|  2.05k|		case LINKTYPE_ARCNET_LINUX:
  ------------------
  |  Branch (108:3): [True: 0, False: 2.14k]
  ------------------
  109|  2.05k|		case LINKTYPE_APPLE_IP_OVER_IEEE1394:
  ------------------
  |  Branch (109:3): [True: 0, False: 2.14k]
  ------------------
  110|  2.05k|		case LINKTYPE_MTP2_WITH_PHDR:
  ------------------
  |  Branch (110:3): [True: 0, False: 2.14k]
  ------------------
  111|  2.05k|		case LINKTYPE_MTP2:
  ------------------
  |  Branch (111:3): [True: 0, False: 2.14k]
  ------------------
  112|  2.05k|		case LINKTYPE_MTP3:
  ------------------
  |  Branch (112:3): [True: 0, False: 2.14k]
  ------------------
  113|  2.05k|		case LINKTYPE_SCCP:
  ------------------
  |  Branch (113:3): [True: 0, False: 2.14k]
  ------------------
  114|  2.05k|		case LINKTYPE_DOCSIS:
  ------------------
  |  Branch (114:3): [True: 0, False: 2.14k]
  ------------------
  115|  2.05k|		case LINKTYPE_LINUX_IRDA:
  ------------------
  |  Branch (115:3): [True: 0, False: 2.14k]
  ------------------
  116|  2.05k|		case LINKTYPE_USER0:
  ------------------
  |  Branch (116:3): [True: 0, False: 2.14k]
  ------------------
  117|  2.05k|		case LINKTYPE_USER1:
  ------------------
  |  Branch (117:3): [True: 0, False: 2.14k]
  ------------------
  118|  2.05k|		case LINKTYPE_USER2:
  ------------------
  |  Branch (118:3): [True: 0, False: 2.14k]
  ------------------
  119|  2.05k|		case LINKTYPE_USER3:
  ------------------
  |  Branch (119:3): [True: 0, False: 2.14k]
  ------------------
  120|  2.05k|		case LINKTYPE_USER4:
  ------------------
  |  Branch (120:3): [True: 0, False: 2.14k]
  ------------------
  121|  2.05k|		case LINKTYPE_USER5:
  ------------------
  |  Branch (121:3): [True: 0, False: 2.14k]
  ------------------
  122|  2.05k|		case LINKTYPE_USER6:
  ------------------
  |  Branch (122:3): [True: 0, False: 2.14k]
  ------------------
  123|  2.05k|		case LINKTYPE_USER7:
  ------------------
  |  Branch (123:3): [True: 0, False: 2.14k]
  ------------------
  124|  2.05k|		case LINKTYPE_USER8:
  ------------------
  |  Branch (124:3): [True: 0, False: 2.14k]
  ------------------
  125|  2.05k|		case LINKTYPE_USER9:
  ------------------
  |  Branch (125:3): [True: 0, False: 2.14k]
  ------------------
  126|  2.05k|		case LINKTYPE_USER10:
  ------------------
  |  Branch (126:3): [True: 0, False: 2.14k]
  ------------------
  127|  2.05k|		case LINKTYPE_USER11:
  ------------------
  |  Branch (127:3): [True: 0, False: 2.14k]
  ------------------
  128|  2.05k|		case LINKTYPE_USER12:
  ------------------
  |  Branch (128:3): [True: 0, False: 2.14k]
  ------------------
  129|  2.05k|		case LINKTYPE_USER13:
  ------------------
  |  Branch (129:3): [True: 0, False: 2.14k]
  ------------------
  130|  2.05k|		case LINKTYPE_USER14:
  ------------------
  |  Branch (130:3): [True: 0, False: 2.14k]
  ------------------
  131|  2.05k|		case LINKTYPE_USER15:
  ------------------
  |  Branch (131:3): [True: 0, False: 2.14k]
  ------------------
  132|  2.05k|		case LINKTYPE_IEEE802_11_AVS:
  ------------------
  |  Branch (132:3): [True: 0, False: 2.14k]
  ------------------
  133|  2.05k|		case LINKTYPE_BACNET_MS_TP:
  ------------------
  |  Branch (133:3): [True: 0, False: 2.14k]
  ------------------
  134|  2.05k|		case LINKTYPE_PPP_PPPD:
  ------------------
  |  Branch (134:3): [True: 0, False: 2.14k]
  ------------------
  135|  2.05k|		case LINKTYPE_GPRS_LLC:
  ------------------
  |  Branch (135:3): [True: 0, False: 2.14k]
  ------------------
  136|  2.05k|		case LINKTYPE_GPF_T:
  ------------------
  |  Branch (136:3): [True: 0, False: 2.14k]
  ------------------
  137|  2.05k|		case LINKTYPE_GPF_F:
  ------------------
  |  Branch (137:3): [True: 0, False: 2.14k]
  ------------------
  138|  2.05k|		case LINKTYPE_LINUX_LAPD:
  ------------------
  |  Branch (138:3): [True: 0, False: 2.14k]
  ------------------
  139|  2.05k|		case LINKTYPE_BLUETOOTH_HCI_H4:
  ------------------
  |  Branch (139:3): [True: 0, False: 2.14k]
  ------------------
  140|  2.05k|		case LINKTYPE_USB_LINUX:
  ------------------
  |  Branch (140:3): [True: 0, False: 2.14k]
  ------------------
  141|  2.05k|		case LINKTYPE_PPI:
  ------------------
  |  Branch (141:3): [True: 0, False: 2.14k]
  ------------------
  142|  2.05k|		case LINKTYPE_IEEE802_15_4:
  ------------------
  |  Branch (142:3): [True: 0, False: 2.14k]
  ------------------
  143|  2.05k|		case LINKTYPE_SITA:
  ------------------
  |  Branch (143:3): [True: 0, False: 2.14k]
  ------------------
  144|  2.05k|		case LINKTYPE_ERF:
  ------------------
  |  Branch (144:3): [True: 0, False: 2.14k]
  ------------------
  145|  2.05k|		case LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR:
  ------------------
  |  Branch (145:3): [True: 0, False: 2.14k]
  ------------------
  146|  2.05k|		case LINKTYPE_AX25_KISS:
  ------------------
  |  Branch (146:3): [True: 0, False: 2.14k]
  ------------------
  147|  2.05k|		case LINKTYPE_LAPD:
  ------------------
  |  Branch (147:3): [True: 0, False: 2.14k]
  ------------------
  148|  2.05k|		case LINKTYPE_PPP_WITH_DIR:
  ------------------
  |  Branch (148:3): [True: 0, False: 2.14k]
  ------------------
  149|  2.05k|		case LINKTYPE_C_HDLC_WITH_DIR:
  ------------------
  |  Branch (149:3): [True: 0, False: 2.14k]
  ------------------
  150|  2.05k|		case LINKTYPE_FRELAY_WITH_DIR:
  ------------------
  |  Branch (150:3): [True: 0, False: 2.14k]
  ------------------
  151|  2.05k|		case LINKTYPE_IPMB_LINUX:
  ------------------
  |  Branch (151:3): [True: 0, False: 2.14k]
  ------------------
  152|  2.05k|		case LINKTYPE_IEEE802_15_4_NONASK_PHY:
  ------------------
  |  Branch (152:3): [True: 0, False: 2.14k]
  ------------------
  153|  2.05k|		case LINKTYPE_USB_LINUX_MMAPPED:
  ------------------
  |  Branch (153:3): [True: 0, False: 2.14k]
  ------------------
  154|  2.05k|		case LINKTYPE_FC_2:
  ------------------
  |  Branch (154:3): [True: 0, False: 2.14k]
  ------------------
  155|  2.05k|		case LINKTYPE_FC_2_WITH_FRAME_DELIMS:
  ------------------
  |  Branch (155:3): [True: 0, False: 2.14k]
  ------------------
  156|  2.05k|		case LINKTYPE_IPNET:
  ------------------
  |  Branch (156:3): [True: 0, False: 2.14k]
  ------------------
  157|  2.05k|		case LINKTYPE_CAN_SOCKETCAN:
  ------------------
  |  Branch (157:3): [True: 0, False: 2.14k]
  ------------------
  158|  2.11k|		case LINKTYPE_IPV4:
  ------------------
  |  Branch (158:3): [True: 56, False: 2.08k]
  ------------------
  159|  2.11k|		case LINKTYPE_IPV6:
  ------------------
  |  Branch (159:3): [True: 1, False: 2.14k]
  ------------------
  160|  2.11k|		case LINKTYPE_IEEE802_15_4_NOFCS:
  ------------------
  |  Branch (160:3): [True: 0, False: 2.14k]
  ------------------
  161|  2.11k|		case LINKTYPE_DBUS:
  ------------------
  |  Branch (161:3): [True: 0, False: 2.14k]
  ------------------
  162|  2.11k|		case LINKTYPE_DVB_CI:
  ------------------
  |  Branch (162:3): [True: 0, False: 2.14k]
  ------------------
  163|  2.11k|		case LINKTYPE_MUX27010:
  ------------------
  |  Branch (163:3): [True: 0, False: 2.14k]
  ------------------
  164|  2.11k|		case LINKTYPE_STANAG_5066_D_PDU:
  ------------------
  |  Branch (164:3): [True: 0, False: 2.14k]
  ------------------
  165|  2.12k|		case LINKTYPE_NFLOG:
  ------------------
  |  Branch (165:3): [True: 10, False: 2.13k]
  ------------------
  166|  2.12k|		case LINKTYPE_NETANALYZER:
  ------------------
  |  Branch (166:3): [True: 0, False: 2.14k]
  ------------------
  167|  2.12k|		case LINKTYPE_NETANALYZER_TRANSPARENT:
  ------------------
  |  Branch (167:3): [True: 0, False: 2.14k]
  ------------------
  168|  2.12k|		case LINKTYPE_IPOIB:
  ------------------
  |  Branch (168:3): [True: 0, False: 2.14k]
  ------------------
  169|  2.12k|		case LINKTYPE_MPEG_2_TS:
  ------------------
  |  Branch (169:3): [True: 0, False: 2.14k]
  ------------------
  170|  2.12k|		case LINKTYPE_NG40:
  ------------------
  |  Branch (170:3): [True: 0, False: 2.14k]
  ------------------
  171|  2.12k|		case LINKTYPE_NFC_LLCP:
  ------------------
  |  Branch (171:3): [True: 0, False: 2.14k]
  ------------------
  172|  2.12k|		case LINKTYPE_INFINIBAND:
  ------------------
  |  Branch (172:3): [True: 0, False: 2.14k]
  ------------------
  173|  2.12k|		case LINKTYPE_SCTP:
  ------------------
  |  Branch (173:3): [True: 0, False: 2.14k]
  ------------------
  174|  2.12k|		case LINKTYPE_USBPCAP:
  ------------------
  |  Branch (174:3): [True: 0, False: 2.14k]
  ------------------
  175|  2.12k|		case LINKTYPE_RTAC_SERIAL:
  ------------------
  |  Branch (175:3): [True: 0, False: 2.14k]
  ------------------
  176|  2.12k|		case LINKTYPE_BLUETOOTH_LE_LL:
  ------------------
  |  Branch (176:3): [True: 0, False: 2.14k]
  ------------------
  177|  2.12k|		case LINKTYPE_NETLINK:
  ------------------
  |  Branch (177:3): [True: 0, False: 2.14k]
  ------------------
  178|  2.12k|		case LINKTYPE_BLUETOOTH_LINUX_MONITOR:
  ------------------
  |  Branch (178:3): [True: 0, False: 2.14k]
  ------------------
  179|  2.12k|		case LINKTYPE_BLUETOOTH_BREDR_BB:
  ------------------
  |  Branch (179:3): [True: 0, False: 2.14k]
  ------------------
  180|  2.12k|		case LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR:
  ------------------
  |  Branch (180:3): [True: 0, False: 2.14k]
  ------------------
  181|  2.12k|		case LINKTYPE_PROFIBUS_DL:
  ------------------
  |  Branch (181:3): [True: 0, False: 2.14k]
  ------------------
  182|  2.12k|		case LINKTYPE_PKTAP:
  ------------------
  |  Branch (182:3): [True: 0, False: 2.14k]
  ------------------
  183|  2.12k|		case LINKTYPE_EPON:
  ------------------
  |  Branch (183:3): [True: 0, False: 2.14k]
  ------------------
  184|  2.12k|		case LINKTYPE_IPMI_HPM_2:
  ------------------
  |  Branch (184:3): [True: 0, False: 2.14k]
  ------------------
  185|  2.12k|		case LINKTYPE_ZWAVE_R1_R2:
  ------------------
  |  Branch (185:3): [True: 0, False: 2.14k]
  ------------------
  186|  2.12k|		case LINKTYPE_ZWAVE_R3:
  ------------------
  |  Branch (186:3): [True: 0, False: 2.14k]
  ------------------
  187|  2.12k|		case LINKTYPE_WATTSTOPPER_DLM:
  ------------------
  |  Branch (187:3): [True: 0, False: 2.14k]
  ------------------
  188|  2.12k|		case LINKTYPE_ISO_14443:
  ------------------
  |  Branch (188:3): [True: 0, False: 2.14k]
  ------------------
  189|  2.14k|		case LINKTYPE_LINUX_SLL2:
  ------------------
  |  Branch (189:3): [True: 19, False: 2.12k]
  ------------------
  190|  2.14k|		{
  191|  2.14k|			return static_cast<LinkLayerType>(value);
  192|  2.12k|		}
  193|       |
  194|      3|		default:
  ------------------
  |  Branch (194:3): [True: 3, False: 2.14k]
  ------------------
  195|      3|		{
  196|      3|			return LINKTYPE_INVALID;
  197|  2.12k|		}
  198|  2.14k|		}
  199|  2.14k|	}
_ZN4pcpp11IFileDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  219|  2.16k|	{
  220|  2.16k|		m_FileName = fileName;
  221|  2.16k|	}
_ZNK4pcpp11IFileDevice13getStatisticsERNS_9PcapStatsE:
  229|  2.14k|	{
  230|  2.14k|		PCPP_LOG_DEBUG("Statistics requested for file device for filename '" << m_FileName << "'");
  ------------------
  |  |  425|  2.14k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  412|  2.14k|	do                                                                                                                 \
  |  |  |  |  413|  2.14k|	{                                                                                                                  \
  |  |  |  |  414|  2.14k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  2.14k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.14k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 2.14k]
  |  |  |  |  ------------------
  |  |  |  |  416|  2.14k|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|  2.14k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 2.14k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|  2.14k|		stats.packetsRecv = m_NumOfPacketsProcessed;
  232|  2.14k|		stats.packetsDrop = m_NumOfPacketsDropped;
  233|  2.14k|		stats.packetsDropByInterface = 0;
  234|  2.14k|	}
_ZN4pcpp11IFileDevice22resetStatisticCountersEv:
  237|  2.16k|	{
  238|  2.16k|		m_NumOfPacketsProcessed = 0;
  239|  2.16k|		m_NumOfPacketsDropped = 0;
  240|  2.16k|	}
_ZN4pcpp17IFileReaderDeviceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  256|  2.16k|	IFileReaderDevice::IFileReaderDevice(const std::string& fileName) : IFileDevice(fileName)
  257|  2.16k|	{}
_ZN4pcpp17IFileReaderDevice9getReaderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  260|  2.16k|	{
  261|  2.16k|		const auto extensionPos = fileName.find_last_of('.');
  262|  2.16k|		const auto fileExtension = extensionPos != std::string::npos ? fileName.substr(extensionPos) : "";
  ------------------
  |  Branch (262:30): [True: 2.16k, False: 0]
  ------------------
  263|       |
  264|  2.16k|		if (fileExtension == ".pcapng" || fileExtension == ".zstd" || fileExtension == ".zst")
  ------------------
  |  Branch (264:7): [True: 0, False: 2.16k]
  |  Branch (264:37): [True: 0, False: 2.16k]
  |  Branch (264:65): [True: 0, False: 2.16k]
  ------------------
  265|      0|			return new PcapNgFileReaderDevice(fileName);
  266|  2.16k|		else if (fileExtension == ".snoop")
  ------------------
  |  Branch (266:12): [True: 0, False: 2.16k]
  ------------------
  267|      0|			return new SnoopFileReaderDevice(fileName);
  268|       |
  269|  2.16k|		return new PcapFileReaderDevice(fileName);
  270|  2.16k|	}
_ZN4pcpp17IFileReaderDevice14getNextPacketsERNS_13PointerVectorINS_9RawPacketENSt3__114default_deleteIS2_EEEEi:
  279|  2.14k|	{
  280|  2.14k|		int numOfPacketsRead = 0;
  281|       |
  282|  4.28k|		for (; numOfPacketsToRead < 0 || numOfPacketsRead < numOfPacketsToRead; numOfPacketsRead++)
  ------------------
  |  Branch (282:10): [True: 0, False: 4.28k]
  |  Branch (282:36): [True: 2.14k, False: 2.14k]
  ------------------
  283|  2.14k|		{
  284|  2.14k|			RawPacket* newPacket = new RawPacket();
  285|  2.14k|			bool packetRead = getNextPacket(*newPacket);
  286|  2.14k|			if (packetRead)
  ------------------
  |  Branch (286:8): [True: 2.14k, False: 1]
  ------------------
  287|  2.14k|			{
  288|  2.14k|				packetVec.pushBack(newPacket);
  289|  2.14k|			}
  290|      1|			else
  291|      1|			{
  292|      1|				delete newPacket;
  293|      1|				break;
  294|      1|			}
  295|  2.14k|		}
  296|       |
  297|  2.14k|		return numOfPacketsRead;
  298|  2.14k|	}
_ZN4pcpp20PcapFileReaderDevice4openEv:
  404|  2.16k|	{
  405|  2.16k|		if (m_PcapFile.is_open())
  ------------------
  |  Branch (405:7): [True: 0, False: 2.16k]
  ------------------
  406|      0|		{
  407|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  408|      0|			return false;
  409|      0|		}
  410|       |
  411|  2.16k|		resetStatisticCounters();
  412|       |
  413|  2.16k|		std::ifstream pcapFile;
  414|  2.16k|		pcapFile.open(m_FileName.c_str(), std::ifstream::binary);
  415|  2.16k|		if (!pcapFile.is_open())
  ------------------
  |  Branch (415:7): [True: 0, False: 2.16k]
  ------------------
  416|      0|		{
  417|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  418|      0|			return false;
  419|      0|		}
  420|       |
  421|  2.16k|		pcap_file_header pcapFileHeader{};
  422|  2.16k|		auto status = readPcapHeader(pcapFile, pcapFileHeader, m_Precision, m_NeedsSwap);
  423|  2.16k|		switch (status)
  424|  2.16k|		{
  425|  2.16k|		case PcapReadHeaderStatus::Ok:
  ------------------
  |  Branch (425:3): [True: 2.16k, False: 1]
  ------------------
  426|  2.16k|			break;
  427|      0|		case PcapReadHeaderStatus::NoData:
  ------------------
  |  Branch (427:3): [True: 0, False: 2.16k]
  ------------------
  428|      0|		case PcapReadHeaderStatus::MalformedData:
  ------------------
  |  Branch (428:3): [True: 0, False: 2.16k]
  ------------------
  429|      0|		{
  430|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  431|      0|			return false;
  432|      0|		}
  433|      1|		case PcapReadHeaderStatus::UnsupportedFormat:
  ------------------
  |  Branch (433:3): [True: 1, False: 2.16k]
  ------------------
  434|      1|		{
  435|      1|			PCPP_LOG_ERROR("Invalid magic number: 0x" << std::hex << pcapFileHeader.magic);
  ------------------
  |  |  443|      1|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      1|	do                                                                                                                 \
  |  |  |  |  413|      1|	{                                                                                                                  \
  |  |  |  |  414|      1|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      1|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      1|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      1|		{                                                                                                              \
  |  |  |  |  417|      1|			auto ctx =                                                                                                 \
  |  |  |  |  418|      1|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      1|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      1|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      1|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      1|		}                                                                                                              \
  |  |  |  |  422|      1|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  436|      1|			return false;
  437|      0|		}
  438|      0|		default:
  ------------------
  |  Branch (438:3): [True: 0, False: 2.16k]
  ------------------
  439|      0|			throw std::logic_error("Unhandled PcapReadHeaderStatus value");
  440|  2.16k|		}
  441|       |
  442|  2.16k|		if (pcapFileHeader.version_major != 2 && pcapFileHeader.version_major != 543)
  ------------------
  |  Branch (442:7): [True: 0, False: 2.16k]
  |  Branch (442:44): [True: 0, False: 0]
  ------------------
  443|      0|		{
  444|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  445|      0|			                                                 << std::to_string(pcapFileHeader.version_minor));
  446|      0|			return false;
  447|      0|		}
  448|       |
  449|  2.16k|		constexpr uint32_t MAX_SNAPLEN = 1024 * 1024;
  450|  2.16k|		if (pcapFileHeader.snaplen == 0 || pcapFileHeader.snaplen > MAX_SNAPLEN)
  ------------------
  |  Branch (450:7): [True: 0, False: 2.16k]
  |  Branch (450:38): [True: 17, False: 2.14k]
  ------------------
  451|     17|		{
  452|     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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     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__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  453|     17|			return false;
  454|     17|		}
  455|       |
  456|  2.14k|		m_PcapLinkLayerType = toLinkLayerType(pcapFileHeader.linktype);
  457|       |
  458|  2.14k|		m_SnapshotLength = pcapFileHeader.snaplen;
  459|  2.14k|		m_ReadBuffer.resize(m_SnapshotLength);
  460|       |
  461|  2.14k|		m_PcapFile = std::move(pcapFile);
  462|  2.14k|		return true;
  463|  2.16k|	}
_ZN4pcpp20PcapFileReaderDevice13getNextPacketERNS_9RawPacketE:
  466|   229k|	{
  467|   229k|		timespec packetTimestamp;
  468|   229k|		uint32_t capturedLength = 0, frameLength = 0;
  469|       |
  470|   229k|		while (readNextPacket(packetTimestamp, m_ReadBuffer.data(), m_SnapshotLength, capturedLength, frameLength))
  ------------------
  |  Branch (470:10): [True: 227k, False: 2.14k]
  ------------------
  471|   227k|		{
  472|   227k|			if (m_BpfWrapper.matches(m_ReadBuffer.data(), capturedLength, packetTimestamp, m_PcapLinkLayerType))
  ------------------
  |  Branch (472:8): [True: 227k, False: 0]
  ------------------
  473|   227k|			{
  474|       |				// TODO: Fixup tirage hack of adding 20 bytes buffer to pass fuzz.
  475|   227k|				auto packetData = std::make_unique<uint8_t[]>(capturedLength /* + 200 */);
  476|   227k|				std::copy(m_ReadBuffer.begin(), std::next(m_ReadBuffer.begin(), capturedLength), packetData.get());
  477|       |
  478|   227k|				rawPacket.setRawData(capturedLength > 0 ? packetData.release() : nullptr, capturedLength, true,
  ------------------
  |  Branch (478:26): [True: 225k, False: 2.50k]
  ------------------
  479|   227k|				                     packetTimestamp, m_PcapLinkLayerType, frameLength);
  480|   227k|				reportPacketProcessed();
  481|   227k|				return true;
  482|   227k|			}
  483|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  484|      0|		}
  485|       |
  486|  2.14k|		return false;
  487|   229k|	}
_ZN4pcpp20PcapFileReaderDevice5closeEv:
  490|  2.14k|	{
  491|  2.14k|		m_PcapFile.close();
  492|  2.14k|	}
_ZN4pcpp20PcapFileReaderDevice14readNextPacketER8timespecPhjRjS4_:
  496|   229k|	{
  497|   229k|		packet_header packetHeader{};
  498|   229k|		m_PcapFile.read(reinterpret_cast<char*>(&packetHeader), sizeof(packetHeader));
  499|       |
  500|   229k|		auto bytesRead = m_PcapFile.gcount();
  501|   229k|		if (bytesRead == 0)
  ------------------
  |  Branch (501:7): [True: 201, False: 229k]
  ------------------
  502|    201|		{
  503|    201|			return false;
  504|    201|		}
  505|       |
  506|   229k|		if (static_cast<size_t>(bytesRead) < sizeof(packetHeader))
  ------------------
  |  Branch (506:7): [True: 330, False: 229k]
  ------------------
  507|    330|		{
  508|    330|			PCPP_LOG_ERROR("Failed to read packet metadata");
  ------------------
  |  |  443|    330|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    330|	do                                                                                                                 \
  |  |  |  |  413|    330|	{                                                                                                                  \
  |  |  |  |  414|    330|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    330|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    330|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 330, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    330|		{                                                                                                              \
  |  |  |  |  417|    330|			auto ctx =                                                                                                 \
  |  |  |  |  418|    330|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    330|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    330|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    330|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    330|		}                                                                                                              \
  |  |  |  |  422|    330|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 330]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  509|    330|			return false;
  510|    330|		}
  511|       |
  512|   229k|		if (m_NeedsSwap)
  ------------------
  |  Branch (512:7): [True: 289, False: 228k]
  ------------------
  513|    289|		{
  514|    289|			packetHeader.tv_sec = swap32(packetHeader.tv_sec);
  515|    289|			packetHeader.tv_usec = swap32(packetHeader.tv_usec);
  516|    289|			packetHeader.caplen = swap32(packetHeader.caplen);
  517|    289|			packetHeader.len = swap32(packetHeader.len);
  518|    289|		}
  519|       |
  520|   229k|		if (packetHeader.caplen > packetHeader.len)
  ------------------
  |  Branch (520:7): [True: 741, False: 228k]
  ------------------
  521|    741|		{
  522|    741|			PCPP_LOG_ERROR("Packet captured length " << packetHeader.caplen << " exceeds packet length "
  ------------------
  |  |  443|    741|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    741|	do                                                                                                                 \
  |  |  |  |  413|    741|	{                                                                                                                  \
  |  |  |  |  414|    741|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    741|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    741|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 741, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    741|		{                                                                                                              \
  |  |  |  |  417|    741|			auto ctx =                                                                                                 \
  |  |  |  |  418|    741|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    741|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    741|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    741|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    741|		}                                                                                                              \
  |  |  |  |  422|    741|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 741]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  523|    741|			                                         << packetHeader.len);
  524|    741|			return false;
  525|    741|		}
  526|       |
  527|   228k|		constexpr uint32_t MAX_PACKET_SIZE = 256 * 1024;
  528|   228k|		if (packetHeader.caplen > MAX_PACKET_SIZE)
  ------------------
  |  Branch (528:7): [True: 471, False: 227k]
  ------------------
  529|    471|		{
  530|    471|			PCPP_LOG_ERROR("Packet captured length " << packetHeader.caplen << " is suspiciously large");
  ------------------
  |  |  443|    471|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    471|	do                                                                                                                 \
  |  |  |  |  413|    471|	{                                                                                                                  \
  |  |  |  |  414|    471|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    471|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    471|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 471, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    471|		{                                                                                                              \
  |  |  |  |  417|    471|			auto ctx =                                                                                                 \
  |  |  |  |  418|    471|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    471|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    471|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    471|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    471|		}                                                                                                              \
  |  |  |  |  422|    471|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 471]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  531|    471|			return false;
  532|    471|		}
  533|       |
  534|   227k|		if (m_Precision == FileTimestampPrecision::Nanoseconds)
  ------------------
  |  Branch (534:7): [True: 4.70k, False: 223k]
  ------------------
  535|  4.70k|		{
  536|  4.70k|			constexpr uint32_t NANO_PER_SEC = 1'000'000'000;
  537|  4.70k|			if (packetHeader.tv_usec >= NANO_PER_SEC)
  ------------------
  |  Branch (537:8): [True: 1, False: 4.70k]
  ------------------
  538|      1|			{
  539|      1|				PCPP_LOG_ERROR("Invalid nanosecond timestamp: " << std::to_string(packetHeader.tv_usec));
  ------------------
  |  |  443|      1|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|      1|	do                                                                                                                 \
  |  |  |  |  413|      1|	{                                                                                                                  \
  |  |  |  |  414|      1|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|      1|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      1|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 1, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      1|		{                                                                                                              \
  |  |  |  |  417|      1|			auto ctx =                                                                                                 \
  |  |  |  |  418|      1|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      1|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      1|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      1|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      1|		}                                                                                                              \
  |  |  |  |  422|      1|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  540|      1|				return false;
  541|      1|			}
  542|  4.70k|		}
  543|   223k|		else
  544|   223k|		{
  545|   223k|			constexpr uint32_t MICRO_PER_SEC = 1'000'000;
  546|   223k|			if (packetHeader.tv_usec >= MICRO_PER_SEC)
  ------------------
  |  Branch (546:8): [True: 139, False: 223k]
  ------------------
  547|    139|			{
  548|    139|				PCPP_LOG_ERROR("Invalid microsecond timestamp: " << std::to_string(packetHeader.tv_usec));
  ------------------
  |  |  443|    139|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    139|	do                                                                                                                 \
  |  |  |  |  413|    139|	{                                                                                                                  \
  |  |  |  |  414|    139|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    139|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    139|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 139, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    139|		{                                                                                                              \
  |  |  |  |  417|    139|			auto ctx =                                                                                                 \
  |  |  |  |  418|    139|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    139|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    139|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    139|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    139|		}                                                                                                              \
  |  |  |  |  422|    139|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 139]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|    139|				return false;
  550|    139|			}
  551|   223k|		}
  552|       |
  553|   227k|		uint32_t bytesToDiscard = 0;
  554|   227k|		if (packetHeader.caplen > packetDataLen)
  ------------------
  |  Branch (554:7): [True: 4.27k, False: 223k]
  ------------------
  555|  4.27k|		{
  556|  4.27k|			PCPP_LOG_WARN("Packet captured length " << packetHeader.caplen << " exceeds file snapshot length "
  ------------------
  |  |  431|  4.27k|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  412|  4.27k|	do                                                                                                                 \
  |  |  |  |  413|  4.27k|	{                                                                                                                  \
  |  |  |  |  414|  4.27k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|  4.27k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.27k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 4.27k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|  4.27k|		{                                                                                                              \
  |  |  |  |  417|  4.27k|			auto ctx =                                                                                                 \
  |  |  |  |  418|  4.27k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.27k|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|  4.27k|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|  4.27k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|  4.27k|		}                                                                                                              \
  |  |  |  |  422|  4.27k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 4.27k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  557|  4.27k|			                                        << packetDataLen);
  558|  4.27k|			bytesToDiscard = packetHeader.caplen - packetDataLen;
  559|  4.27k|			packetHeader.caplen = packetDataLen;
  560|  4.27k|		}
  561|       |
  562|   227k|		if (packetHeader.caplen > 0 && !m_PcapFile.read(reinterpret_cast<char*>(packetData), packetHeader.caplen))
  ------------------
  |  Branch (562:7): [True: 225k, False: 2.50k]
  |  Branch (562:34): [True: 261, False: 225k]
  ------------------
  563|    261|		{
  564|    261|			PCPP_LOG_ERROR("Failed to read packet data");
  ------------------
  |  |  443|    261|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  412|    261|	do                                                                                                                 \
  |  |  |  |  413|    261|	{                                                                                                                  \
  |  |  |  |  414|    261|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  415|    261|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    261|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 261, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|    261|		{                                                                                                              \
  |  |  |  |  417|    261|			auto ctx =                                                                                                 \
  |  |  |  |  418|    261|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    261|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|    261|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|    261|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|    261|		}                                                                                                              \
  |  |  |  |  422|    261|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 261]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  565|    261|			return false;
  566|    261|		}
  567|       |
  568|   227k|		if (bytesToDiscard && !m_PcapFile.ignore(bytesToDiscard))
  ------------------
  |  Branch (568:7): [True: 4.26k, False: 223k]
  |  Branch (568:25): [True: 0, False: 4.26k]
  ------------------
  569|      0|		{
  570|      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))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (415:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  416|      0|		{                                                                                                              \
  |  |  |  |  417|      0|			auto ctx =                                                                                                 \
  |  |  |  |  418|      0|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PcapLogModuleFileDevice
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  419|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  420|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  421|      0|		}                                                                                                              \
  |  |  |  |  422|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (422:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  571|      0|			return false;
  572|      0|		}
  573|       |
  574|   227k|		capturedLength = packetHeader.caplen;
  575|   227k|		frameLength = packetHeader.len;
  576|   227k|		packetTimestamp = { static_cast<time_t>(packetHeader.tv_sec),
  577|   227k|			                static_cast<long>(m_Precision == FileTimestampPrecision::Microseconds
  ------------------
  |  Branch (577:38): [True: 222k, False: 4.69k]
  ------------------
  578|   227k|			                                      ? packetHeader.tv_usec * 1000
  579|   227k|			                                      : packetHeader.tv_usec) };
  580|   227k|		return true;
  581|   227k|	}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_114readPcapHeaderERNSt3__113basic_istreamIcNS1_11char_traitsIcEEEERNS_16pcap_file_headerERNS_22FileTimestampPrecisionERb:
  343|  2.16k|		{
  344|  2.16k|			inStream.read(reinterpret_cast<char*>(&header), sizeof(header));
  345|       |
  346|  2.16k|			auto readBytes = inStream.gcount();
  347|  2.16k|			if (readBytes == 0)
  ------------------
  |  Branch (347:8): [True: 0, False: 2.16k]
  ------------------
  348|      0|			{
  349|      0|				return PcapReadHeaderStatus::NoData;
  350|      0|			}
  351|  2.16k|			if (readBytes < static_cast<std::streamsize>(sizeof(header)))
  ------------------
  |  Branch (351:8): [True: 0, False: 2.16k]
  ------------------
  352|      0|			{
  353|      0|				return PcapReadHeaderStatus::MalformedData;
  354|      0|			}
  355|       |
  356|  2.16k|			switch (header.magic)
  357|  2.16k|			{
  358|  2.07k|			case TCPDUMP_MAGIC:
  ------------------
  |  Branch (358:4): [True: 2.07k, False: 84]
  ------------------
  359|  2.07k|			{
  360|  2.07k|				precision = FileTimestampPrecision::Microseconds;
  361|  2.07k|				needsSwap = false;
  362|  2.07k|				break;
  363|      0|			}
  364|      0|			case TCPDUMP_MAGIC_SWAPPED:
  ------------------
  |  Branch (364:4): [True: 0, False: 2.16k]
  ------------------
  365|      0|			{
  366|      0|				precision = FileTimestampPrecision::Microseconds;
  367|      0|				needsSwap = true;
  368|      0|				break;
  369|      0|			}
  370|     80|			case NSEC_TCPDUMP_MAGIC:
  ------------------
  |  Branch (370:4): [True: 80, False: 2.08k]
  ------------------
  371|     80|			{
  372|     80|				precision = FileTimestampPrecision::Nanoseconds;
  373|     80|				needsSwap = false;
  374|     80|				break;
  375|      0|			}
  376|      3|			case NSEC_TCPDUMP_MAGIC_SWAPPED:
  ------------------
  |  Branch (376:4): [True: 3, False: 2.15k]
  ------------------
  377|      3|			{
  378|      3|				precision = FileTimestampPrecision::Nanoseconds;
  379|      3|				needsSwap = true;
  380|      3|				break;
  381|      0|			}
  382|      1|			default:
  ------------------
  |  Branch (382:4): [True: 1, False: 2.16k]
  ------------------
  383|      1|			{
  384|      1|				return PcapReadHeaderStatus::UnsupportedFormat;
  385|      0|			}
  386|  2.16k|			}
  387|       |
  388|  2.16k|			if (needsSwap)
  ------------------
  |  Branch (388:8): [True: 3, False: 2.15k]
  ------------------
  389|      3|			{
  390|      3|				header.magic = swap32(header.magic);
  391|      3|				header.version_major = swap16(header.version_major);
  392|      3|				header.version_minor = swap16(header.version_minor);
  393|      3|				header.thiszone = swap32(header.thiszone);
  394|      3|				header.sigfigs = swap32(header.sigfigs);
  395|      3|				header.snaplen = swap32(header.snaplen);
  396|      3|				header.linktype = swap32(header.linktype);
  397|      3|			}
  398|       |
  399|  2.16k|			return PcapReadHeaderStatus::Ok;
  400|  2.16k|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_16swap16Et:
  314|      6|		{
  315|      6|			return static_cast<uint16_t>((value >> 8) | (value << 8));
  316|      6|		}
PcapFileDevice.cpp:_ZN4pcpp12_GLOBAL__N_16swap32Ej:
  319|  1.17k|		{
  320|  1.17k|			return (value >> 24) | ((value >> 8) & 0x0000FF00) | ((value << 8) & 0x00FF0000) | (value << 24);
  321|  1.17k|		}

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

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

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

