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

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

_ZN4pcpp6Logger11getInstanceEv:
  369|  25.4M|		{
  370|  25.4M|			static Logger instance;
  371|  25.4M|			return instance;
  372|  25.4M|		}
_ZN4pcpp6Logger12suppressLogsEv:
  321|  14.3k|		{
  322|  14.3k|			m_LogsEnabled = false;
  323|  14.3k|		}
_ZN4pcpp9LogSourceC2ENS_9LogModuleEPKcS3_i:
  139|   205k|		    : file(file), function(function), line(line), logModule(logModule)
  140|   205k|		{}
_ZN4pcpp8internal10LogContext4initENS_8LogLevelERKNS_9LogSourceE:
  189|   205k|			{
  190|   205k|				m_Source = source;
  191|   205k|				m_Level = level;
  192|   205k|				m_Stream.clear();
  193|   205k|				m_Stream.str({});
  194|   205k|			}
_ZNK4pcpp6Logger14isDebugEnabledENS_9LogModuleE:
  280|   109k|		{
  281|   109k|			return m_LogModulesArray[module] == LogLevel::Debug;
  282|   109k|		}
_ZNK4pcpp6Logger9shouldLogENS_8LogLevelENS_9LogModuleE:
  289|  25.2M|		{
  290|  25.2M|			return level != LogLevel::Off && m_LogModulesArray[module] >= level;
  ------------------
  |  Branch (290:11): [True: 25.2M, False: 0]
  |  Branch (290:37): [True: 205k, False: 25.0M]
  ------------------
  291|  25.2M|		}
_ZN4pcpp8internal10LogContextlsIA52_cEERS1_RKT_:
  200|  4.42k|			{
  201|  4.42k|				m_Stream << value;
  202|  4.42k|				return *this;
  203|  4.42k|			}
_ZN4pcpp8internal10LogContextlsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEERS1_RKT_:
  200|    386|			{
  201|    386|				m_Stream << value;
  202|    386|				return *this;
  203|    386|			}
_ZN4pcpp8internal10LogContextlsIA2_cEERS1_RKT_:
  200|    383|			{
  201|    383|				m_Stream << value;
  202|    383|				return *this;
  203|    383|			}
_ZN4pcpp8internal10LogContextlsIPKcEERS1_RKT_:
  200|     36|			{
  201|     36|				m_Stream << value;
  202|     36|				return *this;
  203|     36|			}
_ZN4pcpp8internal10LogContextlsIA20_cEERS1_RKT_:
  200|    383|			{
  201|    383|				m_Stream << value;
  202|    383|				return *this;
  203|    383|			}
_ZN4pcpp8internal10LogContextlsIA46_cEERS1_RKT_:
  200|  10.6k|			{
  201|  10.6k|				m_Stream << value;
  202|  10.6k|				return *this;
  203|  10.6k|			}
_ZN4pcpp8internal10LogContextlsIA86_cEERS1_RKT_:
  200|  1.82k|			{
  201|  1.82k|				m_Stream << value;
  202|  1.82k|				return *this;
  203|  1.82k|			}
_ZN4pcpp8internal10LogContextlsIA26_cEERS1_RKT_:
  200|    558|			{
  201|    558|				m_Stream << value;
  202|    558|				return *this;
  203|    558|			}
_ZN4pcpp8internal10LogContextlsIA31_cEERS1_RKT_:
  200|  36.8k|			{
  201|  36.8k|				m_Stream << value;
  202|  36.8k|				return *this;
  203|  36.8k|			}
_ZN4pcpp8internal10LogContextlsIA25_cEERS1_RKT_:
  200|  40.0k|			{
  201|  40.0k|				m_Stream << value;
  202|  40.0k|				return *this;
  203|  40.0k|			}
_ZN4pcpp8internal10LogContextlsIA50_cEERS1_RKT_:
  200|  3.46k|			{
  201|  3.46k|				m_Stream << value;
  202|  3.46k|				return *this;
  203|  3.46k|			}
_ZN4pcpp8internal10LogContextlsIA77_cEERS1_RKT_:
  200|    175|			{
  201|    175|				m_Stream << value;
  202|    175|				return *this;
  203|    175|			}
_ZN4pcpp8internal10LogContextlsIA70_cEERS1_RKT_:
  200|  1.85k|			{
  201|  1.85k|				m_Stream << value;
  202|  1.85k|				return *this;
  203|  1.85k|			}
_ZN4pcpp8internal10LogContextlsIA39_cEERS1_RKT_:
  200|  4.18k|			{
  201|  4.18k|				m_Stream << value;
  202|  4.18k|				return *this;
  203|  4.18k|			}
_ZN4pcpp8internal10LogContextlsIA48_cEERS1_RKT_:
  200|     36|			{
  201|     36|				m_Stream << value;
  202|     36|				return *this;
  203|     36|			}
_ZN4pcpp8internal10LogContextlsIA21_cEERS1_RKT_:
  200|    276|			{
  201|    276|				m_Stream << value;
  202|    276|				return *this;
  203|    276|			}
_ZN4pcpp8internal10LogContextlsIA54_cEERS1_RKT_:
  200|  2.33k|			{
  201|  2.33k|				m_Stream << value;
  202|  2.33k|				return *this;
  203|  2.33k|			}
_ZN4pcpp8internal10LogContextlsIA44_cEERS1_RKT_:
  200|  2.92k|			{
  201|  2.92k|				m_Stream << value;
  202|  2.92k|				return *this;
  203|  2.92k|			}
_ZN4pcpp8internal10LogContextlsIA33_cEERS1_RKT_:
  200|    486|			{
  201|    486|				m_Stream << value;
  202|    486|				return *this;
  203|    486|			}
_ZN4pcpp8internal10LogContextlsIA59_cEERS1_RKT_:
  200|      8|			{
  201|      8|				m_Stream << value;
  202|      8|				return *this;
  203|      8|			}
_ZN4pcpp8internal10LogContextlsIA45_cEERS1_RKT_:
  200|  19.7k|			{
  201|  19.7k|				m_Stream << value;
  202|  19.7k|				return *this;
  203|  19.7k|			}
_ZN4pcpp8internal10LogContextlsIA36_cEERS1_RKT_:
  200|    358|			{
  201|    358|				m_Stream << value;
  202|    358|				return *this;
  203|    358|			}
_ZN4pcpp8internal10LogContextlsIA14_cEERS1_RKT_:
  200|    483|			{
  201|    483|				m_Stream << value;
  202|    483|				return *this;
  203|    483|			}
_ZN4pcpp8internal10LogContextlsIA72_cEERS1_RKT_:
  200|  5.62k|			{
  201|  5.62k|				m_Stream << value;
  202|  5.62k|				return *this;
  203|  5.62k|			}
_ZN4pcpp8internal10LogContextlsIiEERS1_RKT_:
  200|  58.3k|			{
  201|  58.3k|				m_Stream << value;
  202|  58.3k|				return *this;
  203|  58.3k|			}
_ZN4pcpp8internal10LogContextlsIA142_cEERS1_RKT_:
  200|  1.10k|			{
  201|  1.10k|				m_Stream << value;
  202|  1.10k|				return *this;
  203|  1.10k|			}
_ZN4pcpp8internal10LogContextlsIA76_cEERS1_RKT_:
  200|  2.40k|			{
  201|  2.40k|				m_Stream << value;
  202|  2.40k|				return *this;
  203|  2.40k|			}
_ZN4pcpp8internal10LogContextlsIA85_cEERS1_RKT_:
  200|  5.73k|			{
  201|  5.73k|				m_Stream << value;
  202|  5.73k|				return *this;
  203|  5.73k|			}
_ZN4pcpp8internal10LogContextlsIA75_cEERS1_RKT_:
  200|  3.37k|			{
  201|  3.37k|				m_Stream << value;
  202|  3.37k|				return *this;
  203|  3.37k|			}
_ZN4pcpp8internal10LogContextlsIA84_cEERS1_RKT_:
  200|  2.07k|			{
  201|  2.07k|				m_Stream << value;
  202|  2.07k|				return *this;
  203|  2.07k|			}
_ZN4pcpp8internal10LogContextlsIA69_cEERS1_RKT_:
  200|  3.77k|			{
  201|  3.77k|				m_Stream << value;
  202|  3.77k|				return *this;
  203|  3.77k|			}
_ZN4pcpp8internal10LogContextlsIA73_cEERS1_RKT_:
  200|    509|			{
  201|    509|				m_Stream << value;
  202|    509|				return *this;
  203|    509|			}
_ZN4pcpp8internal10LogContextlsIA98_cEERS1_RKT_:
  200|  20.7k|			{
  201|  20.7k|				m_Stream << value;
  202|  20.7k|				return *this;
  203|  20.7k|			}
_ZN4pcpp8internal10LogContextlsIA43_cEERS1_RKT_:
  200|  17.4k|			{
  201|  17.4k|				m_Stream << value;
  202|  17.4k|				return *this;
  203|  17.4k|			}
_ZN4pcpp8internal10LogContextlsIA64_cEERS1_RKT_:
  200|     21|			{
  201|     21|				m_Stream << value;
  202|     21|				return *this;
  203|     21|			}
_ZN4pcpp8internal10LogContextlsIA38_cEERS1_RKT_:
  200|  3.55k|			{
  201|  3.55k|				m_Stream << value;
  202|  3.55k|				return *this;
  203|  3.55k|			}
_ZN4pcpp8internal10LogContextlsIA40_cEERS1_RKT_:
  200|  40.0k|			{
  201|  40.0k|				m_Stream << value;
  202|  40.0k|				return *this;
  203|  40.0k|			}
_ZN4pcpp8internal10LogContextlsIA41_cEERS1_RKT_:
  200|  2.92k|			{
  201|  2.92k|				m_Stream << value;
  202|  2.92k|				return *this;
  203|  2.92k|			}
_ZN4pcpp8internal10LogContextlsIA141_cEERS1_RKT_:
  200|  1.25k|			{
  201|  1.25k|				m_Stream << value;
  202|  1.25k|				return *this;
  203|  1.25k|			}
_ZN4pcpp8internal10LogContextlsIA67_cEERS1_RKT_:
  200|  3.97k|			{
  201|  3.97k|				m_Stream << value;
  202|  3.97k|				return *this;
  203|  3.97k|			}
_ZN4pcpp9LogSourceC2Ev:
  126|      2|		constexpr LogSource() = default;
_ZN4pcpp8internal10LogContextC2Ev:
  177|      2|			LogContext() = default;

_ZN4pcpp10MacAddressC2EPKh:
   36|   712k|		explicit MacAddress(const uint8_t addr[6]) : MacAddress(addr, 6)
   37|   712k|		{}
_ZN4pcpp10MacAddressC2Ehhhhhh:
   83|      4|		    : m_Address{ firstOctet, secondOctet, thirdOctet, fourthOctet, fifthOctet, sixthOctet }
   84|      4|		{}
_ZNK4pcpp10MacAddresseqERKS0_:
  103|  20.8k|		{
  104|  20.8k|			return m_Address == other.m_Address;
  105|  20.8k|		}
_ZNK4pcpp10MacAddressneERKS0_:
  111|  20.8k|		{
  112|  20.8k|			return !operator==(other);
  113|  20.8k|		}
_ZN4pcpp10MacAddressC2ILm18EEERAT__Kc:
   71|      4|		MacAddress(const char (&addr)[N]) : MacAddress(std::string(addr, std::find(addr, addr + N, '\0')))
   72|      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|   205k|			{
   69|   205k|				return std::unique_ptr<T>(acquireObjectRaw());
   70|   205k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE16acquireObjectRawEv:
   79|   205k|			{
   80|   205k|				std::unique_lock<std::mutex> lock(m_Mutex);
   81|       |
   82|   205k|				if (m_Pool.empty())
  ------------------
  |  Branch (82:9): [True: 0, False: 205k]
  ------------------
   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|   205k|				T* obj = m_Pool.top();
   90|   205k|				m_Pool.pop();
   91|   205k|				return obj;
   92|   205k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE13releaseObjectENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEE:
  101|   205k|			{
  102|   205k|				releaseObjectRaw(obj.release());
  103|   205k|			}
_ZN4pcpp8internal17DynamicObjectPoolINS0_10LogContextELb1EE16releaseObjectRawEPS2_:
  112|   205k|			{
  113|   205k|				std::unique_lock<std::mutex> lock(m_Mutex);
  114|       |
  115|   205k|				if (m_MaxPoolSize == INFINITE_POOL_SIZE || m_Pool.size() < m_MaxPoolSize)
  ------------------
  |  Branch (115:9): [True: 0, False: 205k]
  |  Branch (115:48): [True: 205k, False: 0]
  ------------------
  116|   205k|				{
  117|   205k|					m_Pool.push(obj);
  118|   205k|				}
  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|   205k|			}

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

_ZN4pcpp15FieldDescriptorC2EtNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPFNS1_6vectorIS0_NS5_IS0_EEEEvE:
   35|    814|		    : id(fieldId), name(std::move(fieldName)), getChildren(fieldChildren)
   36|    814|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_8DnsLayer16SerializedFields11QueryObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_8DnsLayer16SerializedFields14ResourceObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_9IPv6Layer16SerializedFields19IPv6ExtensionObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_6Packet16SerializedFields15TimestampObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_13SomeIpSdLayer16SerializedFields11EntryObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_13SomeIpSdLayer16SerializedFields12OptionObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_11GeneveLayer16SerializedFields12OptionObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_11HttpMessage16SerializedFields17HeaderFieldObjectEEC2EtNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   54|      2|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      2|		{}
_ZN4pcpp21ObjectFieldDescriptorINS_25StpConfigurationBPDULayer24BridgeIdSerializedFieldsEEC2EtNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
   54|      6|		    : FieldDescriptor(fieldId, std::move(fieldName), &Derived::all)
   55|      6|		{}

_ZN4pcpp20byteArrayToHexStringEPKhmi:
   17|   232k|	{
   18|   232k|		if (stringSizeLimit <= 0)
  ------------------
  |  Branch (18:7): [True: 127k, False: 105k]
  ------------------
   19|   127k|		{
   20|   127k|			stringSizeLimit = static_cast<int>(byteArrSize);
   21|   127k|		}
   22|       |
   23|   232k|		std::stringstream dataStream;
   24|   232k|		dataStream << std::hex;
   25|  1.68M|		for (size_t i = 0; i < byteArrSize; ++i)
  ------------------
  |  Branch (25:22): [True: 1.47M, False: 213k]
  ------------------
   26|  1.47M|		{
   27|  1.47M|			if (i >= static_cast<size_t>(stringSizeLimit))
  ------------------
  |  Branch (27:8): [True: 19.0k, False: 1.45M]
  ------------------
   28|  19.0k|			{
   29|  19.0k|				break;
   30|  19.0k|			}
   31|       |
   32|  1.45M|			dataStream << std::setw(2) << std::setfill('0') << static_cast<int>(byteArr[i]);
   33|  1.45M|		}
   34|       |
   35|   232k|		return dataStream.str();
   36|   232k|	}
_ZN4pcpp20hexStringToByteArrayERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPhm:
   56|  67.7k|	{
   57|  67.7k|		if (hexString.size() % 2 != 0)
  ------------------
  |  Branch (57:7): [True: 0, False: 67.7k]
  ------------------
   58|      0|		{
   59|      0|			PCPP_LOG_ERROR("Input string is in odd size");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|      0|			return 0;
   61|      0|		}
   62|       |
   63|  67.7k|		memset(resultByteArr, 0, resultByteArrSize);
   64|   519k|		for (size_t i = 0; i < hexString.length(); i += 2)
  ------------------
  |  Branch (64:22): [True: 452k, False: 67.7k]
  ------------------
   65|   452k|		{
   66|   452k|			if (i >= resultByteArrSize * 2)
  ------------------
  |  Branch (66:8): [True: 0, False: 452k]
  ------------------
   67|      0|			{
   68|      0|				return resultByteArrSize;
   69|      0|			}
   70|       |
   71|   452k|			const int firstChar = char2int(hexString[i]);
   72|   452k|			const int secondChar = char2int(hexString[i + 1]);
   73|   452k|			if (firstChar < 0 || secondChar < 0)
  ------------------
  |  Branch (73:8): [True: 0, False: 452k]
  |  Branch (73:25): [True: 0, False: 452k]
  ------------------
   74|      0|			{
   75|      0|				PCPP_LOG_ERROR("Input string has an illegal character");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE CommonLogModuleGenericUtils
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|      0|				resultByteArr[0] = '\0';
   77|      0|				return 0;
   78|      0|			}
   79|       |
   80|   452k|			resultByteArr[i / 2] = (firstChar << 4) | secondChar;
   81|   452k|		}
   82|       |
   83|  67.7k|		return hexString.length() / 2;
   84|  67.7k|	}
_ZN4pcpp21cross_platform_memmemEPKcmS1_m:
   87|  85.0k|	{
   88|  85.0k|		char* ptr = const_cast<char*>(haystack);
   89|   661k|		while (needleLen <= (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (89:10): [True: 660k, False: 743]
  ------------------
   90|   660k|		{
   91|   660k|			if (nullptr !=
  ------------------
  |  Branch (91:8): [True: 624k, False: 35.4k]
  ------------------
   92|   660k|			    (ptr = static_cast<char*>(memchr(ptr, static_cast<int>(*needle), haystackLen - (ptr - haystack)))))
   93|   624k|			{
   94|       |				// check if there is room to do a memcmp
   95|   624k|				if (needleLen > (haystackLen - (ptr - haystack)))
  ------------------
  |  Branch (95:9): [True: 514, False: 624k]
  ------------------
   96|    514|				{
   97|    514|					return nullptr;
   98|    514|				}
   99|       |
  100|   624k|				if (0 == memcmp(ptr, needle, needleLen))
  ------------------
  |  Branch (100:9): [True: 48.3k, False: 576k]
  ------------------
  101|  48.3k|				{
  102|  48.3k|					return ptr;
  103|  48.3k|				}
  104|   576k|				++ptr;
  105|   576k|			}
  106|  35.4k|			else
  107|  35.4k|			{
  108|  35.4k|				break;
  109|  35.4k|			}
  110|   660k|		}
  111|       |
  112|  36.2k|		return nullptr;
  113|  85.0k|	}
GeneralUtils.cpp:_ZN4pcppL8char2intEc:
   39|   904k|	{
   40|   904k|		if (input >= '0' && input <= '9')
  ------------------
  |  Branch (40:7): [True: 904k, False: 0]
  |  Branch (40:23): [True: 764k, False: 139k]
  ------------------
   41|   764k|		{
   42|   764k|			return input - '0';
   43|   764k|		}
   44|   139k|		if (input >= 'A' && input <= 'F')
  ------------------
  |  Branch (44:7): [True: 139k, False: 0]
  |  Branch (44:23): [True: 0, False: 139k]
  ------------------
   45|      0|		{
   46|      0|			return input - 'A' + 10;
   47|      0|		}
   48|   139k|		if (input >= 'a' && input <= 'f')
  ------------------
  |  Branch (48:7): [True: 139k, False: 0]
  |  Branch (48:23): [True: 139k, False: 0]
  ------------------
   49|   139k|		{
   50|   139k|			return input - 'a' + 10;
   51|   139k|		}
   52|      0|		return -1;
   53|   139k|	}

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

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

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

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

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

_ZNK4pcpp10Asn1Record10getTagTypeEv:
  164|  81.5k|		{
  165|  81.5k|			return m_TagType;
  166|  81.5k|		}
_ZNK4pcpp10Asn1Record14getTotalLengthEv:
  176|   892k|		{
  177|   892k|			return m_TotalLength;
  178|   892k|		}
_ZN4pcpp21Asn1ConstructedRecord13getSubRecordsEv:
  313|   110k|		{
  314|   110k|			decodeValueIfNeeded();
  315|   110k|			return m_SubRecords;
  316|   110k|		};
_ZNK4pcpp14Asn1NullRecord11decodeValueEPKh:
  688|  1.29k|		{}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE11decodeValueEPKh:
  553|   134k|		{
  554|   134k|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|   134k|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EE8getValueEv:
  537|  1.15k|		{
  538|  1.15k|			decodeValueIfNeeded();
  539|  1.15k|			return m_Value;
  540|  1.15k|		};
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EE11decodeValueEPKh:
  553|    404|		{
  554|    404|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|    404|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EE11decodeValueEPKh:
  553|    182|		{
  554|    182|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|    182|		}
_ZNK4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EE11decodeValueEPKh:
  553|    217|		{
  554|    217|			m_Value = std::string(reinterpret_cast<char const*>(data), m_ValueLength);
  555|    217|		}
_ZN4pcpp10Asn1Record6castAsINS_18Asn1SequenceRecordEEEPT_v:
  188|   102k|		{
  189|   102k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|   102k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 2.14k, False: 100k]
  ------------------
  191|  2.14k|			{
  192|  2.14k|				throw std::bad_cast();
  193|  2.14k|			}
  194|   100k|			return result;
  195|   102k|		}
_ZNK4pcpp17Asn1IntegerRecord11getIntValueIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS4_EE5valueEiE4typeELi0EEES4_v:
  425|  6.26k|		{
  426|  6.26k|			decodeValueIfNeeded();
  427|  6.26k|			return m_Value.getInt<T>();
  428|  6.26k|		}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6getIntIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEES5_v:
  476|  6.26k|			{
  477|  6.26k|				if (!canFit<T>())
  ------------------
  |  Branch (477:9): [True: 0, False: 6.26k]
  ------------------
  478|      0|				{
  479|      0|					throw std::overflow_error("Value cannot fit into requested int type");
  480|      0|				}
  481|       |
  482|  6.26k|				std::stringstream sstream;
  483|  6.26k|				sstream << std::hex << m_Value;
  484|       |
  485|  6.26k|				uint64_t result;
  486|  6.26k|				sstream >> result;
  487|  6.26k|				return static_cast<T>(result);
  488|  6.26k|			}
_ZNK4pcpp17Asn1IntegerRecord6BigInt6canFitIhTnNSt3__19enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_unsignedIS5_EE5valueEiE4typeELi0EEEbv:
  491|  6.26k|			{
  492|  6.26k|				return sizeof(T) >= (m_Value.size() + 1) / 2;
  493|  6.26k|			}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1OctetStringRecordEEEPT_v:
  188|  1.15k|		{
  189|  1.15k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  1.15k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 1.15k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  1.15k|			return result;
  195|  1.15k|		}
_ZN4pcpp10Asn1Record6castAsINS_21Asn1ConstructedRecordEEEPT_v:
  188|  27.7k|		{
  189|  27.7k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  27.7k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 532, False: 27.2k]
  ------------------
  191|    532|			{
  192|    532|				throw std::bad_cast();
  193|    532|			}
  194|  27.2k|			return result;
  195|  27.7k|		}
_ZN4pcpp18Asn1SequenceRecordC2Ev:
  368|   103k|		Asn1SequenceRecord() = default;
_ZN4pcpp21Asn1ConstructedRecordC2Ev:
  319|   206k|		Asn1ConstructedRecord() = default;
_ZN4pcpp13Asn1SetRecordC2Ev:
  387|  16.5k|		Asn1SetRecord() = default;
_ZN4pcpp17Asn1IntegerRecordC2Ev:
  447|   107k|		Asn1IntegerRecord() = default;
_ZN4pcpp19Asn1PrimitiveRecordC2Ev:
  398|   118k|		Asn1PrimitiveRecord() = default;
_ZN4pcpp20Asn1EnumeratedRecordC2Ev:
  526|  26.0k|		Asn1EnumeratedRecord() = default;
_ZN4pcpp21Asn1OctetStringRecordC2Ev:
  593|   151k|		Asn1OctetStringRecord() = default;
_ZN4pcpp20Asn1UTF8StringRecordC2Ev:
  611|    419|		Asn1UTF8StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE12EEC2Ev:
  543|    419|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|    419|		{}
_ZN4pcpp25Asn1PrintableStringRecordC2Ev:
  627|    197|		Asn1PrintableStringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE19EEC2Ev:
  543|    197|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|    197|		{}
_ZN4pcpp19Asn1IA5StringRecordC2Ev:
  643|    232|		Asn1IA5StringRecord() = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE22EEC2Ev:
  543|    232|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|    232|		{}
_ZN4pcpp17Asn1BooleanRecordC2Ev:
  671|  6.62k|		Asn1BooleanRecord() = default;
_ZN4pcpp19Asn1BitStringRecordC2Ev:
  924|    641|		Asn1BitStringRecord() = default;
_ZN4pcpp26Asn1ObjectIdentifierRecordC2Ev:
  779|  2.07k|		Asn1ObjectIdentifierRecord() = default;
_ZN4pcpp17Asn1UtcTimeRecordC2Ev:
  839|    264|		Asn1UtcTimeRecord() = default;
_ZN4pcpp14Asn1TimeRecordC2Ev:
  808|  1.79k|		Asn1TimeRecord() = default;
_ZN4pcpp25Asn1GeneralizedTimeRecordC2Ev:
  863|  1.53k|		Asn1GeneralizedTimeRecord() = default;
_ZN4pcpp17Asn1GenericRecordC2Ev:
  278|  25.5k|		Asn1GenericRecord() = default;
_ZN4pcpp10Asn1RecordC2Ev:
  207|   504k|		Asn1Record() = default;
_ZN4pcpp10Asn1RecordD2Ev:
  197|   504k|		virtual ~Asn1Record() = default;
_ZN4pcpp17Asn1IntegerRecord6BigIntC2Ev:
  458|   107k|			BigInt() = default;
_ZN4pcpp20Asn1ObjectIdentifierC2Ev:
  746|  2.07k|		Asn1ObjectIdentifier() = default;
_ZN4pcpp19Asn1BitStringRecord6BitSetC2Ev:
  903|    681|			BitSet() = default;
_ZN4pcpp17Asn1GenericRecordD2Ev:
  268|  25.5k|		~Asn1GenericRecord() override = default;
_ZN4pcpp16Asn1StringRecordILNS_20Asn1UniversalTagTypeE4EEC2Ev:
  543|   151k|		Asn1StringRecord() : Asn1PrimitiveRecord(TagType)
  544|   151k|		{}
_ZN4pcpp10Asn1Record6castAsINS_20Asn1EnumeratedRecordEEEPT_v:
  188|  6.26k|		{
  189|  6.26k|			auto result = dynamic_cast<Asn1RecordType*>(this);
  190|  6.26k|			if (result == nullptr)
  ------------------
  |  Branch (190:8): [True: 0, False: 6.26k]
  ------------------
  191|      0|			{
  192|      0|				throw std::bad_cast();
  193|      0|			}
  194|  6.26k|			return result;
  195|  6.26k|		}

_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  269|  60.6k|			prefix_and_ip(uint8_t prefixVal, const std::string& ipAddrVal) : prefix(prefixVal), ipAddr(ipAddrVal)
  270|  60.6k|			{}
_ZN4pcpp8BgpLayer9isBgpPortEtt:
   66|   333k|		{
   67|   333k|			return portSrc == 179 || portDst == 179;
  ------------------
  |  Branch (67:11): [True: 18.9k, False: 314k]
  |  Branch (67:29): [True: 31.7k, False: 282k]
  ------------------
   68|   333k|		}
_ZNK4pcpp8BgpLayer16getOsiModelLayerEv:
   92|  17.9k|		{
   93|  17.9k|			return OsiModelApplicationLayer;
   94|  17.9k|		}
_ZN4pcpp8BgpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  107|   153k|		    : Layer(data, dataLen, prevLayer, packet, BGP)
  108|   153k|		{}
_ZNK4pcpp8BgpLayer14getBasicHeaderEv:
  111|  1.36M|		{
  112|  1.36M|			return reinterpret_cast<bgp_common_header*>(m_Data);
  113|  1.36M|		}
_ZN4pcpp19BgpOpenMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  172|  24.8k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  173|  24.8k|		{}
_ZNK4pcpp19BgpOpenMessageLayer16getOpenMsgHeaderEv:
  195|  34.3k|		{
  196|  34.3k|			return reinterpret_cast<bgp_open_message*>(m_Data);
  197|  34.3k|		}
_ZNK4pcpp19BgpOpenMessageLayer17getBgpMessageTypeEv:
  235|  14.7k|		{
  236|  14.7k|			return BgpLayer::Open;
  237|  14.7k|		}
_ZN4pcpp21BgpUpdateMessageLayer13prefix_and_ipC2Ev:
  263|  13.3k|			prefix_and_ip() : prefix(0), ipAddr(IPv4Address::Zero)
  264|  13.3k|			{}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2Ev:
  289|  31.8k|			{}
_ZN4pcpp21BgpUpdateMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  306|   117k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  307|   117k|		{}
_ZNK4pcpp21BgpUpdateMessageLayer17getBgpMessageTypeEv:
  401|  48.6k|		{
  402|  48.6k|			return BgpLayer::Update;
  403|  48.6k|		}
_ZN4pcpp27BgpNotificationMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  438|  4.51k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  439|  4.51k|		{}
_ZNK4pcpp27BgpNotificationMessageLayer17getBgpMessageTypeEv:
  503|  3.05k|		{
  504|  3.05k|			return BgpLayer::Notification;
  505|  3.05k|		}
_ZN4pcpp24BgpKeepaliveMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  527|  3.67k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  528|  3.67k|		{}
_ZNK4pcpp24BgpKeepaliveMessageLayer17getBgpMessageTypeEv:
  544|  2.90k|		{
  545|  2.90k|			return BgpLayer::Keepalive;
  546|  2.90k|		}
_ZN4pcpp27BgpRouteRefreshMessageLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  574|  2.95k|		    : BgpLayer(data, dataLen, prevLayer, packet)
  575|  2.95k|		{}
_ZNK4pcpp27BgpRouteRefreshMessageLayer17getBgpMessageTypeEv:
  593|  2.30k|		{
  594|  2.30k|			return BgpLayer::RouteRefresh;
  595|  2.30k|		}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2Ev:
  157|  19.4k|			optional_parameter() = default;

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

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

_ZNK4pcpp9DhcpLayer9getOpCodeEv:
  609|  3.38k|		{
  610|  3.38k|			return static_cast<BootpOpCodes>(getDhcpHeader()->opCode);
  611|  3.38k|		}
_ZNK4pcpp9DhcpLayer13getDhcpHeaderEv:
  603|  27.1k|		{
  604|  27.1k|			return reinterpret_cast<dhcp_header*>(m_Data);
  605|  27.1k|		}
_ZNK4pcpp9DhcpLayer18getClientIpAddressEv:
  616|  3.38k|		{
  617|  3.38k|			return getDhcpHeader()->clientIpAddress;
  618|  3.38k|		}
_ZNK4pcpp9DhcpLayer16getYourIpAddressEv:
  643|  3.38k|		{
  644|  3.38k|			return getDhcpHeader()->yourIpAddress;
  645|  3.38k|		}
_ZNK4pcpp9DhcpLayer18getServerIpAddressEv:
  630|  3.38k|		{
  631|  3.38k|			return getDhcpHeader()->serverIpAddress;
  632|  3.38k|		}
_ZNK4pcpp9DhcpLayer19getGatewayIpAddressEv:
  657|  3.38k|		{
  658|  3.38k|			return getDhcpHeader()->gatewayIpAddress;
  659|  3.38k|		}
_ZNK4pcpp10DhcpOption16getValueAsIpAddrEv:
  400|  3.32k|		{
  401|  3.32k|			return getValueAs<uint32_t>();
  402|  3.32k|		}
_ZNK4pcpp10DhcpOption16getValueAsStringEi:
  420|  3.32k|		{
  421|       |			// TODO: This will burn if valueOffset is negative.
  422|       |			// Should negative offsets even be allowed? Potentially change it to size_t?
  423|  3.32k|			if (m_Data == nullptr || getDataSize() < static_cast<size_t>(valueOffset) + 1)
  ------------------
  |  Branch (423:8): [True: 0, False: 3.32k]
  |  Branch (423:29): [True: 724, False: 2.60k]
  ------------------
  424|    724|				return "";
  425|       |
  426|  2.60k|			return std::string(reinterpret_cast<const char*>(m_Data->recordValue) + valueOffset,
  427|  2.60k|			                   static_cast<int>(m_Data->recordLen) - valueOffset);
  428|  3.32k|		}
_ZNK4pcpp10DhcpOption12getTotalSizeEv:
  471|  1.23M|		{
  472|  1.23M|			if (m_Data == nullptr)
  ------------------
  |  Branch (472:8): [True: 0, False: 1.23M]
  ------------------
  473|      0|				return 0;
  474|       |
  475|  1.23M|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (475:8): [True: 28.7k, False: 1.20M]
  ------------------
  476|  1.20M|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (476:8): [True: 902k, False: 299k]
  ------------------
  477|   931k|				return sizeof(uint8_t);
  478|       |
  479|   299k|			return sizeof(uint8_t) * 2 + static_cast<size_t>(m_Data->recordLen);
  480|  1.23M|		}
_ZNK4pcpp10DhcpOption11getDataSizeEv:
  483|  13.0k|		{
  484|  13.0k|			if (m_Data == nullptr)
  ------------------
  |  Branch (484:8): [True: 0, False: 13.0k]
  ------------------
  485|      0|				return 0;
  486|       |
  487|  13.0k|			if (m_Data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (487:8): [True: 26, False: 12.9k]
  ------------------
  488|  12.9k|			    m_Data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (488:8): [True: 530, False: 12.4k]
  ------------------
  489|    556|				return 0;
  490|       |
  491|  12.4k|			return m_Data->recordLen;
  492|  13.0k|		}
_ZN4pcpp10DhcpOptionC2EPh:
  391|   265k|		explicit DhcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  392|   265k|		{}
_ZN4pcpp10DhcpOption9canAssignEPKhm:
  453|   265k|		{
  454|   265k|			auto data = reinterpret_cast<TLVRawData const*>(recordRawData);
  455|   265k|			if (data == nullptr)
  ------------------
  |  Branch (455:8): [True: 0, False: 265k]
  ------------------
  456|      0|				return false;
  457|       |
  458|   265k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (458:8): [True: 9.89k, False: 255k]
  ------------------
  459|  9.89k|				return false;
  460|       |
  461|   255k|			if (data->recordType == static_cast<uint8_t>(DHCPOPT_END) ||
  ------------------
  |  Branch (461:8): [True: 5.76k, False: 249k]
  ------------------
  462|   249k|			    data->recordType == static_cast<uint8_t>(DHCPOPT_PAD))
  ------------------
  |  Branch (462:8): [True: 182k, False: 66.8k]
  ------------------
  463|   188k|				return true;
  464|       |
  465|  66.8k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  466|   255k|		}
_ZN4pcpp9DhcpLayer11isDataValidEPKhm:
  595|  17.4k|		{
  596|  17.4k|			return canReinterpretAs<dhcp_header>(data, dataLen);
  597|  17.4k|		}
_ZN4pcpp9DhcpLayer14parseNextLayerEv:
  744|  17.2k|		{}
_ZNK4pcpp9DhcpLayer12getHeaderLenEv:
  748|   142k|		{
  749|   142k|			return m_DataLen;
  750|   142k|		}
_ZNK4pcpp9DhcpLayer16getOsiModelLayerEv:
  822|  3.38k|		{
  823|  3.38k|			return OsiModelApplicationLayer;
  824|  3.38k|		}
_ZNK4pcpp9DhcpLayer17getOptionsBasePtrEv:
  831|   139k|		{
  832|   139k|			return m_Data + sizeof(dhcp_header);
  833|   139k|		}
_ZN4pcpp9DhcpLayer11isDhcpPortsEtt:
  845|   416k|	{
  846|   416k|		return ((portSrc == 68 && portDst == 67) || (portSrc == 67 && portDst == 68) ||
  ------------------
  |  Branch (846:12): [True: 5.10k, False: 411k]
  |  Branch (846:29): [True: 3.62k, False: 1.48k]
  |  Branch (846:48): [True: 14.0k, False: 399k]
  |  Branch (846:65): [True: 13.8k, False: 216]
  ------------------
  847|   399k|		        (portSrc == 67 && portDst == 67));
  ------------------
  |  Branch (847:12): [True: 216, False: 399k]
  |  Branch (847:29): [True: 20, False: 196]
  ------------------
  848|   416k|	}
_ZN4pcpp9DhcpLayerD2Ev:
  592|  17.2k|		~DhcpLayer() override = default;

_ZN4pcpp12DhcpV6OptionC2EPh:
  192|  33.2k|		explicit DhcpV6Option(uint8_t* optionRawData) : TLVRecord(optionRawData)
  193|  33.2k|		{}
_ZN4pcpp11DhcpV6Layer14parseNextLayerEv:
  353|  19.2k|		{}
_ZNK4pcpp11DhcpV6Layer12getHeaderLenEv:
  357|  34.3k|		{
  358|  34.3k|			return m_DataLen;
  359|  34.3k|		}
_ZN4pcpp11DhcpV6Layer22computeCalculateFieldsEv:
  363|  3.69k|		{}
_ZNK4pcpp11DhcpV6Layer16getOsiModelLayerEv:
  390|  3.69k|		{
  391|  3.69k|			return OsiModelApplicationLayer;
  392|  3.69k|		}
_ZNK4pcpp11DhcpV6Layer17getOptionsBasePtrEv:
  399|  30.6k|		{
  400|  30.6k|			return m_Data + sizeof(dhcpv6_header);
  401|  30.6k|		}
_ZNK4pcpp11DhcpV6Layer13getDhcpHeaderEv:
  403|  11.0k|		{
  404|  11.0k|			return reinterpret_cast<dhcpv6_header*>(m_Data);
  405|  11.0k|		}
_ZN4pcpp11DhcpV6Layer12isDhcpV6PortEt:
  414|   350k|	{
  415|   350k|		return (port == 546) || (port == 547);
  ------------------
  |  Branch (415:10): [True: 14.8k, False: 336k]
  |  Branch (415:27): [True: 4.57k, False: 331k]
  ------------------
  416|   350k|	}
_ZN4pcpp11DhcpV6Layer11isDataValidEPKhm:
  419|  19.4k|	{
  420|  19.4k|		return data && dataLen >= sizeof(dhcpv6_header);
  ------------------
  |  Branch (420:10): [True: 19.4k, False: 0]
  |  Branch (420:18): [True: 19.2k, False: 200]
  ------------------
  421|  19.4k|	}

_ZN4pcpp8DnsLayer14parseNextLayerEv:
  354|  70.4k|		{}
_ZNK4pcpp8DnsLayer12getHeaderLenEv:
  359|   171k|		{
  360|   171k|			return m_DataLen;
  361|   171k|		}  // No layer above DNS
_ZN4pcpp8DnsLayer22computeCalculateFieldsEv:
  365|  10.3k|		{}
_ZNK4pcpp8DnsLayer16getOsiModelLayerEv:
  370|  12.9k|		{
  371|  12.9k|			return OsiModelApplicationLayer;
  372|  12.9k|		}
_ZN4pcpp15DnsOverTcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  570|  13.7k|		    : DnsLayer(data, dataLen, prevLayer, packet, sizeof(uint16_t))
  571|  13.7k|		{}
_ZN4pcpp8DnsLayer9isDnsPortEt:
  619|  1.11M|	{
  620|  1.11M|		switch (port)
  621|  1.11M|		{
  622|  33.5k|		case 53:
  ------------------
  |  Branch (622:3): [True: 33.5k, False: 1.07M]
  ------------------
  623|  40.3k|		case 5353:
  ------------------
  |  Branch (623:3): [True: 6.80k, False: 1.10M]
  ------------------
  624|  70.4k|		case 5355:
  ------------------
  |  Branch (624:3): [True: 30.0k, False: 1.08M]
  ------------------
  625|  70.4k|			return true;
  626|  1.04M|		default:
  ------------------
  |  Branch (626:3): [True: 1.04M, False: 70.4k]
  ------------------
  627|  1.04M|			return false;
  628|  1.11M|		}
  629|  1.11M|	}
_ZN4pcpp8DnsLayer11isDataValidEPKhmb:
  632|   664k|	{
  633|   664k|		size_t minSize = sizeof(dnshdr) + (dnsOverTcp ? sizeof(uint16_t) : 0);
  ------------------
  |  Branch (633:38): [True: 266k, False: 398k]
  ------------------
  634|   664k|		return data && dataLen >= minSize;
  ------------------
  |  Branch (634:10): [True: 664k, False: 0]
  |  Branch (634:18): [True: 582k, False: 82.3k]
  ------------------
  635|   664k|	}

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

_ZN4pcpp19IPv4DnsResourceDataC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  168|  12.9k|		explicit IPv4DnsResourceData(const std::string& addrAsString) : m_Data(addrAsString)
  169|  12.9k|		{}
_ZN4pcpp16IDnsResourceDataC2Ev:
   31|  25.8k|		{}
_ZN4pcpp16IDnsResourceDataD2Ev:
   39|  12.9k|		virtual ~IDnsResourceData() = default;
_ZN4pcpp22GenericDnsResourceDataD2Ev:
  327|  12.9k|		{
  328|  12.9k|			if (m_Data != nullptr)
  ------------------
  |  Branch (328:8): [True: 12.9k, False: 0]
  ------------------
  329|  12.9k|				delete[] m_Data;
  330|  12.9k|		}
_ZNK4pcpp16IDnsResourceData8isTypeOfINS_19IPv4DnsResourceDataEEEbv:
   45|  18.5k|		{
   46|  18.5k|			return dynamic_cast<const IDnsResourceDataType*>(this) != nullptr;
   47|  18.5k|		}

_ZN4pcpp9DoIpLayer10isDoIpPortEt:
  667|   615k|	{
  668|   615k|		auto portAsEnum = static_cast<DoIpPorts>(port);
  669|   615k|		return (portAsEnum == DoIpPorts::TCP_UDP_PORT || portAsEnum == DoIpPorts::TLS_PORT);
  ------------------
  |  Branch (669:11): [True: 74.8k, False: 540k]
  |  Branch (669:52): [True: 23, False: 540k]
  ------------------
  670|   615k|	}
_ZNK4pcpp9DoIpLayer12getHeaderLenEv:
  628|  9.85k|		{
  629|  9.85k|			return m_DataLen;
  630|  9.85k|		}
_ZN4pcpp9DoIpLayer22computeCalculateFieldsEv:
  635|  11.0k|		{}
_ZNK4pcpp9DoIpLayer16getOsiModelLayerEv:
  638|  11.0k|		{
  639|  11.0k|			return OsiModelApplicationLayer;
  640|  11.0k|		}
_ZNK4pcpp21DoIpGenericHeaderNack14getPayloadTypeEv:
  792|  12.2k|		{
  793|  12.2k|			return DoIpPayloadTypes::GENERIC_HEADER_NACK;
  794|  12.2k|		}
_ZN4pcpp21DoIpGenericHeaderNack14isDataLenValidEm:
  800|  7.41k|		{
  801|  7.41k|			return (dataLen == FIXED_LEN);
  802|  7.41k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  836|  5.81k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
  837|  5.81k|		{}
_ZNK4pcpp32DoIpVehicleIdentificationRequest14getPayloadTypeEv:
  844|  10.2k|		{
  845|  10.2k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST;
  846|  10.2k|		}
_ZN4pcpp32DoIpVehicleIdentificationRequest14isDataLenValidEm:
  852|  5.83k|		{
  853|  5.83k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
  854|  5.83k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithEID14getPayloadTypeEv:
  892|  3.51k|		{
  893|  3.51k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID;
  894|  3.51k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEID14isDataLenValidEm:
  900|  2.02k|		{
  901|  2.02k|			return (dataLen == FIXED_LEN);
  902|  2.02k|		}
_ZNK4pcpp39DoIpVehicleIdentificationRequestWithVIN14getPayloadTypeEv:
  953|  6.48k|		{
  954|  6.48k|			return DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN;
  955|  6.48k|		}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVIN14isDataLenValidEm:
  961|  3.86k|		{
  962|  3.86k|			return (dataLen == FIXED_LEN);
  963|  3.86k|		}
_ZNK4pcpp30DoIpVehicleAnnouncementMessage14getPayloadTypeEv:
 1070|  3.96k|		{
 1071|  3.96k|			return DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE;
 1072|  3.96k|		}
_ZN4pcpp30DoIpVehicleAnnouncementMessage14isDataLenValidEm:
 1078|  2.24k|		{
 1079|  2.24k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1079:12): [True: 2.20k, False: 39]
  |  Branch (1079:36): [True: 0, False: 39]
  ------------------
 1080|  2.24k|		}
_ZNK4pcpp28DoIpRoutingActivationRequest14getPayloadTypeEv:
 1178|  4.68k|		{
 1179|  4.68k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST;
 1180|  4.68k|		}
_ZN4pcpp28DoIpRoutingActivationRequest14isDataLenValidEm:
 1186|  2.69k|		{
 1187|  2.69k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1187:12): [True: 0, False: 2.69k]
  |  Branch (1187:36): [True: 2.60k, False: 90]
  ------------------
 1188|  2.69k|		}
_ZNK4pcpp29DoIpRoutingActivationResponse14getPayloadTypeEv:
 1291|  3.69k|		{
 1292|  3.69k|			return DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE;
 1293|  3.69k|		}
_ZN4pcpp29DoIpRoutingActivationResponse14isDataLenValidEm:
 1299|  2.13k|		{
 1300|  2.13k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1300:12): [True: 2.05k, False: 78]
  |  Branch (1300:36): [True: 0, False: 78]
  ------------------
 1301|  2.13k|		}
_ZN4pcpp21DoIpAliveCheckRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1343|  6.17k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1344|  6.17k|		{}
_ZNK4pcpp21DoIpAliveCheckRequest14getPayloadTypeEv:
 1351|  10.7k|		{
 1352|  10.7k|			return DoIpPayloadTypes::ALIVE_CHECK_REQUEST;
 1353|  10.7k|		}
_ZN4pcpp21DoIpAliveCheckRequest14isDataLenValidEm:
 1359|  6.21k|		{
 1360|  6.21k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1361|  6.21k|		}
_ZNK4pcpp22DoIpAliveCheckResponse14getPayloadTypeEv:
 1401|  4.77k|		{
 1402|  4.77k|			return DoIpPayloadTypes::ALIVE_CHECK_RESPONSE;
 1403|  4.77k|		}
_ZN4pcpp22DoIpAliveCheckResponse14isDataLenValidEm:
 1408|  2.68k|		{
 1409|  2.68k|			return (dataLen == FIXED_LEN);
 1410|  2.68k|		}
_ZN4pcpp23DoIpEntityStatusRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1445|  5.58k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1446|  5.58k|		{}
_ZNK4pcpp23DoIpEntityStatusRequest14getPayloadTypeEv:
 1453|  10.0k|		{
 1454|  10.0k|			return DoIpPayloadTypes::ENTITY_STATUS_REQUEST;
 1455|  10.0k|		}
_ZN4pcpp23DoIpEntityStatusRequest14isDataLenValidEm:
 1461|  5.84k|		{
 1462|  5.84k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1463|  5.84k|		}
_ZNK4pcpp24DoIpEntityStatusResponse14getPayloadTypeEv:
 1495|  9.79k|		{
 1496|  9.79k|			return DoIpPayloadTypes::ENTITY_STATUS_RESPONSE;
 1497|  9.79k|		}
_ZN4pcpp24DoIpEntityStatusResponse14isDataLenValidEm:
 1548|  5.89k|		{
 1549|  5.89k|			return (dataLen == FIXED_LEN || dataLen == OPT_LEN);
  ------------------
  |  Branch (1549:12): [True: 0, False: 5.89k]
  |  Branch (1549:36): [True: 5.87k, False: 17]
  ------------------
 1550|  5.89k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequestC2EPhmPNS_5LayerEPNS_6PacketE:
 1592|  3.47k|		    : DoIpLayer(data, dataLen, prevLayer, packet)
 1593|  3.47k|		{}
_ZNK4pcpp30DoIpDiagnosticPowerModeRequest14getPayloadTypeEv:
 1600|  5.90k|		{
 1601|  5.90k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST;
 1602|  5.90k|		}
_ZN4pcpp30DoIpDiagnosticPowerModeRequest14isDataLenValidEm:
 1608|  3.59k|		{
 1609|  3.59k|			return (dataLen == DOIP_HEADER_LEN);  // No payload
 1610|  3.59k|		}
_ZNK4pcpp31DoIpDiagnosticPowerModeResponse14getPayloadTypeEv:
 1650|  2.80k|		{
 1651|  2.80k|			return DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE;
 1652|  2.80k|		}
_ZN4pcpp31DoIpDiagnosticPowerModeResponse14isDataLenValidEm:
 1658|  1.75k|		{
 1659|  1.75k|			return (dataLen == FIXED_LEN);
 1660|  1.75k|		}
_ZNK4pcpp21DoIpDiagnosticMessage14getPayloadTypeEv:
 1766|  11.8k|		{
 1767|  11.8k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE;
 1768|  11.8k|		}
_ZNK4pcpp21DoIpDiagnosticMessage12getHeaderLenEv:
 1772|  8.31k|		{
 1773|  8.31k|			return sizeof(doiphdr) + 2 * sizeof(uint16_t);
 1774|  8.31k|		}
_ZN4pcpp21DoIpDiagnosticMessage14isDataLenValidEm:
 1779|  7.13k|		{
 1780|  7.13k|			return (dataLen >= MIN_LEN);
 1781|  7.13k|		}
_ZN4pcpp33DoIpDiagnosticResponseMessageBase14isDataLenValidEm:
 1823|  2.25k|		{
 1824|  2.25k|			return (dataLen >= FIXED_LEN);
 1825|  2.25k|		}
_ZNK4pcpp24DoIpDiagnosticMessageAck14getPayloadTypeEv:
 1884|  1.41k|		{
 1885|  1.41k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK;
 1886|  1.41k|		}
_ZNK4pcpp25DoIpDiagnosticMessageNack14getPayloadTypeEv:
 1928|  2.43k|		{
 1929|  2.43k|			return DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK;
 1930|  2.43k|		}
_ZN4pcpp9DoIpLayer22isProtocolVersionValidEhhNS_16DoIpPayloadTypesE:
  673|  69.9k|	{
  674|  69.9k|		const DoIpProtocolVersion parsedVersion = static_cast<DoIpProtocolVersion>(version);
  675|       |
  676|  69.9k|		switch (parsedVersion)
  677|  69.9k|		{
  678|    142|		case DoIpProtocolVersion::RESERVED_VER:
  ------------------
  |  Branch (678:3): [True: 142, False: 69.7k]
  ------------------
  679|    142|		{
  680|    142|			PCPP_LOG_DEBUG("[Malformed doip packet]: Reserved ISO DoIP protocol version detected: 0x"
  ------------------
  |  |  427|    142|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    142|	do                                                                                                                 \
  |  |  |  |  415|    142|	{                                                                                                                  \
  |  |  |  |  416|    142|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    142|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    142|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 142]
  |  |  |  |  ------------------
  |  |  |  |  418|    142|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    142|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 142]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|    142|			               << std::hex << static_cast<int>(version));
  682|    142|			return false;
  683|      0|		}
  684|  4.83k|		case DoIpProtocolVersion::DEFAULT_VALUE:
  ------------------
  |  Branch (684:3): [True: 4.83k, False: 65.0k]
  ------------------
  685|  4.83k|			if (type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN &&
  ------------------
  |  Branch (685:8): [True: 4.75k, False: 78]
  ------------------
  686|  4.75k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID &&
  ------------------
  |  Branch (686:8): [True: 4.74k, False: 10]
  ------------------
  687|  4.74k|			    type != DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST)
  ------------------
  |  Branch (687:8): [True: 221, False: 4.52k]
  ------------------
  688|    221|			{
  689|    221|				PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid/unsupported DoIP version!");
  ------------------
  |  |  427|    221|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    221|	do                                                                                                                 \
  |  |  |  |  415|    221|	{                                                                                                                  \
  |  |  |  |  416|    221|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    221|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    221|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 221]
  |  |  |  |  ------------------
  |  |  |  |  418|    221|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    221|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 221]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  690|    221|				return false;
  691|    221|			}
  692|  4.76k|		case DoIpProtocolVersion::ISO13400_2010:
  ------------------
  |  Branch (692:3): [True: 149, False: 69.7k]
  ------------------
  693|  67.6k|		case DoIpProtocolVersion::ISO13400_2012:
  ------------------
  |  Branch (693:3): [True: 62.8k, False: 7.06k]
  ------------------
  694|  68.9k|		case DoIpProtocolVersion::ISO13400_2019:
  ------------------
  |  Branch (694:3): [True: 1.31k, False: 68.6k]
  ------------------
  695|  68.9k|		case DoIpProtocolVersion::ISO13400_2019_AMD1:
  ------------------
  |  Branch (695:3): [True: 60, False: 69.8k]
  ------------------
  696|  68.9k|		{
  697|  68.9k|			if (version != static_cast<uint8_t>(~inVersion))
  ------------------
  |  Branch (697:8): [True: 1.76k, False: 67.2k]
  ------------------
  698|  1.76k|			{
  699|  1.76k|				PCPP_LOG_DEBUG("[Malformed doip packet]: Protocol version and inverse version mismatch! Version: 0x"
  ------------------
  |  |  427|  1.76k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  1.76k|	do                                                                                                                 \
  |  |  |  |  415|  1.76k|	{                                                                                                                  \
  |  |  |  |  416|  1.76k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.76k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.76k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 1.76k]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.76k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  1.76k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.76k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|  1.76k|				               << std::hex << static_cast<int>(version) << ", Inverted: 0x"
  701|  1.76k|				               << static_cast<int>(inVersion));
  702|  1.76k|				return false;
  703|  1.76k|			}
  704|  67.2k|			return true;
  705|  68.9k|		}
  706|    567|		default:
  ------------------
  |  Branch (706:3): [True: 567, False: 69.3k]
  ------------------
  707|    567|			PCPP_LOG_DEBUG("[Malformed doip packet]: Unknown DoIP protocol version: 0x" << std::hex
  ------------------
  |  |  427|    567|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    567|	do                                                                                                                 \
  |  |  |  |  415|    567|	{                                                                                                                  \
  |  |  |  |  416|    567|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    567|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    567|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 567]
  |  |  |  |  ------------------
  |  |  |  |  418|    567|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    567|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 567]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|    567|			                                                                            << static_cast<int>(version));
  709|    567|			return false;
  710|  69.9k|		}
  711|  69.9k|	}
_ZN4pcpp9DoIpLayer18isPayloadTypeValidEt:
  714|  74.0k|	{
  715|  74.0k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(type);
  716|       |
  717|  74.0k|		switch (payloadType)
  718|  74.0k|		{
  719|  7.71k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (719:3): [True: 7.71k, False: 66.3k]
  ------------------
  720|  13.6k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (720:3): [True: 5.89k, False: 68.1k]
  ------------------
  721|  15.9k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (721:3): [True: 2.29k, False: 71.7k]
  ------------------
  722|  19.9k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (722:3): [True: 4.07k, False: 69.9k]
  ------------------
  723|  22.2k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (723:3): [True: 2.28k, False: 71.7k]
  ------------------
  724|  25.2k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (724:3): [True: 3.01k, False: 71.0k]
  ------------------
  725|  27.6k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (725:3): [True: 2.41k, False: 71.6k]
  ------------------
  726|  34.0k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (726:3): [True: 6.32k, False: 67.7k]
  ------------------
  727|  40.1k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (727:3): [True: 6.17k, False: 67.8k]
  ------------------
  728|  46.0k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (728:3): [True: 5.89k, False: 68.1k]
  ------------------
  729|  52.0k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (729:3): [True: 5.99k, False: 68.0k]
  ------------------
  730|  55.9k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (730:3): [True: 3.86k, False: 70.1k]
  ------------------
  731|  57.7k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (731:3): [True: 1.78k, False: 72.2k]
  ------------------
  732|  65.0k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (732:3): [True: 7.36k, False: 66.6k]
  ------------------
  733|  66.6k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (733:3): [True: 1.55k, False: 72.4k]
  ------------------
  734|  69.9k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (734:3): [True: 3.28k, False: 70.7k]
  ------------------
  735|  69.9k|			return true;
  736|       |
  737|  4.12k|		default:
  ------------------
  |  Branch (737:3): [True: 4.12k, False: 69.9k]
  ------------------
  738|  4.12k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Invalid DoIP payload type: 0x" << std::hex << type);
  ------------------
  |  |  427|  4.12k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  4.12k|	do                                                                                                                 \
  |  |  |  |  415|  4.12k|	{                                                                                                                  \
  |  |  |  |  416|  4.12k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  4.12k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.12k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 4.12k]
  |  |  |  |  ------------------
  |  |  |  |  418|  4.12k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  4.12k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 4.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  4.12k|			return false;
  740|  74.0k|		}
  741|  74.0k|	}
_ZN4pcpp9DoIpLayer20isPayloadLengthValidEjm:
  744|  67.2k|	{
  745|  67.2k|		const size_t actualPayloadLen = dataLen - DOIP_HEADER_LEN;
  746|       |
  747|  67.2k|		if (payloadLength != actualPayloadLen)
  ------------------
  |  Branch (747:7): [True: 5.65k, False: 61.5k]
  ------------------
  748|  5.65k|		{
  749|  5.65k|			PCPP_LOG_DEBUG("[Malformed doip packet]: Payload length mismatch: expected "
  ------------------
  |  |  427|  5.65k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  5.65k|	do                                                                                                                 \
  |  |  |  |  415|  5.65k|	{                                                                                                                  \
  |  |  |  |  416|  5.65k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  5.65k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.65k|#define LOG_MODULE PacketLogModuleDoIpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 5.65k]
  |  |  |  |  ------------------
  |  |  |  |  418|  5.65k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  5.65k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 5.65k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  750|  5.65k|			               << payloadLength << " bytes, but got " << actualPayloadLen << " bytes.");
  751|  5.65k|			return false;
  752|  5.65k|		}
  753|       |
  754|  61.5k|		return true;
  755|  67.2k|	}

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

_ZN4pcpp8EthLayerC2EPhmPNS_6PacketE:
   76|   958k|		EthLayer(uint8_t* data, size_t dataLen, Packet* packet) : Layer(data, dataLen, nullptr, packet, Ethernet)
   77|   958k|		{}
_ZN4pcpp8EthLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   85|    835|		    : Layer(data, dataLen, prevLayer, packet, Ethernet)
   86|    835|		{}
_ZNK4pcpp8EthLayer12getEthHeaderEv:
  101|  1.80M|		{
  102|  1.80M|			return reinterpret_cast<ether_header*>(m_Data);
  103|  1.80M|		}
_ZNK4pcpp8EthLayer12getSourceMacEv:
  108|   340k|		{
  109|   340k|			return MacAddress(getEthHeader()->srcMac);
  110|   340k|		}
_ZNK4pcpp8EthLayer10getDestMacEv:
  122|   340k|		{
  123|   340k|			return MacAddress(getEthHeader()->dstMac);
  124|   340k|		}
_ZNK4pcpp8EthLayer12getHeaderLenEv:
  141|   302k|		{
  142|   302k|			return sizeof(ether_header);
  143|   302k|		}
_ZNK4pcpp8EthLayer16getOsiModelLayerEv:
  151|   170k|		{
  152|   170k|			return OsiModelDataLinkLayer;
  153|   170k|		}

_ZN4pcpp8FtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   17|  12.4k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, FTPControl) {};
_ZN4pcpp8FtpLayer9isFtpPortEt:
   25|   366k|		{
   26|   366k|			return port == 21;
   27|   366k|		}
_ZN4pcpp8FtpLayer13isFtpDataPortEt:
   32|   351k|		{
   33|   351k|			return port == 20;
   34|   351k|		}
_ZN4pcpp8FtpLayer14parseNextLayerEv:
   40|  12.4k|		{}
_ZNK4pcpp8FtpLayer12getHeaderLenEv:
   44|  2.47k|		{
   45|  2.47k|			return m_DataLen;
   46|  2.47k|		}
_ZN4pcpp8FtpLayer22computeCalculateFieldsEv:
   50|  2.47k|		{}
_ZNK4pcpp8FtpLayer16getOsiModelLayerEv:
   54|  2.47k|		{
   55|  2.47k|			return OsiModelApplicationLayer;
   56|  2.47k|		}
_ZN4pcpp15FtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  220|  1.70k|		    : FtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp16FtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  422|  10.7k|		    : FtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp12FtpDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  507|  3.45k|		    : PayloadLayer(data, dataLen, prevLayer, packet)
  508|  3.45k|		{
  509|  3.45k|			m_Protocol = FTPData;
  510|  3.45k|		};

_ZN4pcpp11GeneveLayer12isGenevePortEt:
  152|   398k|		{
  153|   398k|			return port == DefaultPort;
  154|   398k|		}

_ZNK4pcpp8GreLayer16getOsiModelLayerEv:
  137|  12.1k|		{
  138|  12.1k|			return OsiModelNetworkLayer;
  139|  12.1k|		}
_ZN4pcpp8GreLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  197|   113k|		    : Layer(data, dataLen, prevLayer, packet, protocol)
  198|   113k|		{}
_ZN4pcpp10GREv0LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  229|  8.05k|		    : GreLayer(data, dataLen, prevLayer, packet, GREv0)
  230|  8.05k|		{}
_ZNK4pcpp10GREv0Layer12getGreHeaderEv:
  245|  10.3k|		{
  246|  10.3k|			return reinterpret_cast<gre_basic_header*>(m_Data);
  247|  10.3k|		}
_ZN4pcpp10GREv0Layer11isDataValidEPKhm:
  302|  8.05k|		{
  303|  8.05k|			return data && dataLen >= sizeof(gre_basic_header);
  ------------------
  |  Branch (303:11): [True: 8.05k, False: 0]
  |  Branch (303:19): [True: 8.05k, False: 0]
  ------------------
  304|  8.05k|		}
_ZN4pcpp10GREv1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  359|   105k|		    : GreLayer(data, dataLen, prevLayer, packet, GREv1)
  360|   105k|		{}
_ZNK4pcpp10GREv1Layer12getGreHeaderEv:
  377|  21.0k|		{
  378|  21.0k|			return reinterpret_cast<gre1_header*>(m_Data);
  379|  21.0k|		}
_ZN4pcpp10GREv1Layer11isDataValidEPKhm:
  404|   105k|		{
  405|   105k|			return data && dataLen >= sizeof(gre1_header);
  ------------------
  |  Branch (405:11): [True: 105k, False: 0]
  |  Branch (405:19): [True: 105k, False: 63]
  ------------------
  406|   105k|		}
_ZN4pcpp13PPP_PPTPLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  465|  95.4k|		    : Layer(data, dataLen, prevLayer, packet, PPP_PPTP)
  466|  95.4k|		{}
_ZNK4pcpp13PPP_PPTPLayer17getPPP_PPTPHeaderEv:
  479|   104k|		{
  480|   104k|			return reinterpret_cast<ppp_pptp_header*>(m_Data);
  481|   104k|		}
_ZNK4pcpp13PPP_PPTPLayer12getHeaderLenEv:
  496|   105k|		{
  497|   105k|			return sizeof(ppp_pptp_header);
  498|   105k|		}
_ZNK4pcpp13PPP_PPTPLayer8toStringEv:
  505|  17.4k|		{
  506|  17.4k|			return "PPP for PPTP Layer";
  507|  17.4k|		}
_ZNK4pcpp13PPP_PPTPLayer16getOsiModelLayerEv:
  510|  8.72k|		{
  511|  8.72k|			return OsiModelSessionLayer;
  512|  8.72k|		}
_ZN4pcpp13PPP_PPTPLayer11isDataValidEPKhm:
  547|  95.4k|	{
  548|  95.4k|		return data && dataLen >= sizeof(ppp_pptp_header);
  ------------------
  |  Branch (548:10): [True: 95.4k, False: 0]
  |  Branch (548:18): [True: 95.4k, False: 15]
  ------------------
  549|  95.4k|	}

_ZN4pcpp10GtpV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  291|  50.9k|		    : Layer(data, dataLen, prevLayer, packet, GTPv1)
  292|  50.9k|		{}
_ZNK4pcpp10GtpV1Layer9getHeaderEv:
  322|   204k|		{
  323|   204k|			return reinterpret_cast<gtpv1_header*>(m_Data);
  324|   204k|		}
_ZN4pcpp10GtpV1Layer11isGTPv1PortEt:
  387|   427k|		{
  388|   427k|			return port == 2152 /* GTP-U */ || port == 2123 /* GTP-C */;
  ------------------
  |  Branch (388:11): [True: 51.2k, False: 376k]
  |  Branch (388:39): [True: 346, False: 376k]
  ------------------
  389|   427k|		}
_ZNK4pcpp10GtpV1Layer16getOsiModelLayerEv:
  409|  6.92k|		{
  410|  6.92k|			return OsiModelTransportLayer;
  411|  6.92k|		}
_ZN4pcpp16GtpV2MessageTypeC2ENS0_5ValueE:
  635|    284|		constexpr GtpV2MessageType(Value value) : m_Value(value)
  636|    284|		{}
_ZNK4pcpp16GtpV2MessageTypecvNS0_5ValueEEv:
  649|    294|		{
  650|    294|			return m_Value;
  651|    294|		}
_ZN4pcpp10GtpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
 1020|    248|		    : Layer(data, dataLen, prevLayer, packet, GTPv2)
 1021|    248|		{}
_ZN4pcpp10GtpV2Layer11isGTPv2PortEt:
 1037|   532k|		{
 1038|   532k|			return port == 2123;
 1039|   532k|		}
_ZNK4pcpp10GtpV2Layer16getOsiModelLayerEv:
 1153|     37|		{
 1154|     37|			return OsiModelTransportLayer;
 1155|     37|		}
_ZNK4pcpp10GtpV2Layer9getHeaderEv:
 1213|    590|		{
 1214|    590|			return reinterpret_cast<gtpv2_basic_header*>(m_Data);
 1215|    590|		}
_ZN4pcpp10GtpV2LayerD2Ev:
 1012|    248|		~GtpV2Layer() override = default;

_ZN4pcpp9GvcpLayer10isGvcpPortEt:
   94|   116k|		{
   95|   116k|			return port == 3956;
   96|   116k|		}

_ZN4pcpp11HttpMessage10isHttpPortEt:
   75|   971k|		{
   76|   971k|			return port == 80 || port == 8080;
  ------------------
  |  Branch (76:11): [True: 63.1k, False: 907k]
  |  Branch (76:25): [True: 1.99k, False: 905k]
  ------------------
   77|   971k|		}
_ZNK4pcpp22HttpResponseStatusCode17isUnsupportedCodeEv:
  518|  12.2k|		{
  519|  12.2k|			return m_Value > 599;
  520|  12.2k|		}
_ZNK4pcpp11HttpMessage16getOsiModelLayerEv:
   88|  3.48k|		{
   89|  3.48k|			return OsiModelApplicationLayer;
   90|  3.48k|		}
_ZN4pcpp11HttpMessageC2EPhmPNS_5LayerEPNS_6PacketEh:
  127|  18.1k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  128|  18.1k|		{}
_ZNK4pcpp11HttpMessage32getHeaderFieldNameValueSeparatorEv:
  141|  18.1k|		{
  142|  18.1k|			return ':';
  143|  18.1k|		}
_ZNK4pcpp11HttpMessage43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  145|  18.1k|		{
  146|  18.1k|			return true;
  147|  18.1k|		}
_ZN4pcpp22HttpResponseStatusCodeC2ENS0_5ValueE:
  480|    922|		HttpResponseStatusCode(Value statusCode) : m_Value(statusCode)
  481|    922|		{}
_ZNK4pcpp22HttpResponseStatusCodecvNS0_5ValueEEv:
  495|  21.9k|		{
  496|  21.9k|			return m_Value;
  497|  21.9k|		}
_ZNK4pcpp20HttpRequestFirstLine7getSizeEv:
  708|  10.0k|		{
  709|  10.0k|			return m_FirstLineEndOffset;
  710|  10.0k|		}
_ZN4pcpp20HttpRequestFirstLine29HttpRequestFirstLineExceptionD2Ev:
  729|  7.25k|			{}
_ZNK4pcpp21HttpResponseFirstLine7getSizeEv:
  828|  15.0k|		{
  829|  15.0k|			return m_FirstLineEndOffset;
  830|  15.0k|		}
_ZN4pcpp21HttpResponseFirstLine30HttpResponseFirstLineExceptionD2Ev:
  850|  10.8k|			{}
_ZN4pcpp22HttpResponseStatusCodeC2Ev:
  475|  10.8k|		HttpResponseStatusCode() = default;

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

_ZN4pcpp25AuthenticationHeaderLayer11isDataValidEPKhm:
  228|  4.98k|	{
  229|  4.98k|		if (dataLen < sizeof(ipsec_authentication_header))
  ------------------
  |  Branch (229:7): [True: 73, False: 4.91k]
  ------------------
  230|     73|			return false;
  231|       |
  232|  4.91k|		size_t payloadLen = 4 * (data[1] + 2);
  233|  4.91k|		if (payloadLen < sizeof(ipsec_authentication_header) || payloadLen > dataLen)
  ------------------
  |  Branch (233:7): [True: 209, False: 4.70k]
  |  Branch (233:59): [True: 133, False: 4.57k]
  ------------------
  234|    342|			return false;
  235|       |
  236|  4.57k|		return true;
  237|  4.91k|	}
_ZN4pcpp25AuthenticationHeaderLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   54|  4.57k|		    : Layer(data, dataLen, prevLayer, packet, AuthenticationHeader)
   55|  4.57k|		{}
_ZN4pcpp8ESPLayer11isDataValidEPKhm:
  240|  5.85k|	{
  241|  5.85k|		return data && dataLen >= sizeof(ipsec_esp);
  ------------------
  |  Branch (241:10): [True: 5.85k, False: 0]
  |  Branch (241:18): [True: 5.78k, False: 73]
  ------------------
  242|  5.85k|	}
_ZN4pcpp8ESPLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  153|  5.78k|		    : Layer(data, dataLen, prevLayer, packet, ESP)
  154|  5.78k|		{}
_ZNK4pcpp25AuthenticationHeaderLayer11getAHHeaderEv:
   61|  9.87k|		{
   62|  9.87k|			return reinterpret_cast<ipsec_authentication_header*>(m_Data);
   63|  9.87k|		}
_ZNK4pcpp25AuthenticationHeaderLayer12getHeaderLenEv:
   90|  5.30k|		{
   91|  5.30k|			return static_cast<size_t>(4) * (getAHHeader()->payloadLen + 2);
   92|  5.30k|		}
_ZN4pcpp25AuthenticationHeaderLayer22computeCalculateFieldsEv:
  100|    737|		{}
_ZNK4pcpp25AuthenticationHeaderLayer16getOsiModelLayerEv:
  105|    737|		{
  106|    737|			return OsiModelNetworkLayer;
  107|    737|		}
_ZNK4pcpp8ESPLayer12getESPHeaderEv:
  157|  2.00k|		{
  158|  2.00k|			return reinterpret_cast<ipsec_esp*>(m_Data);
  159|  2.00k|		}
_ZNK4pcpp8ESPLayer12getHeaderLenEv:
  177|  6.78k|		{
  178|  6.78k|			return sizeof(ipsec_esp);
  179|  6.78k|		}
_ZN4pcpp8ESPLayer22computeCalculateFieldsEv:
  186|  1.00k|		{}
_ZNK4pcpp8ESPLayer16getOsiModelLayerEv:
  191|  1.00k|		{
  192|  1.00k|			return OsiModelTransportLayer;
  193|  1.00k|		}

_ZNK4pcpp9IPv4Layer13getIPv4HeaderEv:
  450|  7.72M|		{
  451|  7.72M|			return reinterpret_cast<iphdr*>(m_Data);
  452|  7.72M|		}
_ZNK4pcpp9IPv4Layer15getSrcIPAddressEv:
  458|  1.12k|		{
  459|  1.12k|			return getSrcIPv4Address();
  460|  1.12k|		}
_ZNK4pcpp9IPv4Layer17getSrcIPv4AddressEv:
  465|   488k|		{
  466|   488k|			return getIPv4Header()->ipSrc;
  467|   488k|		}
_ZNK4pcpp9IPv4Layer15getDstIPAddressEv:
  480|  1.12k|		{
  481|  1.12k|			return getDstIPv4Address();
  482|  1.12k|		}
_ZNK4pcpp9IPv4Layer17getDstIPv4AddressEv:
  487|   488k|		{
  488|   488k|			return getIPv4Header()->ipDst;
  489|   488k|		}
_ZNK4pcpp9IPv4Layer12getHeaderLenEv:
  584|  1.64M|		{
  585|  1.64M|			return static_cast<size_t>(static_cast<uint16_t>(getIPv4Header()->internetHeaderLength) * 4) +
  586|  1.64M|			       m_TempHeaderExtension;
  587|  1.64M|		}
_ZNK4pcpp9IPv4Layer16getOsiModelLayerEv:
  600|   172k|		{
  601|   172k|			return OsiModelNetworkLayer;
  602|   172k|		}
_ZN4pcpp9IPv4Layer11isDataValidEPKhm:
  675|  1.07M|	{
  676|  1.07M|		const iphdr* hdr = reinterpret_cast<const iphdr*>(data);
  677|  1.07M|		return canReinterpretAs<iphdr>(data, dataLen) && hdr->ipVersion == 4 && hdr->internetHeaderLength >= 5;
  ------------------
  |  Branch (677:10): [True: 1.05M, False: 13.9k]
  |  Branch (677:52): [True: 1.05M, False: 5.48k]
  |  Branch (677:75): [True: 1.05M, False: 505]
  ------------------
  678|  1.07M|	}

_ZNK4pcpp13IPv6Extension15getExtensionLenEv:
   41|  37.4k|		{
   42|  37.4k|			return 8 * (getBaseHeader()->headerLen + 1);
   43|  37.4k|		}
_ZNK4pcpp13IPv6Extension16getExtensionTypeEv:
   47|  9.61k|		{
   48|  9.61k|			return m_ExtType;
   49|  9.61k|		}
_ZNK4pcpp13IPv6Extension13getNextHeaderEv:
   58|  36.5k|		{
   59|  36.5k|			return m_NextHeader;
   60|  36.5k|		}
_ZN4pcpp13IPv6ExtensionC2EPNS_14IDataContainerEm:
   71|  19.8k|		    : m_NextHeader(nullptr), m_ExtType(IPv6ExtensionUnknown), m_DataContainer(dataContainer), m_Offset(offset),
   72|  19.8k|		      m_ShadowData(nullptr)
   73|  19.8k|		{}
_ZNK4pcpp13IPv6Extension13getBaseHeaderEv:
   89|  69.9k|		{
   90|  69.9k|			return reinterpret_cast<ipv6_ext_base_header*>(getDataPtr());
   91|  69.9k|		}
_ZN4pcpp13IPv6Extension13setNextHeaderEPS0_:
   94|  7.62k|		{
   95|  7.62k|			m_NextHeader = nextHeader;
   96|  7.62k|		}
_ZN4pcpp23IPv6FragmentationHeaderC2EPNS_14IDataContainerEm:
  157|    389|		IPv6FragmentationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  158|    389|		{
  159|    389|			m_ExtType = IPv6Fragmentation;
  160|    389|		}
_ZN4pcpp18IPv6HopByHopHeaderC2EPNS_14IDataContainerEm:
  328|  17.2k|		IPv6HopByHopHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  329|  17.2k|		{
  330|  17.2k|			m_ExtType = IPv6HopByHop;
  331|  17.2k|		}
_ZN4pcpp21IPv6DestinationHeaderC2EPNS_14IDataContainerEm:
  352|     24|		IPv6DestinationHeader(IDataContainer* dataContainer, size_t offset) : IPv6TLVOptionHeader(dataContainer, offset)
  353|     24|		{
  354|     24|			m_ExtType = IPv6Destination;
  355|     24|		}
_ZN4pcpp17IPv6RoutingHeaderC2EPNS_14IDataContainerEm:
  417|  1.01k|		IPv6RoutingHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  418|  1.01k|		{
  419|  1.01k|			m_ExtType = IPv6Routing;
  420|  1.01k|		}
_ZNK4pcpp24IPv6AuthenticationHeader15getExtensionLenEv:
  483|  2.17k|		{
  484|  2.17k|			return 4 * (getBaseHeader()->headerLen + 2);
  485|  2.17k|		}
_ZN4pcpp24IPv6AuthenticationHeaderC2EPNS_14IDataContainerEm:
  488|  1.08k|		IPv6AuthenticationHeader(IDataContainer* dataContainer, size_t offset) : IPv6Extension(dataContainer, offset)
  489|  1.08k|		{
  490|  1.08k|			m_ExtType = IPv6AuthenticationHdr;
  491|  1.08k|		}

_ZN4pcpp9IPv6Layer11isDataValidEPKhm:
  304|   176k|	{
  305|   176k|		auto ip6Header = reinterpret_cast<const ip6_hdr*>(data);
  306|   176k|		return canReinterpretAs<ip6_hdr>(data, dataLen) && ip6Header->ipVersion == 6;
  ------------------
  |  Branch (306:10): [True: 174k, False: 2.35k]
  |  Branch (306:54): [True: 171k, False: 2.63k]
  ------------------
  307|   176k|	}
_ZNK4pcpp9IPv6Layer13getIPv6HeaderEv:
   83|   713k|		{
   84|   713k|			return reinterpret_cast<ip6_hdr*>(m_Data);
   85|   713k|		}
_ZNK4pcpp9IPv6Layer15getSrcIPAddressEv:
   91|  1.59k|		{
   92|  1.59k|			return getSrcIPv6Address();
   93|  1.59k|		}
_ZNK4pcpp9IPv6Layer17getSrcIPv6AddressEv:
   98|  89.6k|		{
   99|  89.6k|			return getIPv6Header()->ipSrc;
  100|  89.6k|		}
_ZNK4pcpp9IPv6Layer15getDstIPAddressEv:
  120|  1.59k|		{
  121|  1.59k|			return getDstIPv6Address();
  122|  1.59k|		}
_ZNK4pcpp9IPv6Layer17getDstIPv6AddressEv:
  127|  89.6k|		{
  128|  89.6k|			return getIPv6Header()->ipDst;
  129|  89.6k|		}
_ZNK4pcpp9IPv6Layer12getHeaderLenEv:
  177|   400k|		{
  178|   400k|			return sizeof(ip6_hdr) + m_ExtensionsLen;
  179|   400k|		}
_ZNK4pcpp9IPv6Layer16getOsiModelLayerEv:
  191|  31.3k|		{
  192|  31.3k|			return OsiModelNetworkLayer;
  193|  31.3k|		}

_ZNK4pcpp9IcmpLayer15isMessageOfTypeENS_15IcmpMessageTypeE:
  373|  61.6k|		{
  374|  61.6k|			return getMessageType() == type;
  375|  61.6k|		}
_ZN4pcpp9IcmpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  350|  44.9k|		    : Layer(data, dataLen, prevLayer, packet, ICMP)
  351|  44.9k|		{}
_ZNK4pcpp9IcmpLayer13getIcmpHeaderEv:
  363|   245k|		{
  364|   245k|			return reinterpret_cast<icmphdr*>(m_Data);
  365|   245k|		}
_ZNK4pcpp9IcmpLayer16getOsiModelLayerEv:
  616|  8.31k|		{
  617|  8.31k|			return OsiModelNetworkLayer;
  618|  8.31k|		}
_ZN4pcpp9IcmpLayer11isDataValidEPKhm:
  724|  46.3k|	{
  725|  46.3k|		if (dataLen < sizeof(icmphdr))
  ------------------
  |  Branch (725:7): [True: 284, False: 46.0k]
  ------------------
  726|    284|			return false;
  727|       |
  728|  46.0k|		uint8_t type = data[0];
  729|       |
  730|       |		// ICMP_ECHO_REQUEST, ICMP_ECHO_REPLY, ICMP_ROUTER_SOL
  731|  46.0k|		if (type == 8 || type == 0 || type == 10)
  ------------------
  |  Branch (731:7): [True: 414, False: 45.6k]
  |  Branch (731:20): [True: 3.09k, False: 42.5k]
  |  Branch (731:33): [True: 1.78k, False: 40.7k]
  ------------------
  732|  5.29k|			return true;
  733|       |
  734|       |		// ICMP_INFO_REQUEST, ICMP_INFO_REPLY
  735|  40.7k|		if (type == 15 || type == 16)
  ------------------
  |  Branch (735:7): [True: 2.82k, False: 37.9k]
  |  Branch (735:21): [True: 2.78k, False: 35.1k]
  ------------------
  736|  5.61k|			return dataLen >= sizeof(icmp_info_request);
  737|       |
  738|       |		// ICMP_TIMESTAMP_REQUEST, ICMP_TIMESTAMP_REPLY
  739|  35.1k|		if (type == 13 || type == 14)
  ------------------
  |  Branch (739:7): [True: 332, False: 34.8k]
  |  Branch (739:21): [True: 6.10k, False: 28.7k]
  ------------------
  740|  6.43k|			return dataLen >= sizeof(icmp_timestamp_request);
  741|       |
  742|       |		// ICMP_ADDRESS_MASK_REPLY, ICMP_ADDRESS_MASK_REQUEST
  743|  28.7k|		if (type == 17 || type == 18)
  ------------------
  |  Branch (743:7): [True: 4.17k, False: 24.5k]
  |  Branch (743:21): [True: 5.39k, False: 19.1k]
  ------------------
  744|  9.56k|			return dataLen >= sizeof(icmp_address_mask_request);
  745|       |
  746|       |		// ICMP_DEST_UNREACHABLE
  747|  19.1k|		if (type == 3)
  ------------------
  |  Branch (747:7): [True: 3.42k, False: 15.7k]
  ------------------
  748|  3.42k|			return dataLen >= sizeof(icmp_destination_unreachable);
  749|       |
  750|       |		// ICMP_REDIRECT
  751|  15.7k|		if (type == 5)
  ------------------
  |  Branch (751:7): [True: 2.21k, False: 13.5k]
  ------------------
  752|  2.21k|			return dataLen >= sizeof(icmp_redirect);
  753|       |
  754|       |		// ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH
  755|  13.5k|		if (type == 4 || type == 11)
  ------------------
  |  Branch (755:7): [True: 3.51k, False: 10.0k]
  |  Branch (755:20): [True: 3.43k, False: 6.58k]
  ------------------
  756|  6.94k|			return dataLen >= sizeof(icmp_time_exceeded);
  757|       |
  758|       |		// ICMP_PARAM_PROBLEM
  759|  6.58k|		if (type == 12)
  ------------------
  |  Branch (759:7): [True: 3.79k, False: 2.79k]
  ------------------
  760|  3.79k|			return dataLen >= sizeof(icmp_param_problem);
  761|       |
  762|       |		// ICMP_ROUTER_ADV
  763|  2.79k|		if (type == 9)
  ------------------
  |  Branch (763:7): [True: 2.49k, False: 304]
  ------------------
  764|  2.49k|		{
  765|  2.49k|			if (dataLen < sizeof(icmp_router_advertisement_hdr))
  ------------------
  |  Branch (765:8): [True: 61, False: 2.42k]
  ------------------
  766|     61|				return false;
  767|       |
  768|  2.42k|			const auto* routerAdv = reinterpret_cast<const icmp_router_advertisement_hdr*>(data);
  769|  2.42k|			return routerAdv->advertisementCount <=
  770|  2.42k|			       (dataLen - sizeof(icmp_router_advertisement_hdr)) / sizeof(icmp_router_address_structure);
  771|  2.49k|		}
  772|       |
  773|    304|		return false;
  774|  2.79k|	}

_ZN4pcpp11IcmpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  132|  4.87k|		    : Layer(data, dataLen, prevLayer, packet, ICMPv6)
  133|  4.87k|		{}
_ZN4pcpp11IcmpV6Layer14parseNextLayerEv:
  170|  4.87k|		{}
_ZNK4pcpp11IcmpV6Layer12getHeaderLenEv:
  174|  2.18k|		{
  175|  2.18k|			return m_DataLen;
  176|  2.18k|		}
_ZNK4pcpp11IcmpV6Layer16getOsiModelLayerEv:
  182|  1.18k|		{
  183|  1.18k|			return OsiModelNetworkLayer;
  184|  1.18k|		}
_ZNK4pcpp11IcmpV6Layer15getIcmpv6HeaderEv:
  226|  3.76k|		{
  227|  3.76k|			return reinterpret_cast<icmpv6hdr*>(m_Data);
  228|  3.76k|		}
_ZN4pcpp15ICMPv6EchoLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  251|  1.03k|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  252|  1.03k|		{}

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

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

_ZNK4pcpp5Layer12getNextLayerEv:
  127|   107M|		{
  128|   107M|			return m_NextLayer;
  129|   107M|		}
_ZNK4pcpp5Layer12getPrevLayerEv:
  133|  2.12M|		{
  134|  2.12M|			return m_PrevLayer;
  135|  2.12M|		}
_ZNK4pcpp5Layer11getProtocolEv:
  139|  77.4M|		{
  140|  77.4M|			return m_Protocol;
  141|  77.4M|		}
_ZNK4pcpp5Layer7getDataEv:
  150|   327k|		{
  151|   327k|			return m_Data;
  152|   327k|		}
_ZNK4pcpp5Layer10getDataLenEv:
  156|  4.27M|		{
  157|  4.27M|			return m_DataLen;
  158|  4.27M|		}
_ZNK4pcpp5Layer19getLayerPayloadSizeEv:
  168|  92.2k|		{
  169|  92.2k|			return m_DataLen - getHeaderLen();
  170|  92.2k|		}
_ZNK4pcpp5Layer19isAllocatedToPacketEv:
  182|  5.66M|		{
  183|  5.66M|			return m_AllocationInfo.attachedPacket != nullptr;
  184|  5.66M|		}
_ZNK4pcpp5Layer10getDataPtrEm:
  239|   109k|		{
  240|   109k|			return static_cast<uint8_t*>(m_Data + offset);
  241|   109k|		}
_ZN4pcpp5LayerC2EPhmPS0_PNS_6PacketEh:
  276|  5.53M|		    : m_Data(data), m_DataLen(dataLen), m_Protocol(protocol), m_NextLayer(nullptr), m_PrevLayer(prevLayer),
  277|  5.53M|		      m_AllocationInfo{ packet, false }
  278|  5.53M|		{}
_ZN4pcpp5Layer17getAttachedPacketEv:
  287|  5.34M|		{
  288|  5.34M|			return m_AllocationInfo.attachedPacket;
  289|  5.34M|		}
_ZNK4pcpp5Layer17getAttachedPacketEv:
  294|  2.71k|		{
  295|  2.71k|			return m_AllocationInfo.attachedPacket;
  296|  2.71k|		}
_ZN4pcpp5Layer12setNextLayerEPS0_:
  299|  4.49M|		{
  300|  4.49M|			m_NextLayer = nextLayer;
  301|  4.49M|		}
_ZNK4pcpp5Layer12hasNextLayerEv:
  327|  7.79M|		{
  328|  7.79M|			return m_NextLayer != nullptr;
  329|  7.79M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_6arphdrEEEbPKhm:
  587|  5.34k|		{
  588|  5.34k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 5.34k, False: 0]
  |  Branch (588:30): [True: 5.19k, False: 151]
  ------------------
  589|  5.34k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_5iphdrEEEbPKhm:
  587|  1.07M|		{
  588|  1.07M|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.07M, False: 0]
  |  Branch (588:30): [True: 1.05M, False: 13.9k]
  ------------------
  589|  1.07M|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11dhcp_headerEEEbPKhm:
  587|  17.4k|		{
  588|  17.4k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 17.4k, False: 0]
  |  Branch (588:30): [True: 17.2k, False: 239]
  ------------------
  589|  17.4k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vrrp_headerEEEbPKhm:
  587|  5.42k|		{
  588|  5.42k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 5.42k, False: 0]
  |  Branch (588:30): [True: 5.42k, False: 0]
  ------------------
  589|  5.42k|		}
_ZN4pcpp14IDataContainerD2Ev:
   30|  5.66M|		virtual ~IDataContainer() = default;
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|   126k|		{
  388|   126k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|   126k|			                                               std::forward<Args>(extraArgs)...);
  390|   126k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|   177k|		{
  412|   177k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 177k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|   177k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|   177k|			setNextLayer(newLayer);
  420|   177k|			return newLayer;
  421|   177k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  1.06M|		{
  483|  1.06M|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  1.06M|			                                                       std::forward<Args>(extraArgs)...);
  485|  1.06M|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv4LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.06M|		{
  505|  1.06M|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 1.04M, False: 19.3k]
  ------------------
  506|  1.04M|			{
  507|  1.04M|				return m_NextLayer;
  508|  1.04M|			}
  509|       |
  510|  19.3k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.06M|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.06M|		{
  457|  1.06M|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 1.04M, False: 19.3k]
  ------------------
  458|  1.04M|			{
  459|  1.04M|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  1.04M|			}
  461|  19.3k|			return nullptr;
  462|  1.06M|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv4LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.04M|		{
  358|  1.04M|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.04M]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.04M|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.04M|			setNextLayer(newLayer);
  365|  1.04M|			return newLayer;
  366|  1.04M|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   345k|		{
  358|   345k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 345k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   345k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   345k|			setNextLayer(newLayer);
  365|   345k|			return newLayer;
  366|   345k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   175k|		{
  483|   175k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   175k|			                                                       std::forward<Args>(extraArgs)...);
  485|   175k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IPv6LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   175k|		{
  505|   175k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 170k, False: 4.70k]
  ------------------
  506|   170k|			{
  507|   170k|				return m_NextLayer;
  508|   170k|			}
  509|       |
  510|  4.70k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   175k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   175k|		{
  457|   175k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 170k, False: 4.70k]
  ------------------
  458|   170k|			{
  459|   170k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   170k|			}
  461|  4.70k|			return nullptr;
  462|   175k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7ip6_hdrEEEbPKhm:
  587|   176k|		{
  588|   176k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 176k, False: 0]
  |  Branch (588:30): [True: 174k, False: 2.35k]
  ------------------
  589|   176k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IPv6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   170k|		{
  358|   170k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 170k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   170k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   170k|			setNextLayer(newLayer);
  365|   170k|			return newLayer;
  366|   170k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   302k|		{
  483|   302k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   302k|			                                                       std::forward<Args>(extraArgs)...);
  485|   302k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9VlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   302k|		{
  505|   302k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 302k, False: 249]
  ------------------
  506|   302k|			{
  507|   302k|				return m_NextLayer;
  508|   302k|			}
  509|       |
  510|    249|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   302k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   302k|		{
  457|   302k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 302k, False: 249]
  ------------------
  458|   302k|			{
  459|   302k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   302k|			}
  461|    249|			return nullptr;
  462|   302k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11vlan_headerEEEbPKhm:
  587|   302k|		{
  588|   302k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 302k, False: 0]
  |  Branch (588:30): [True: 302k, False: 249]
  ------------------
  589|   302k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9VlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   302k|		{
  358|   302k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 302k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   302k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   302k|			setNextLayer(newLayer);
  365|   302k|			return newLayer;
  366|   302k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  9.98k|		{
  483|  9.98k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  9.98k|			                                                       std::forward<Args>(extraArgs)...);
  485|  9.98k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9MplsLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  9.98k|		{
  505|  9.98k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 9.42k, False: 557]
  ------------------
  506|  9.42k|			{
  507|  9.42k|				return m_NextLayer;
  508|  9.42k|			}
  509|       |
  510|    557|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  9.98k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  9.98k|		{
  457|  9.98k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 9.42k, False: 557]
  ------------------
  458|  9.42k|			{
  459|  9.42k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  9.42k|			}
  461|    557|			return nullptr;
  462|  9.98k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_9MplsLayer11mpls_headerEEEbPKhm:
  587|  9.98k|		{
  588|  9.98k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 9.98k, False: 0]
  |  Branch (588:30): [True: 9.42k, False: 557]
  ------------------
  589|  9.98k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9MplsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  9.42k|		{
  358|  9.42k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 9.42k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  9.42k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  9.42k|			setNextLayer(newLayer);
  365|  9.42k|			return newLayer;
  366|  9.42k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  95.4k|		{
  483|  95.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  95.4k|			                                                       std::forward<Args>(extraArgs)...);
  485|  95.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_13PPP_PPTPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  95.4k|		{
  505|  95.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 95.4k, False: 15]
  ------------------
  506|  95.4k|			{
  507|  95.4k|				return m_NextLayer;
  508|  95.4k|			}
  509|       |
  510|     15|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  95.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  95.4k|		{
  457|  95.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 95.4k, False: 15]
  ------------------
  458|  95.4k|			{
  459|  95.4k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  95.4k|			}
  461|     15|			return nullptr;
  462|  95.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_13PPP_PPTPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  95.4k|		{
  358|  95.4k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 95.4k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  95.4k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  95.4k|			setNextLayer(newLayer);
  365|  95.4k|			return newLayer;
  366|  95.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.11k|		{
  457|  1.11k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 835, False: 282]
  ------------------
  458|    835|			{
  459|    835|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|    835|			}
  461|    282|			return nullptr;
  462|  1.11k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8EthLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    835|		{
  358|    835|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 835]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    835|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    835|			setNextLayer(newLayer);
  365|    835|			return newLayer;
  366|    835|		}
_ZN4pcpp5Layer18constructNextLayerINS_12PayloadLayerEJEEEPS0_PhmDpOT0_:
  343|   121k|		{
  344|   121k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|   121k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|    139|		{
  483|    139|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|    139|			                                                       std::forward<Args>(extraArgs)...);
  485|    139|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GtpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|    139|		{
  505|    139|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 98, False: 41]
  ------------------
  506|     98|			{
  507|     98|				return m_NextLayer;
  508|     98|			}
  509|       |
  510|     41|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|    139|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|    139|		{
  457|    139|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 98, False: 41]
  ------------------
  458|     98|			{
  459|     98|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|     98|			}
  461|     41|			return nullptr;
  462|    139|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    248|		{
  358|    248|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 248]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    248|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    248|			setNextLayer(newLayer);
  365|    248|			return newLayer;
  366|    248|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   418k|		{
  505|   418k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 416k, False: 1.74k]
  ------------------
  506|   416k|			{
  507|   416k|				return m_NextLayer;
  508|   416k|			}
  509|       |
  510|  1.74k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   418k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   418k|		{
  457|   418k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 416k, False: 1.74k]
  ------------------
  458|   416k|			{
  459|   416k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   416k|			}
  461|  1.74k|			return nullptr;
  462|   418k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8UdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   416k|		{
  358|   416k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 416k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   416k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   416k|			setNextLayer(newLayer);
  365|   416k|			return newLayer;
  366|   416k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   580k|		{
  505|   580k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 572k, False: 8.18k]
  ------------------
  506|   572k|			{
  507|   572k|				return m_NextLayer;
  508|   572k|			}
  509|       |
  510|  8.18k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   580k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   580k|		{
  457|   580k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 572k, False: 8.18k]
  ------------------
  458|   572k|			{
  459|   572k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   572k|			}
  461|  8.18k|			return nullptr;
  462|   580k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8TcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   572k|		{
  358|   572k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 572k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   572k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   572k|			setNextLayer(newLayer);
  365|   572k|			return newLayer;
  366|   572k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9IcmpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  46.3k|		{
  505|  46.3k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 44.9k, False: 1.44k]
  ------------------
  506|  44.9k|			{
  507|  44.9k|				return m_NextLayer;
  508|  44.9k|			}
  509|       |
  510|  1.44k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  46.3k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  46.3k|		{
  457|  46.3k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 44.9k, False: 1.44k]
  ------------------
  458|  44.9k|			{
  459|  44.9k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  44.9k|			}
  461|  1.44k|			return nullptr;
  462|  46.3k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9IcmpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  44.9k|		{
  358|  44.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 44.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  44.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  44.9k|			setNextLayer(newLayer);
  365|  44.9k|			return newLayer;
  366|  44.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  8.05k|		{
  505|  8.05k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 8.05k, False: 0]
  ------------------
  506|  8.05k|			{
  507|  8.05k|				return m_NextLayer;
  508|  8.05k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  8.05k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  8.05k|		{
  457|  8.05k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 8.05k, False: 0]
  ------------------
  458|  8.05k|			{
  459|  8.05k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  8.05k|			}
  461|      0|			return nullptr;
  462|  8.05k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv0LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  8.05k|		{
  358|  8.05k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 8.05k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  8.05k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  8.05k|			setNextLayer(newLayer);
  365|  8.05k|			return newLayer;
  366|  8.05k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|   105k|		{
  505|   105k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 105k, False: 63]
  ------------------
  506|   105k|			{
  507|   105k|				return m_NextLayer;
  508|   105k|			}
  509|       |
  510|     63|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|   105k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|   105k|		{
  457|   105k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 105k, False: 63]
  ------------------
  458|   105k|			{
  459|   105k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|   105k|			}
  461|     63|			return nullptr;
  462|   105k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GREv1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|   105k|		{
  358|   105k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 105k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|   105k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|   105k|			setNextLayer(newLayer);
  365|   105k|			return newLayer;
  366|   105k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV1LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.50k|		{
  505|  3.50k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.50k, False: 0]
  ------------------
  506|  3.50k|			{
  507|  3.50k|				return m_NextLayer;
  508|  3.50k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.50k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.50k|		{
  457|  3.50k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.50k, False: 0]
  ------------------
  458|  3.50k|			{
  459|  3.50k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.50k|			}
  461|      0|			return nullptr;
  462|  3.50k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_11igmp_headerEEEbPKhm:
  587|  10.5k|		{
  588|  10.5k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 10.5k, False: 0]
  |  Branch (588:30): [True: 10.5k, False: 0]
  ------------------
  589|  10.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.50k|		{
  358|  3.50k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.50k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.50k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.50k|			setNextLayer(newLayer);
  365|  3.50k|			return newLayer;
  366|  3.50k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11IgmpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  7.01k|		{
  505|  7.01k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 7.01k, False: 0]
  ------------------
  506|  7.01k|			{
  507|  7.01k|				return m_NextLayer;
  508|  7.01k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  7.01k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  7.01k|		{
  457|  7.01k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 7.01k, False: 0]
  ------------------
  458|  7.01k|			{
  459|  7.01k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  7.01k|			}
  461|      0|			return nullptr;
  462|  7.01k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11IgmpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  7.01k|		{
  358|  7.01k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 7.01k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  7.01k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  7.01k|			setNextLayer(newLayer);
  365|  7.01k|			return newLayer;
  366|  7.01k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_16IgmpV3QueryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.78k|		{
  505|  1.78k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 1.78k, False: 0]
  ------------------
  506|  1.78k|			{
  507|  1.78k|				return m_NextLayer;
  508|  1.78k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.78k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.78k|		{
  457|  1.78k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 1.78k, False: 0]
  ------------------
  458|  1.78k|			{
  459|  1.78k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  1.78k|			}
  461|      0|			return nullptr;
  462|  1.78k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_19igmpv3_query_headerEEEbPKhm:
  587|  1.78k|		{
  588|  1.78k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.78k, False: 0]
  |  Branch (588:30): [True: 1.78k, False: 0]
  ------------------
  589|  1.78k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16IgmpV3QueryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.78k|		{
  358|  1.78k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.78k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.78k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.78k|			setNextLayer(newLayer);
  365|  1.78k|			return newLayer;
  366|  1.78k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17IgmpV3ReportLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  2.22k|		{
  505|  2.22k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 2.22k, False: 0]
  ------------------
  506|  2.22k|			{
  507|  2.22k|				return m_NextLayer;
  508|  2.22k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  2.22k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  2.22k|		{
  457|  2.22k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 2.22k, False: 0]
  ------------------
  458|  2.22k|			{
  459|  2.22k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  2.22k|			}
  461|      0|			return nullptr;
  462|  2.22k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20igmpv3_report_headerEEEbPKhm:
  587|  2.22k|		{
  588|  2.22k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 2.22k, False: 0]
  |  Branch (588:30): [True: 2.22k, False: 0]
  ------------------
  589|  2.22k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17IgmpV3ReportLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  2.22k|		{
  358|  2.22k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 2.22k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  2.22k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  2.22k|			setNextLayer(newLayer);
  365|  2.22k|			return newLayer;
  366|  2.22k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_25AuthenticationHeaderLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  4.98k|		{
  505|  4.98k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 4.57k, False: 415]
  ------------------
  506|  4.57k|			{
  507|  4.57k|				return m_NextLayer;
  508|  4.57k|			}
  509|       |
  510|    415|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  4.98k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  4.98k|		{
  457|  4.98k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 4.57k, False: 415]
  ------------------
  458|  4.57k|			{
  459|  4.57k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  4.57k|			}
  461|    415|			return nullptr;
  462|  4.98k|		}
_ZN4pcpp5Layer18constructNextLayerINS_25AuthenticationHeaderLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  4.57k|		{
  358|  4.57k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 4.57k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  4.57k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  4.57k|			setNextLayer(newLayer);
  365|  4.57k|			return newLayer;
  366|  4.57k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  5.85k|		{
  505|  5.85k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 5.78k, False: 73]
  ------------------
  506|  5.78k|			{
  507|  5.78k|				return m_NextLayer;
  508|  5.78k|			}
  509|       |
  510|     73|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  5.85k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  5.85k|		{
  457|  5.85k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 5.78k, False: 73]
  ------------------
  458|  5.78k|			{
  459|  5.78k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  5.78k|			}
  461|     73|			return nullptr;
  462|  5.85k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ESPLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  5.78k|		{
  358|  5.78k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 5.78k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  5.78k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  5.78k|			setNextLayer(newLayer);
  365|  5.78k|			return newLayer;
  366|  5.78k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV2LayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.06k|		{
  505|  3.06k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.06k, False: 0]
  ------------------
  506|  3.06k|			{
  507|  3.06k|				return m_NextLayer;
  508|  3.06k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.06k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.06k|		{
  457|  3.06k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.06k, False: 0]
  ------------------
  458|  3.06k|			{
  459|  3.06k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.06k|			}
  461|      0|			return nullptr;
  462|  3.06k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV2LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.06k|		{
  358|  3.06k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.06k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.06k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.06k|			setNextLayer(newLayer);
  365|  3.06k|			return newLayer;
  366|  3.06k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11VrrpV3LayerENS_12PayloadLayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  2.36k|		{
  505|  2.36k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 2.36k, False: 0]
  ------------------
  506|  2.36k|			{
  507|  2.36k|				return m_NextLayer;
  508|  2.36k|			}
  509|       |
  510|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  2.36k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  2.36k|		{
  457|  2.36k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 2.36k, False: 0]
  ------------------
  458|  2.36k|			{
  459|  2.36k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  2.36k|			}
  461|      0|			return nullptr;
  462|  2.36k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  6.73k|		{
  358|  6.73k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 6.73k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  6.73k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  6.73k|			setNextLayer(newLayer);
  365|  6.73k|			return newLayer;
  366|  6.73k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8UdpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  33.6k|		{
  483|  33.6k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  33.6k|			                                                       std::forward<Args>(extraArgs)...);
  485|  33.6k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8TcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|   106k|		{
  483|   106k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|   106k|			                                                       std::forward<Args>(extraArgs)...);
  485|   106k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv0LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  4.10k|		{
  483|  4.10k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  4.10k|			                                                       std::forward<Args>(extraArgs)...);
  485|  4.10k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10GREv1LayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  5.99k|		{
  483|  5.99k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  5.99k|			                                                       std::forward<Args>(extraArgs)...);
  485|  5.99k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ESPLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  3.18k|		{
  483|  3.18k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  3.18k|			                                                       std::forward<Args>(extraArgs)...);
  485|  3.18k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mDpOT0_:
  387|  66.5k|		{
  388|  66.5k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  66.5k|			                                               std::forward<Args>(extraArgs)...);
  390|  66.5k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPS0_PhmS2_PNS_6PacketEEJEEES2_T_S3_mS5_DpOT0_:
  411|  66.5k|		{
  412|  66.5k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 66.5k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  66.5k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  66.5k|			setNextLayer(newLayer);
  420|  66.5k|			return newLayer;
  421|  66.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11VrrpV3LayerEJNS_9IPAddress11AddressTypeEEEEPS0_PhmDpOT0_:
  343|  4.37k|		{
  344|  4.37k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  4.37k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  5.34k|		{
  483|  5.34k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  5.34k|			                                                       std::forward<Args>(extraArgs)...);
  485|  5.34k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8ArpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  5.34k|		{
  505|  5.34k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 5.19k, False: 151]
  ------------------
  506|  5.19k|			{
  507|  5.19k|				return m_NextLayer;
  508|  5.19k|			}
  509|       |
  510|    151|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  5.34k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  5.34k|		{
  457|  5.34k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 5.19k, False: 151]
  ------------------
  458|  5.19k|			{
  459|  5.19k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  5.19k|			}
  461|    151|			return nullptr;
  462|  5.34k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8ArpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  5.19k|		{
  358|  5.19k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 5.19k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  5.19k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  5.19k|			setNextLayer(newLayer);
  365|  5.19k|			return newLayer;
  366|  5.19k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  58.8k|		{
  483|  58.8k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  58.8k|			                                                       std::forward<Args>(extraArgs)...);
  485|  58.8k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_17PPPoESessionLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  58.8k|		{
  505|  58.8k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 58.7k, False: 75]
  ------------------
  506|  58.7k|			{
  507|  58.7k|				return m_NextLayer;
  508|  58.7k|			}
  509|       |
  510|     75|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  58.8k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  58.8k|		{
  457|  58.8k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 58.7k, False: 75]
  ------------------
  458|  58.7k|			{
  459|  58.7k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  58.7k|			}
  461|     75|			return nullptr;
  462|  58.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17PPPoESessionLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  58.7k|		{
  358|  58.7k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 58.7k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  58.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  58.7k|			setNextLayer(newLayer);
  365|  58.7k|			return newLayer;
  366|  58.7k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  3.28k|		{
  483|  3.28k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  3.28k|			                                                       std::forward<Args>(extraArgs)...);
  485|  3.28k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_19PPPoEDiscoveryLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.28k|		{
  505|  3.28k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.27k, False: 11]
  ------------------
  506|  3.27k|			{
  507|  3.27k|				return m_NextLayer;
  508|  3.27k|			}
  509|       |
  510|     11|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.28k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.28k|		{
  457|  3.28k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.27k, False: 11]
  ------------------
  458|  3.27k|			{
  459|  3.27k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.27k|			}
  461|     11|			return nullptr;
  462|  3.28k|		}
_ZN4pcpp5Layer18constructNextLayerINS_19PPPoEDiscoveryLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.27k|		{
  358|  3.27k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.27k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.27k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.27k|			setNextLayer(newLayer);
  365|  3.27k|			return newLayer;
  366|  3.27k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  3.99k|		{
  483|  3.99k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  3.99k|			                                                       std::forward<Args>(extraArgs)...);
  485|  3.99k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8LLCLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  3.99k|		{
  505|  3.99k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 3.58k, False: 410]
  ------------------
  506|  3.58k|			{
  507|  3.58k|				return m_NextLayer;
  508|  3.58k|			}
  509|       |
  510|    410|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  3.99k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  3.99k|		{
  457|  3.99k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 3.58k, False: 410]
  ------------------
  458|  3.58k|			{
  459|  3.58k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  3.58k|			}
  461|    410|			return nullptr;
  462|  3.99k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8LLCLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.58k|		{
  358|  3.58k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.58k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.58k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.58k|			setNextLayer(newLayer);
  365|  3.58k|			return newLayer;
  366|  3.58k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_20ssl_tls_record_layerEEEbPKhm:
  587|   250k|		{
  588|   250k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 250k, False: 0]
  |  Branch (588:30): [True: 250k, False: 0]
  ------------------
  589|   250k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|   250k|		{
  388|   250k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|   250k|			                                               std::forward<Args>(extraArgs)...);
  390|   250k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSLLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|   250k|		{
  412|   250k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 250k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|   250k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|   250k|			setNextLayer(newLayer);
  420|   250k|			return newLayer;
  421|   250k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_7tpkthdrEEEbPKhm:
  587|   158k|		{
  588|   158k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 158k, False: 0]
  |  Branch (588:30): [True: 146k, False: 11.7k]
  ------------------
  589|   158k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16HttpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  7.25k|		{
  358|  7.25k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 7.25k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  7.25k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  7.25k|			setNextLayer(newLayer);
  365|  7.25k|			return newLayer;
  366|  7.25k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17HttpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  10.8k|		{
  358|  10.8k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 10.8k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  10.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  10.8k|			setNextLayer(newLayer);
  365|  10.8k|			return newLayer;
  366|  10.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SipResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|     10|		{
  358|     10|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 10]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|     10|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|     10|			setNextLayer(newLayer);
  365|     10|			return newLayer;
  366|     10|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  50.7k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  50.7k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  50.7k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  50.7k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8BgpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  50.7k|		{
  567|  50.7k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  50.7k|			                                                         std::forward<Args>(extraArgs)...);
  569|  50.7k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 47.2k, False: 3.54k]
  ------------------
  570|  47.2k|			{
  571|  47.2k|				return nextLayer;
  572|  47.2k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  3.54k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  50.7k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  19.2k|		{
  388|  19.2k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  19.2k|			                                               std::forward<Args>(extraArgs)...);
  390|  19.2k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SSHLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  19.2k|		{
  412|  19.2k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 19.2k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  19.2k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  19.2k|			setNextLayer(newLayer);
  420|  19.2k|			return newLayer;
  421|  19.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15DnsOverTcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  13.7k|		{
  358|  13.7k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 13.7k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  13.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  13.7k|			setNextLayer(newLayer);
  365|  13.7k|			return newLayer;
  366|  13.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11TelnetLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  63.8k|		{
  358|  63.8k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 63.8k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  63.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  63.8k|			setNextLayer(newLayer);
  365|  63.8k|			return newLayer;
  366|  63.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_16FtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  10.7k|		{
  358|  10.7k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 10.7k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  10.7k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  10.7k|			setNextLayer(newLayer);
  365|  10.7k|			return newLayer;
  366|  10.7k|		}
_ZN4pcpp5Layer18constructNextLayerINS_15FtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.70k|		{
  358|  1.70k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.70k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.70k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.70k|			setNextLayer(newLayer);
  365|  1.70k|			return newLayer;
  366|  1.70k|		}
_ZN4pcpp5Layer18constructNextLayerINS_12FtpDataLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  3.45k|		{
  358|  3.45k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 3.45k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  3.45k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  3.45k|			setNextLayer(newLayer);
  365|  3.45k|			return newLayer;
  366|  3.45k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  61.5k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  61.5k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  61.5k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  61.5k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  61.5k|		{
  567|  61.5k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  61.5k|			                                                         std::forward<Args>(extraArgs)...);
  569|  61.5k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 60.4k, False: 1.14k]
  ------------------
  570|  60.4k|			{
  571|  60.4k|				return nextLayer;
  572|  60.4k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  1.14k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  61.5k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9DoIpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  61.5k|		{
  412|  61.5k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 61.5k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  61.5k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  61.5k|			setNextLayer(newLayer);
  420|  61.5k|			return newLayer;
  421|  61.5k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9TpktLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  18.9k|		{
  358|  18.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 18.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  18.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  18.9k|			setNextLayer(newLayer);
  365|  18.9k|			return newLayer;
  366|  18.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_17SmtpResponseLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    501|		{
  358|    501|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 501]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    501|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    501|			setNextLayer(newLayer);
  365|    501|			return newLayer;
  366|    501|		}
_ZN4pcpp5Layer18constructNextLayerINS_16SmtpRequestLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.11k|		{
  358|  1.11k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.11k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.11k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.11k|			setNextLayer(newLayer);
  365|  1.11k|			return newLayer;
  366|  1.11k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  46.9k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  46.9k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  46.9k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  46.9k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  46.9k|		{
  567|  46.9k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  46.9k|			                                                         std::forward<Args>(extraArgs)...);
  569|  46.9k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 33.5k, False: 13.3k]
  ------------------
  570|  33.5k|			{
  571|  33.5k|				return nextLayer;
  572|  33.5k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  13.3k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  46.9k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  78.0k|		{
  412|  78.0k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 78.0k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  78.0k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  78.0k|			setNextLayer(newLayer);
  420|  78.0k|			return newLayer;
  421|  78.0k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  3.36k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  3.36k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  3.36k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  3.36k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  3.36k|		{
  567|  3.36k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  3.36k|			                                                         std::forward<Args>(extraArgs)...);
  569|  3.36k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 3.36k, False: 0]
  ------------------
  570|  3.36k|			{
  571|  3.36k|				return nextLayer;
  572|  3.36k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  3.36k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_13PostgresLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  3.36k|		{
  412|  3.36k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 3.36k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  3.36k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  3.36k|			setNextLayer(newLayer);
  420|  3.36k|			return newLayer;
  421|  3.36k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  4.35k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  4.35k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  4.35k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  4.35k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  4.35k|		{
  567|  4.35k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  4.35k|			                                                         std::forward<Args>(extraArgs)...);
  569|  4.35k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 4.35k, False: 0]
  ------------------
  570|  4.35k|			{
  571|  4.35k|				return nextLayer;
  572|  4.35k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|      0|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  4.35k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_10MySqlLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  4.35k|		{
  412|  4.35k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 4.35k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  4.35k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  4.35k|			setNextLayer(newLayer);
  420|  4.35k|			return newLayer;
  421|  4.35k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11ModbusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    992|		{
  358|    992|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 992]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    992|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    992|			setNextLayer(newLayer);
  365|    992|			return newLayer;
  366|    992|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  18.9k|		{
  483|  18.9k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  18.9k|			                                                       std::forward<Args>(extraArgs)...);
  485|  18.9k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9CotpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  18.9k|		{
  505|  18.9k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 17.5k, False: 1.39k]
  ------------------
  506|  17.5k|			{
  507|  17.5k|				return m_NextLayer;
  508|  17.5k|			}
  509|       |
  510|  1.39k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  18.9k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  18.9k|		{
  457|  18.9k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 17.5k, False: 1.39k]
  ------------------
  458|  17.5k|			{
  459|  17.5k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  17.5k|			}
  461|  1.39k|			return nullptr;
  462|  18.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9CotpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  17.5k|		{
  358|  17.5k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 17.5k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  17.5k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  17.5k|			setNextLayer(newLayer);
  365|  17.5k|			return newLayer;
  366|  17.5k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  17.4k|		{
  483|  17.4k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  17.4k|			                                                       std::forward<Args>(extraArgs)...);
  485|  17.4k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_9DhcpLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  17.4k|		{
  505|  17.4k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 17.2k, False: 239]
  ------------------
  506|  17.2k|			{
  507|  17.2k|				return m_NextLayer;
  508|  17.2k|			}
  509|       |
  510|    239|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  17.4k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  17.4k|		{
  457|  17.4k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 17.2k, False: 239]
  ------------------
  458|  17.2k|			{
  459|  17.2k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  17.2k|			}
  461|    239|			return nullptr;
  462|  17.4k|		}
_ZN4pcpp5Layer18constructNextLayerINS_9DhcpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  17.2k|		{
  358|  17.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 17.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  17.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  17.2k|			setNextLayer(newLayer);
  365|  17.2k|			return newLayer;
  366|  17.2k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  1.12k|		{
  483|  1.12k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  1.12k|			                                                       std::forward<Args>(extraArgs)...);
  485|  1.12k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_10VxlanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.12k|		{
  505|  1.12k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 1.12k, False: 5]
  ------------------
  506|  1.12k|			{
  507|  1.12k|				return m_NextLayer;
  508|  1.12k|			}
  509|       |
  510|      5|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.12k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  1.12k|		{
  457|  1.12k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 1.12k, False: 5]
  ------------------
  458|  1.12k|			{
  459|  1.12k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  1.12k|			}
  461|      5|			return nullptr;
  462|  1.12k|		}
_ZN4pcpp5Layer16canReinterpretAsINS_12vxlan_headerEEEbPKhm:
  587|  1.12k|		{
  588|  1.12k|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 1.12k, False: 0]
  |  Branch (588:30): [True: 1.12k, False: 5]
  ------------------
  589|  1.12k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10VxlanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  1.12k|		{
  358|  1.12k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 1.12k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  1.12k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  1.12k|			setNextLayer(newLayer);
  365|  1.12k|			return newLayer;
  366|  1.12k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmDpOT0_:
  343|  56.6k|		{
  344|  56.6k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  56.6k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8DnsLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  56.6k|		{
  358|  56.6k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 56.6k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  56.6k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  56.6k|			setNextLayer(newLayer);
  365|  56.6k|			return newLayer;
  366|  56.6k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  2.34k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  2.34k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  2.34k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  2.34k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  2.34k|		{
  567|  2.34k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  2.34k|			                                                         std::forward<Args>(extraArgs)...);
  569|  2.34k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 2.07k, False: 274]
  ------------------
  570|  2.07k|			{
  571|  2.07k|				return nextLayer;
  572|  2.07k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|    274|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  2.34k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_11QuicV1LayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  2.34k|		{
  412|  2.34k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 2.34k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  2.34k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  2.34k|			setNextLayer(newLayer);
  420|  2.34k|			return newLayer;
  421|  2.34k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mDpOT1_:
  537|  96.1k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  96.1k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  96.1k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  96.1k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSB_EEES6_T0_S5_mS8_DpOT1_:
  566|  96.1k|		{
  567|  96.1k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  96.1k|			                                                         std::forward<Args>(extraArgs)...);
  569|  96.1k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 91.2k, False: 4.99k]
  ------------------
  570|  91.2k|			{
  571|  91.2k|				return nextLayer;
  572|  91.2k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  4.99k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  96.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEttEJRtSA_EEES5_T_S4_mS7_DpOT0_:
  411|  96.1k|		{
  412|  96.1k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 96.1k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  96.1k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  96.1k|			setNextLayer(newLayer);
  420|  96.1k|			return newLayer;
  421|  96.1k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmDpOT0_:
  343|  9.62k|		{
  344|  9.62k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  9.62k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11RadiusLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  9.62k|		{
  358|  9.62k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 9.62k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  9.62k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  9.62k|			setNextLayer(newLayer);
  365|  9.62k|			return newLayer;
  366|  9.62k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmDpOT0_:
  343|  50.9k|		{
  344|  50.9k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  50.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV1LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  50.9k|		{
  358|  50.9k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 50.9k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  50.9k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  50.9k|			setNextLayer(newLayer);
  365|  50.9k|			return newLayer;
  366|  50.9k|		}
_ZN4pcpp5Layer18constructNextLayerINS_10GtpV2LayerEJEEEPS0_PhmDpOT0_:
  343|    145|		{
  344|    145|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|    145|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmDpOT0_:
  343|  19.2k|		{
  344|  19.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  19.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11DhcpV6LayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  19.2k|		{
  358|  19.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 19.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  19.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  19.2k|			setNextLayer(newLayer);
  365|  19.2k|			return newLayer;
  366|  19.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmDpOT0_:
  343|  15.8k|		{
  344|  15.8k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  15.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8NtpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  15.8k|		{
  358|  15.8k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 15.8k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  15.8k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  15.8k|			setNextLayer(newLayer);
  365|  15.8k|			return newLayer;
  366|  15.8k|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmDpOT0_:
  343|    646|		{
  344|    646|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|    646|		}
_ZN4pcpp5Layer18constructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|    646|		{
  358|    646|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 646]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|    646|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|    646|			setNextLayer(newLayer);
  365|    646|			return newLayer;
  366|    646|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  4.06k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  4.06k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  4.06k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  4.06k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  4.06k|		{
  567|  4.06k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  4.06k|			                                                         std::forward<Args>(extraArgs)...);
  569|  4.06k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 3.92k, False: 135]
  ------------------
  570|  3.92k|			{
  571|  3.92k|				return nextLayer;
  572|  3.92k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|    135|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  4.06k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_14WireGuardLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  4.06k|		{
  412|  4.06k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 4.06k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  4.06k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  4.06k|			setNextLayer(newLayer);
  420|  4.06k|			return newLayer;
  421|  4.06k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mDpOT1_:
  537|  58.1k|		{
  538|       |			// Note that the fallback is first to allow template argument deduction of the factory type.
  539|  58.1k|			return tryConstructNextLayerFromFactoryWithFallback<TFallback, TFactory>(
  540|  58.1k|			    factoryFn, data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  541|  58.1k|		}
_ZN4pcpp5Layer44tryConstructNextLayerFromFactoryWithFallbackINS_12PayloadLayerEPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES6_T0_S5_mS8_DpOT1_:
  566|  58.1k|		{
  567|  58.1k|			auto nextLayer = constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, packet,
  568|  58.1k|			                                                         std::forward<Args>(extraArgs)...);
  569|  58.1k|			if (nextLayer != nullptr)
  ------------------
  |  Branch (569:8): [True: 1.07k, False: 57.1k]
  ------------------
  570|  1.07k|			{
  571|  1.07k|				return nextLayer;
  572|  1.07k|			}
  573|       |
  574|       |			// factory failed, construct fallback layer
  575|  57.1k|			return constructNextLayer<TFallback>(data, dataLen, packet);
  576|  58.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8SipLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|  58.1k|		{
  412|  58.1k|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 58.1k]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|  58.1k|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|  58.1k|			setNextLayer(newLayer);
  420|  58.1k|			return newLayer;
  421|  58.1k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8EthLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  1.11k|		{
  483|  1.11k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  1.11k|			                                                       std::forward<Args>(extraArgs)...);
  485|  1.11k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_8EthLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  1.11k|		{
  505|  1.11k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 835, False: 282]
  ------------------
  506|    835|			{
  507|    835|				return m_NextLayer;
  508|    835|			}
  509|       |
  510|    282|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  1.11k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|  10.0k|		{
  483|  10.0k|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|  10.0k|			                                                       std::forward<Args>(extraArgs)...);
  485|  10.0k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_11S7CommLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|  10.0k|		{
  505|  10.0k|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 9.05k, False: 952]
  ------------------
  506|  9.05k|			{
  507|  9.05k|				return m_NextLayer;
  508|  9.05k|			}
  509|       |
  510|    952|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|  10.0k|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|  10.0k|		{
  457|  10.0k|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 9.05k, False: 952]
  ------------------
  458|  9.05k|			{
  459|  9.05k|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|  9.05k|			}
  461|    952|			return nullptr;
  462|  10.0k|		}
_ZN4pcpp5Layer18constructNextLayerINS_11S7CommLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  9.05k|		{
  358|  9.05k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 9.05k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  9.05k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  9.05k|			setNextLayer(newLayer);
  365|  9.05k|			return newLayer;
  366|  9.05k|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmDpOT1_:
  482|    114|		{
  483|    114|			return tryConstructNextLayerWithFallback<T, TFallback>(data, dataLen, getAttachedPacket(),
  484|    114|			                                                       std::forward<Args>(extraArgs)...);
  485|    114|		}
_ZN4pcpp5Layer33tryConstructNextLayerWithFallbackINS_14WakeOnLanLayerENS_12PayloadLayerEJEEEPS0_PhmPNS_6PacketEDpOT1_:
  504|    114|		{
  505|    114|			if (tryConstructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...))
  ------------------
  |  Branch (505:8): [True: 0, False: 114]
  ------------------
  506|      0|			{
  507|      0|				return m_NextLayer;
  508|      0|			}
  509|       |
  510|    114|			return constructNextLayer<TFallback>(data, dataLen, packet);
  511|    114|		}
_ZN4pcpp5Layer21tryConstructNextLayerINS_14WakeOnLanLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  456|    114|		{
  457|    114|			if (T::isDataValid(data, dataLen))
  ------------------
  |  Branch (457:8): [True: 0, False: 114]
  ------------------
  458|      0|			{
  459|      0|				return constructNextLayer<T>(data, dataLen, packet, std::forward<Args>(extraArgs)...);
  460|      0|			}
  461|    114|			return nullptr;
  462|    114|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_9LdapLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|  31.1k|		{
  388|  31.1k|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|  31.1k|			                                               std::forward<Args>(extraArgs)...);
  390|  31.1k|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mDpOT0_:
  387|     22|		{
  388|     22|			return constructNextLayerFromFactory<TFactory>(factoryFn, data, dataLen, getAttachedPacket(),
  389|     22|			                                               std::forward<Args>(extraArgs)...);
  390|     22|		}
_ZN4pcpp5Layer29constructNextLayerFromFactoryIPFPNS_8StpLayerEPhmPS0_PNS_6PacketEEJEEES5_T_S4_mS7_DpOT0_:
  411|     22|		{
  412|     22|			if (hasNextLayer())
  ------------------
  |  Branch (412:8): [True: 0, False: 22]
  ------------------
  413|      0|			{
  414|      0|				throw std::runtime_error("Next layer already exists");
  415|      0|			}
  416|       |
  417|       |			// cppcheck-suppress redundantInitialization
  418|     22|			Layer* newLayer = factoryFn(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  419|     22|			setNextLayer(newLayer);
  420|     22|			return newLayer;
  421|     22|		}
_ZN4pcpp5Layer16canReinterpretAsINS_13stp_conf_bpduEEEbPKhm:
  587|     14|		{
  588|     14|			return data != nullptr && dataLen >= sizeof(T);
  ------------------
  |  Branch (588:11): [True: 14, False: 0]
  |  Branch (588:30): [True: 10, False: 4]
  ------------------
  589|     14|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmDpOT0_:
  343|  59.2k|		{
  344|  59.2k|			return constructNextLayer<T>(data, dataLen, getAttachedPacket(), std::forward<Args>(extraArgs)...);
  345|  59.2k|		}
_ZN4pcpp5Layer18constructNextLayerINS_8SdpLayerEJEEEPS0_PhmPNS_6PacketEDpOT0_:
  357|  59.2k|		{
  358|  59.2k|			if (hasNextLayer())
  ------------------
  |  Branch (358:8): [True: 0, False: 59.2k]
  ------------------
  359|      0|			{
  360|      0|				throw std::runtime_error("Next layer already exists");
  361|      0|			}
  362|       |
  363|  59.2k|			Layer* newLayer = new T(data, dataLen, this, packet, std::forward<Args>(extraArgs)...);
  364|  59.2k|			setNextLayer(newLayer);
  365|  59.2k|			return newLayer;
  366|  59.2k|		}

_ZN4pcpp9LdapLayer10isLdapPortEt:
  347|   260k|		{
  348|   260k|			return port == 389;
  349|   260k|		}
_ZN4pcpp17LdapOperationTypeC2ENS0_5ValueE:
   74|  3.11k|		constexpr LdapOperationType(Value value) : m_Value(value)
   75|  3.11k|		{}
_ZNK4pcpp17LdapOperationTypecvNS0_5ValueEEv:
   88|  63.0k|		{
   89|  63.0k|			return m_Value;
   90|  63.0k|		}
_ZNK4pcpp9LdapLayer12getHeaderLenEv:
  366|  71.5k|		{
  367|  71.5k|			return m_Asn1Record->getTotalLength();
  368|  71.5k|		}
_ZN4pcpp9LdapLayer22computeCalculateFieldsEv:
  371|  9.56k|		{}
_ZNK4pcpp9LdapLayer16getOsiModelLayerEv:
  374|  9.56k|		{
  375|  9.56k|			return OsiModelApplicationLayer;
  376|  9.56k|		}
_ZNK4pcpp9LdapLayer21getExtendedInfoStringEv:
  389|  11.5k|		{
  390|  11.5k|			return "";
  391|  11.5k|		}
_ZN4pcpp17LdapResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  447|  15.8k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  448|  15.8k|		{}
_ZN4pcpp20LdapBindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  555|  3.36k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  556|  3.36k|		{}
_ZN4pcpp21LdapBindResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  602|    516|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  603|    516|		{}
_ZNK4pcpp22LdapUnbindRequestLayer20getLdapOperationTypeEv:
  622|  1.48k|		{
  623|  1.48k|			return LdapOperationType::UnbindRequest;
  624|  1.48k|		}
_ZN4pcpp22LdapUnbindRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  636|  3.75k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  637|  3.75k|		{}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScopeC2ENS1_5ValueE:
  674|  1.15k|			constexpr SearchRequestScope(Value value) : m_Value(value)
  675|  1.15k|			{}
_ZN4pcpp22LdapSearchRequestLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  820|  2.89k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  821|  2.89k|		{}
_ZN4pcpp26LdapSearchResultEntryLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  862|  1.60k|		    : LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  863|  1.60k|		{}
_ZN4pcpp25LdapSearchResultDoneLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  895|  9.18k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  896|  9.18k|		{}
_ZN4pcpp23LdapModifyResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  928|  1.56k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  929|  1.56k|		{}
_ZN4pcpp20LdapAddResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  961|    115|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  962|    115|		{}
_ZN4pcpp23LdapDeleteResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  994|    152|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
  995|    152|		{}
_ZN4pcpp25LdapModifyDNResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1027|  2.82k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1028|  2.82k|		{}
_ZN4pcpp24LdapCompareResponseLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
 1060|  1.50k|		    : LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
 1061|  1.50k|		{}
_ZN4pcpp9LdapLayerD2Ev:
  299|  61.9k|		~LdapLayer() override = default;

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

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

_ZN4pcpp10MySqlLayer11isMySqlPortEt:
  307|   173k|		{
  308|   173k|			return port == 3306;
  309|   173k|		}
_ZN4pcpp16MySqlMessageTypeC2ENS0_5ValueE:
  126|  1.78k|		constexpr MySqlMessageType(Value value) : m_Value(value)
  127|  1.78k|		{}
_ZNK4pcpp12MySqlMessage21getTotalMessageLengthEv:
  205|  1.88k|		{
  206|  1.88k|			return m_DataLen;
  207|  1.88k|		}
_ZN4pcpp12MySqlMessageC2EPKhmRKNS_16MySqlMessageTypeENS_18MySqlMessageOriginE:
  216|    940|		    : m_Data(data), m_DataLen(dataLen), m_MessageType(messageType), m_MessageOrigin(origin)
  217|    940|		{}
_ZN4pcpp19MySqlCommandMessageC2EPKhmRKNS_16MySqlMessageTypeENS_18MySqlMessageOriginE:
  244|    198|		    : MySqlMessage(data, dataLen, messageType, origin)
  245|    198|		{}
_ZN4pcpp17MySqlQueryMessageC2EPKhm:
  260|      1|		    : MySqlCommandMessage(data, dataLen, MySqlMessageType::Client_Query, MySqlMessageOrigin::Client)
  261|      1|		{}
_ZN4pcpp17MySqlErrorMessageC2EPKhm:
  285|      7|		    : MySqlCommandMessage(data, dataLen, MySqlMessageType::Server_Error, MySqlMessageOrigin::Server)
  286|      7|		{}
_ZNK4pcpp10MySqlLayer12getHeaderLenEv:
  363|    868|		{
  364|    868|			return m_DataLen;
  365|    868|		}
_ZN4pcpp10MySqlLayer14parseNextLayerEv:
  369|  4.35k|		{}
_ZN4pcpp10MySqlLayer22computeCalculateFieldsEv:
  373|    868|		{}
_ZNK4pcpp10MySqlLayer16getOsiModelLayerEv:
  377|    868|		{
  378|    868|			return OsiModelApplicationLayer;
  379|    868|		}
_ZN4pcpp10MySqlLayerC2EPhmPNS_5LayerEPNS_6PacketENS_18MySqlMessageOriginE:
  390|  4.35k|		    : Layer(data, dataLen, prevLayer, packet, MySQL), m_MessageOrigin(origin)
  391|  4.35k|		{}
_ZN4pcpp12MySqlMessageD2Ev:
  172|    940|		virtual ~MySqlMessage() = default;
_ZN4pcpp10MySqlLayerD2Ev:
  301|  4.35k|		~MySqlLayer() override = default;

_ZN4pcpp28NDPNeighborSolicitationLayer11isDataValidEPKhm:
  211|  1.99k|		{
  212|  1.99k|			return data != nullptr && dataLen >= sizeof(ndpneighborsolicitationhdr);
  ------------------
  |  Branch (212:11): [True: 1.99k, False: 0]
  |  Branch (212:30): [True: 1.95k, False: 38]
  ------------------
  213|  1.99k|		}
_ZN4pcpp28NDPNeighborSolicitationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  203|  1.95k|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  204|  1.95k|		{}
_ZN4pcpp12NDPLayerBaseC2EPhmPNS_5LayerEPNS_6PacketE:
  164|  2.00k|		    : IcmpV6Layer(data, dataLen, prevLayer, packet)
  165|  2.00k|		{}
_ZN4pcpp12NDPLayerBaseD2Ev:
  102|  2.00k|		~NDPLayerBase() override = default;
_ZNK4pcpp12NDPLayerBase20getNdpOptionsBasePtrEv:
  174|    996|		{
  175|    996|			return m_Data + getNdpHeaderLen();
  176|    996|		};
_ZN4pcpp29NDPNeighborAdvertisementLayer11isDataValidEPKhm:
  334|     60|		{
  335|     60|			return data != nullptr && dataLen >= sizeof(ndpneighboradvertisementhdr);
  ------------------
  |  Branch (335:11): [True: 60, False: 0]
  |  Branch (335:30): [True: 44, False: 16]
  ------------------
  336|     60|		}
_ZN4pcpp29NDPNeighborAdvertisementLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  326|     44|		    : NDPLayerBase(data, dataLen, prevLayer, packet)
  327|     44|		{}
_ZN4pcpp9NdpOptionC2EPh:
   37|  1.00k|		explicit NdpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
   38|  1.00k|		{}
_ZNK4pcpp9NdpOption12getTotalSizeEv:
   56|    118|		{
   57|    118|			if (m_Data == nullptr)
  ------------------
  |  Branch (57:8): [True: 0, False: 118]
  ------------------
   58|      0|				return 0;
   59|       |
   60|    118|			return static_cast<size_t>(m_Data->recordLen) * 8;
   61|    118|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer11getTargetIPEv:
  230|    972|		{
  231|    972|			return IPv6Address(getNdpHeader()->targetIP);
  232|    972|		};
_ZNK4pcpp28NDPNeighborSolicitationLayer12getNdpHeaderEv:
  271|    972|		{
  272|    972|			return reinterpret_cast<ndpneighborsolicitationhdr*>(m_Data);
  273|    972|		}
_ZNK4pcpp28NDPNeighborSolicitationLayer15getNdpHeaderLenEv:
  275|  1.94k|		{
  276|  1.94k|			return sizeof(ndpneighborsolicitationhdr);
  277|  1.94k|		};
_ZNK4pcpp29NDPNeighborAdvertisementLayer11getTargetIPEv:
  366|     22|		{
  367|     22|			return IPv6Address(getNdpHeader()->targetIP);
  368|     22|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer12getNdpHeaderEv:
  430|     22|		{
  431|     22|			return reinterpret_cast<ndpneighboradvertisementhdr*>(m_Data);
  432|     22|		}
_ZNK4pcpp29NDPNeighborAdvertisementLayer15getNdpHeaderLenEv:
  434|     48|		{
  435|     48|			return sizeof(ndpneighboradvertisementhdr);
  436|     48|		};

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

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

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

_ZNK4pcpp10PPPoELayer14getPPPoEHeaderEv:
   83|  11.4k|		{
   84|  11.4k|			return reinterpret_cast<pppoe_header*>(m_Data);
   85|  11.4k|		}
_ZNK4pcpp10PPPoELayer16getOsiModelLayerEv:
   93|  6.22k|		{
   94|  6.22k|			return OsiModelDataLinkLayer;
   95|  6.22k|		}
_ZN4pcpp10PPPoELayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  130|  62.0k|		    : Layer(data, dataLen, prevLayer, packet, protocol)
  131|  62.0k|		{}
_ZN4pcpp17PPPoESessionLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  151|  58.7k|		    : PPPoELayer(data, dataLen, prevLayer, packet, PPPoESession)
  152|  58.7k|		{}
_ZNK4pcpp17PPPoESessionLayer12getHeaderLenEv:
  190|   143k|		{
  191|   143k|			return sizeof(pppoe_header) + sizeof(uint16_t);
  192|   143k|		}
_ZN4pcpp19PPPoEDiscoveryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  318|  3.27k|		    : PPPoELayer(data, dataLen, prevLayer, packet, PPPoEDiscovery)
  319|  3.27k|		{
  320|  3.27k|			m_DataLen = getHeaderLen();
  321|  3.27k|		}
_ZN4pcpp19PPPoEDiscoveryLayer14parseNextLayerEv:
  388|  3.27k|		{}
_ZNK4pcpp19PPPoEDiscoveryLayer8toStringEv:
  394|  1.31k|		{
  395|  1.31k|			return "PPP-over-Ethernet Discovery (" + codeToString((PPPoELayer::PPPoECode)getPPPoEHeader()->code) + ")";
  396|  1.31k|		}
_ZN4pcpp17PPPoESessionLayer11isDataValidEPKhm:
  439|  58.8k|	{
  440|  58.8k|		return data && dataLen >= sizeof(pppoe_header) + sizeof(uint16_t);
  ------------------
  |  Branch (440:10): [True: 58.8k, False: 0]
  |  Branch (440:18): [True: 58.7k, False: 75]
  ------------------
  441|  58.8k|	}
_ZN4pcpp19PPPoEDiscoveryLayer11isDataValidEPKhm:
  444|  3.28k|	{
  445|  3.28k|		return data && dataLen >= sizeof(pppoe_header);
  ------------------
  |  Branch (445:10): [True: 3.28k, False: 0]
  |  Branch (445:18): [True: 3.27k, False: 11]
  ------------------
  446|  3.28k|	}

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

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

_ZN4pcpp12PayloadLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   22|   383k|		    : Layer(data, dataLen, prevLayer, packet, GenericPayload)
   23|   383k|		{}
_ZN4pcpp12PayloadLayer14parseNextLayerEv:
   59|   383k|		{}
_ZNK4pcpp12PayloadLayer12getHeaderLenEv:
   63|  77.2k|		{
   64|  77.2k|			return m_DataLen;
   65|  77.2k|		}
_ZN4pcpp12PayloadLayer22computeCalculateFieldsEv:
   69|  69.2k|		{}
_ZNK4pcpp12PayloadLayer16getOsiModelLayerEv:
   81|  69.2k|		{
   82|  69.2k|			return OsiModelApplicationLayer;
   83|  69.2k|		}

_ZN4pcpp13PostgresLayer14isPostgresPortEt:
  509|   178k|		{
  510|   178k|			return port == 5432;
  511|   178k|		}
_ZN4pcpp19PostgresMessageTypeC2ENS0_5ValueE:
  151|  1.46k|		constexpr PostgresMessageType(Value value) : m_Value(value)
  152|  1.46k|		{}
_ZNK4pcpp15PostgresMessage21getTotalMessageLengthEv:
  234|  2.93k|		{
  235|  2.93k|			return m_DataLen;
  236|  2.93k|		}
_ZN4pcpp15PostgresMessageC2EPKhmRKNS_19PostgresMessageTypeE:
  244|  1.46k|		    : m_Data(data), m_DataLen(dataLen), m_MessageType(messageType)
  245|  1.46k|		{}
_ZN4pcpp22PostgresStartupMessageC2EPKhm:
  264|     33|		    : PostgresMessage(data, dataLen, PostgresMessageType::Frontend_StartupMessage)
  265|     33|		{}
_ZN4pcpp23PostgresParameterStatusC2EPKhm:
  301|    375|		    : PostgresMessage(data, dataLen, PostgresMessageType::Backend_ParameterStatus)
  302|    375|		{}
_ZN4pcpp20PostgresQueryMessageC2EPKhm:
  320|      1|		    : PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Query)
  321|      1|		{}
_ZN4pcpp29PostgresRowDescriptionMessageC2EPKhm:
  369|      6|		    : PostgresMessage(data, dataLen, PostgresMessageType::Backend_RowDescription)
  370|      6|		{}
_ZN4pcpp22PostgresDataRowMessageC2EPKhm:
  423|      6|		    : PostgresMessage(data, dataLen, PostgresMessageType::Backend_DataRow)
  424|      6|		{}
_ZN4pcpp28PostgresErrorResponseMessageC2EPKhm:
  487|      1|		    : PostgresMessage(data, dataLen, PostgresMessageType::Backend_ErrorResponse)
  488|      1|		{}
_ZNK4pcpp13PostgresLayer12getHeaderLenEv:
  567|    610|		{
  568|    610|			return m_DataLen;
  569|    610|		}
_ZN4pcpp13PostgresLayer14parseNextLayerEv:
  573|  3.36k|		{}
_ZN4pcpp13PostgresLayer22computeCalculateFieldsEv:
  577|    610|		{}
_ZNK4pcpp13PostgresLayer16getOsiModelLayerEv:
  581|    610|		{
  582|    610|			return OsiModelApplicationLayer;
  583|    610|		}
_ZN4pcpp13PostgresLayerC2EPhmPNS_5LayerEPNS_6PacketENS_21PostgresMessageOriginE:
  595|  3.36k|		    : Layer(data, dataLen, prevLayer, packet, Postgres), m_MessageOrigin(messageOrigin)
  596|  3.36k|		{}
_ZN4pcpp15PostgresMessageD2Ev:
  201|  1.46k|		virtual ~PostgresMessage() = default;
_ZN4pcpp13PostgresLayerD2Ev:
  504|  3.36k|		~PostgresLayer() override = default;

_ZN4pcpp8internal27protoFamilyContainsProtocolEjh:
  454|  18.7M|		{
  455|  18.7M|			auto const protocolToFamily = static_cast<ProtocolTypeFamily>(protocol);
  456|  18.7M|			return (protocolToFamily == (family & 0xff) || protocolToFamily << 8 == (family & 0xff00) ||
  ------------------
  |  Branch (456:12): [True: 109k, False: 18.6M]
  |  Branch (456:51): [True: 55.6k, False: 18.5M]
  ------------------
  457|  18.5M|			        protocolToFamily << 16 == (family & 0xff0000) || protocolToFamily << 24 == (family & 0xff000000));
  ------------------
  |  Branch (457:12): [True: 0, False: 18.5M]
  |  Branch (457:61): [True: 0, False: 18.5M]
  ------------------
  458|  18.7M|		}

_ZN4pcpp11QuicV1Layer10isQuicPortEt:
   87|   682k|		{
   88|   682k|			return port == 443;
   89|   682k|		}
_ZN4pcpp11QuicV1Layer22computeCalculateFieldsEv:
  101|    345|		{}
_ZNK4pcpp11QuicV1Layer16getOsiModelLayerEv:
  108|    345|		{
  109|    345|			return OsiModelTransportLayer;
  110|    345|		}
_ZN4pcpp11QuicV1LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  114|  2.07k|		    : Layer(data, dataLen, prevLayer, packet, QUICv1)
  115|  2.07k|		{}
_ZN4pcpp21QuicV1LongHeaderLayer15OffsetAndLengthC2Emm:
  221|  2.92k|			OffsetAndLength(size_t length, size_t offset) : length(length), offset(offset)
  222|  2.92k|			{}
_ZNK4pcpp21QuicV1LongHeaderLayer13getLongHeaderEv:
  235|  1.92k|		{
  236|  1.92k|			return reinterpret_cast<quic_long_header*>(m_Data);
  237|  1.92k|		}
_ZN4pcpp24QuicV1EstablishmentLayer18VarintValueAndSizeC2Emm:
  283|  2.25k|			VarintValueAndSize(uint64_t value, size_t size) : value(value), size(size)
  284|  2.25k|			{}
_ZNK4pcpp16QuicV1RetryLayer12getHeaderLenEv:
  371|     74|		{
  372|     74|			return m_DataLen;
  373|     74|		}
_ZNK4pcpp29QuicV1VersionNegotiationLayer13getPacketTypeEv:
  395|     26|		{
  396|     26|			return QuicPacketType::VersionNegotiation;
  397|     26|		}
_ZNK4pcpp29QuicV1VersionNegotiationLayer12getHeaderLenEv:
  408|     78|		{
  409|     78|			return m_DataLen;
  410|     78|		}
_ZNK4pcpp17QuicV1OneRttLayer13getPacketTypeEv:
  427|    220|		{
  428|    220|			return QuicPacketType::OneRtt;
  429|    220|		}
_ZNK4pcpp17QuicV1OneRttLayer12getHeaderLenEv:
  455|    784|		{
  456|    784|			return m_DataLen;
  457|    784|		}

_ZN4pcpp11RadiusLayer12isRadiusPortEt:
  310|   484k|	{
  311|   484k|		switch (port)
  312|   484k|		{
  313|  9.58k|		case 1812:
  ------------------
  |  Branch (313:3): [True: 9.58k, False: 474k]
  ------------------
  314|  10.6k|		case 1813:
  ------------------
  |  Branch (314:3): [True: 1.04k, False: 483k]
  ------------------
  315|  10.6k|		case 3799:
  ------------------
  |  Branch (315:3): [True: 0, False: 484k]
  ------------------
  316|  10.6k|			return true;
  317|   473k|		default:
  ------------------
  |  Branch (317:3): [True: 473k, False: 10.6k]
  ------------------
  318|   473k|			return false;
  319|   484k|		}
  320|   484k|	}  // isRadiusPort
_ZN4pcpp11RadiusLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  152|  9.62k|		    : Layer(data, dataLen, prevLayer, packet, Radius)
  153|  9.62k|		{}
_ZNK4pcpp11RadiusLayer15getRadiusHeaderEv:
  181|  19.2k|		{
  182|  19.2k|			return reinterpret_cast<radius_header*>(m_Data);
  183|  19.2k|		}
_ZN4pcpp11RadiusLayer14parseNextLayerEv:
  258|  9.62k|		{}
_ZNK4pcpp11RadiusLayer16getOsiModelLayerEv:
  266|  1.92k|		{
  267|  1.92k|			return OsiModelApplicationLayer;
  268|  1.92k|		}
_ZN4pcpp11RadiusLayerD2Ev:
  175|  9.62k|		~RadiusLayer() override = default;

_ZNK4pcpp9RawPacket10getRawDataEv:
  694|  3.05M|		{
  695|  3.05M|			return m_RawData;
  696|  3.05M|		}
_ZNK4pcpp9RawPacket16getLinkLayerTypeEv:
  701|  1.14M|		{
  702|  1.14M|			return m_LinkLayerType;
  703|  1.14M|		}
_ZNK4pcpp9RawPacket13getRawDataLenEv:
  713|  3.20M|		{
  714|  3.20M|			return m_RawDataLen;
  715|  3.20M|		}
_ZNK4pcpp9RawPacket18getPacketTimeStampEv:
  726|   209k|		{
  727|   209k|			return m_TimeStamp;
  728|   209k|		}
_ZN4pcpp9RawPacketC2Ev:
  544|  14.3k|		RawPacket() = default;

_ZN4pcpp11S7CommLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   95|  9.05k|		    : Layer(data, dataLen, prevLayer, packet, S7COMM)
   96|  9.05k|		{}
_ZNK4pcpp11S7CommLayer12getHeaderLenEv:
  145|  1.24k|		{
  146|  1.24k|			return m_DataLen;
  147|  1.24k|		}
_ZN4pcpp11S7CommLayer22computeCalculateFieldsEv:
  151|  1.24k|		{}
_ZN4pcpp11S7CommLayer14parseNextLayerEv:
  155|  9.05k|		{}
_ZNK4pcpp11S7CommLayer16getOsiModelLayerEv:
  166|  1.24k|		{
  167|  1.24k|			return OsiModelApplicationLayer;
  168|  1.24k|		}
_ZNK4pcpp11S7CommLayer15getS7commHeaderEv:
  214|  2.48k|		{
  215|  2.48k|			return reinterpret_cast<s7commhdr*>(m_Data);
  216|  2.48k|		}
_ZN4pcpp11S7CommLayerD2Ev:
   98|  9.05k|		~S7CommLayer() override = default;

_ZN4pcpp8SSHLayer9isSSHPortEtt:
   93|   282k|		{
   94|   282k|			return portSrc == 22 || portDst == 22;
  ------------------
  |  Branch (94:11): [True: 8.34k, False: 274k]
  |  Branch (94:28): [True: 8.23k, False: 266k]
  ------------------
   95|   282k|		}
_ZN4pcpp8SSHLayer22computeCalculateFieldsEv:
  105|  3.54k|		{}
_ZNK4pcpp8SSHLayer16getOsiModelLayerEv:
  108|  3.54k|		{
  109|  3.54k|			return OsiModelApplicationLayer;
  110|  3.54k|		}
_ZN4pcpp8SSHLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  115|  19.2k|		    : Layer(data, dataLen, prevLayer, packet, SSH)
  116|  19.2k|		{}
_ZNK4pcpp24SSHIdentificationMessage12getHeaderLenEv:
  149|  5.61k|		{
  150|  5.61k|			return m_DataLen;
  151|  5.61k|		}
_ZN4pcpp24SSHIdentificationMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  161|  4.68k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  162|  4.68k|		{}
_ZN4pcpp19SSHHandshakeMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  261|  9.34k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  262|  9.34k|		{}
_ZNK4pcpp19SSHHandshakeMessage16getMsgBaseHeaderEv:
  265|  14.4k|		{
  266|  14.4k|			return reinterpret_cast<ssh_message_base*>(m_Data);
  267|  14.4k|		}
_ZN4pcpp19SSHEncryptedMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  395|  5.20k|		    : SSHLayer(data, dataLen, prevLayer, packet)
  396|  5.20k|		{}
_ZNK4pcpp19SSHEncryptedMessage12getHeaderLenEv:
  402|  6.12k|		{
  403|  6.12k|			return m_DataLen;
  404|  6.12k|		}

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

_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  946|  8.53k|	{
  947|  8.53k|		size_t vecSize = m_ExtensionList.size();
  948|  14.6k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 10.5k, False: 4.14k]
  ------------------
  949|  10.5k|		{
  950|  10.5k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  10.5k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 4.38k, False: 6.15k]
  ------------------
  952|  4.38k|				return static_cast<TExtension*>(curElem);
  953|  10.5k|		}
  954|       |
  955|  4.14k|		return nullptr;
  956|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  946|  8.53k|	{
  947|  8.53k|		size_t vecSize = m_ExtensionList.size();
  948|  53.9k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 46.5k, False: 7.45k]
  ------------------
  949|  46.5k|		{
  950|  46.5k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  46.5k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 1.07k, False: 45.4k]
  ------------------
  952|  1.07k|				return static_cast<TExtension*>(curElem);
  953|  46.5k|		}
  954|       |
  955|  7.45k|		return nullptr;
  956|  8.53k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_32SSLServerNameIndicationExtensionEEEPT_v:
  959|  5.71k|	{
  960|  5.71k|		size_t vecSize = m_ExtensionList.size();
  961|  9.61k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 4.66k, False: 4.95k]
  ------------------
  962|  4.66k|		{
  963|  4.66k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  4.66k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 763, False: 3.90k]
  ------------------
  965|    763|				return static_cast<TExtension*>(curElem);
  966|  4.66k|		}
  967|       |
  968|  4.95k|		return nullptr;
  969|  5.71k|	}
_ZN4pcpp14SSLCipherSuiteC2EtNS_23SSLKeyExchangeAlgorithmENS_26SSLAuthenticationAlgorithmENS_31SSLSymmetricEncryptionAlgorithmENS_19SSLHashingAlgorithmEPKc:
   36|    658|		    : m_Id(id), m_KeyExAlg(keyExAlg), m_AuthAlg(authAlg), m_SymKeyAlg(symKeyAlg), m_MACAlg(MACAlg), m_Name(name)
   37|    658|		{}
_ZNK4pcpp12SSLExtension18getExtensionStructEv:
  187|   793k|		{
  188|   793k|			return reinterpret_cast<SSLExtensionStruct*>(m_RawData);
  189|   793k|		}
_ZN4pcpp18SSLx509CertificateC2EPhmb:
  255|  31.7k|		    : m_Data(data), m_DataLen(dataLen), m_AllDataExists(allDataExists)
  256|  31.7k|		{}
_ZNK4pcpp21SSLClientHelloMessage20getClientHelloHeaderEv:
  402|  17.0k|		{
  403|  17.0k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  404|  17.0k|		}
_ZNK4pcpp21SSLServerHelloMessage20getServerHelloHeaderEv:
  538|  10.6k|		{
  539|  10.6k|			return reinterpret_cast<ssl_tls_client_server_hello*>(m_Data);
  540|  10.6k|		}
_ZN4pcpp22SSLHelloRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
  676|  29.9k|		    : SSLHandshakeMessage(data, dataLen, container)
  677|  29.9k|		{}
_ZN4pcpp27SSLServerKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  699|  8.04k|		    : SSLHandshakeMessage(data, dataLen, container)
  700|  8.04k|		{}
_ZN4pcpp27SSLClientKeyExchangeMessageC2EPhmPNS_17SSLHandshakeLayerE:
  733|  3.01k|		    : SSLHandshakeMessage(data, dataLen, container)
  734|  3.01k|		{}
_ZN4pcpp25SSLServerHelloDoneMessageC2EPhmPNS_17SSLHandshakeLayerE:
  803|  1.67k|		    : SSLHandshakeMessage(data, dataLen, container)
  804|  1.67k|		{}
_ZN4pcpp27SSLCertificateVerifyMessageC2EPhmPNS_17SSLHandshakeLayerE:
  826|  1.29k|		    : SSLHandshakeMessage(data, dataLen, container)
  827|  1.29k|		{}
_ZN4pcpp18SSLFinishedMessageC2EPhmPNS_17SSLHandshakeLayerE:
  860|  3.06k|		    : SSLHandshakeMessage(data, dataLen, container)
  861|  3.06k|		{}
_ZN4pcpp26SSLNewSessionTicketMessageC2EPhmPNS_17SSLHandshakeLayerE:
  893|  2.65k|		    : SSLHandshakeMessage(data, dataLen, container)
  894|  2.65k|		{}
_ZN4pcpp17SSLUnknownMessageC2EPhmPNS_17SSLHandshakeLayerE:
  927|  52.5k|		    : SSLHandshakeMessage(data, dataLen, container)
  928|  52.5k|		{}
_ZN4pcpp19SSLHandshakeMessageD2Ev:
  306|   218k|		virtual ~SSLHandshakeMessage() = default;
_ZN4pcpp21SSLClientHelloMessageD2Ev:
  397|  48.3k|		~SSLClientHelloMessage() override = default;
_ZN4pcpp21SSLServerHelloMessageD2Ev:
  533|  36.7k|		~SSLServerHelloMessage() override = default;
_ZN4pcpp21SSLCertificateMessageD2Ev:
  641|  13.4k|		~SSLCertificateMessage() override = default;
_ZN4pcpp28SSLCertificateRequestMessageD2Ev:
  767|  17.8k|		~SSLCertificateRequestMessage() override = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_32SSLServerNameIndicationExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  94.5k|		{
  153|  94.5k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 94.5k]
  |  Branch (153:27): [True: 0, False: 94.5k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  94.5k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  94.5k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 3.22k, False: 91.2k]
  ------------------
  160|  3.22k|			{
  161|  3.22k|				return nullptr;
  162|  3.22k|			}
  163|       |
  164|  91.2k|			return std::make_unique<T>(data, dataLen);
  165|  94.5k|		}
_ZN4pcpp12SSLExtensionD2Ev:
  123|   326k|		virtual ~SSLExtension() = default;
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_29SSLSupportedVersionsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  9.57k|		{
  153|  9.57k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 9.57k]
  |  Branch (153:27): [True: 0, False: 9.57k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  9.57k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  9.57k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 1.08k, False: 8.49k]
  ------------------
  160|  1.08k|			{
  161|  1.08k|				return nullptr;
  162|  1.08k|			}
  163|       |
  164|  8.49k|			return std::make_unique<T>(data, dataLen);
  165|  9.57k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_27TLSSupportedGroupsExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  15.3k|		{
  153|  15.3k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 15.3k]
  |  Branch (153:27): [True: 0, False: 15.3k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  15.3k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  15.3k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 182, False: 15.1k]
  ------------------
  160|    182|			{
  161|    182|				return nullptr;
  162|    182|			}
  163|       |
  164|  15.1k|			return std::make_unique<T>(data, dataLen);
  165|  15.3k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionINS_25TLSECPointFormatExtensionETnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEPhm:
  152|  27.2k|		{
  153|  27.2k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 27.2k]
  |  Branch (153:27): [True: 0, False: 27.2k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|  27.2k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|  27.2k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 3.35k, False: 23.9k]
  ------------------
  160|  3.35k|			{
  161|  3.35k|				return nullptr;
  162|  3.35k|			}
  163|       |
  164|  23.9k|			return std::make_unique<T>(data, dataLen);
  165|  27.2k|		}
_ZN4pcpp12SSLExtension18tryCreateExtensionIS0_TnNSt3__19enable_ifIXsr3std10is_base_ofIS0_T_EE5valueEbE4typeELb1EEENS2_10unique_ptrIS4_NS2_14default_deleteIS4_EEEEPhm:
  152|   204k|		{
  153|   204k|			if (data == nullptr || dataLen < sizeof(SSLExtensionStruct))
  ------------------
  |  Branch (153:8): [True: 0, False: 204k]
  |  Branch (153:27): [True: 0, False: 204k]
  ------------------
  154|      0|			{
  155|      0|				return nullptr;
  156|      0|			}
  157|       |
  158|   204k|			auto* extStruct = reinterpret_cast<SSLExtensionStruct*>(data);
  159|   204k|			if (dataLen < sizeof(SSLExtensionStruct) + extStruct->getDataLength())
  ------------------
  |  Branch (159:8): [True: 17.1k, False: 187k]
  ------------------
  160|  17.1k|			{
  161|  17.1k|				return nullptr;
  162|  17.1k|			}
  163|       |
  164|   187k|			return std::make_unique<T>(data, dataLen);
  165|   204k|		}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_27TLSSupportedGroupsExtensionEEEPT_v:
  946|  8.53k|	{
  947|  8.53k|		size_t vecSize = m_ExtensionList.size();
  948|  37.5k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 31.7k, False: 5.80k]
  ------------------
  949|  31.7k|		{
  950|  31.7k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  31.7k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 2.73k, False: 28.9k]
  ------------------
  952|  2.73k|				return static_cast<TExtension*>(curElem);
  953|  31.7k|		}
  954|       |
  955|  5.80k|		return nullptr;
  956|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeINS_25TLSECPointFormatExtensionEEEPT_v:
  946|  8.53k|	{
  947|  8.53k|		size_t vecSize = m_ExtensionList.size();
  948|  34.3k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (948:22): [True: 30.0k, False: 4.27k]
  ------------------
  949|  30.0k|		{
  950|  30.0k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  951|  30.0k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (951:8): [True: 4.25k, False: 25.8k]
  ------------------
  952|  4.25k|				return static_cast<TExtension*>(curElem);
  953|  30.0k|		}
  954|       |
  955|  4.27k|		return nullptr;
  956|  8.53k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeINS_29SSLSupportedVersionsExtensionEEEPT_v:
  959|  11.4k|	{
  960|  11.4k|		size_t vecSize = m_ExtensionList.size();
  961|  22.7k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (961:22): [True: 12.1k, False: 10.6k]
  ------------------
  962|  12.1k|		{
  963|  12.1k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
  964|  12.1k|			if (dynamic_cast<TExtension*>(curElem) != nullptr)
  ------------------
  |  Branch (964:8): [True: 796, False: 11.3k]
  ------------------
  965|    796|				return static_cast<TExtension*>(curElem);
  966|  12.1k|		}
  967|       |
  968|  10.6k|		return nullptr;
  969|  11.4k|	}

_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLClientHelloMessageEEEPT_v:
  446|  22.6k|	{
  447|  22.6k|		size_t vecSize = m_MessageList.size();
  448|  44.8k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (448:22): [True: 30.6k, False: 14.1k]
  ------------------
  449|  30.6k|		{
  450|  30.6k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  451|  30.6k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (451:8): [True: 8.53k, False: 22.1k]
  ------------------
  452|  8.53k|				return (THandshakeMessage*)curElem;
  453|  30.6k|		}
  454|       |
  455|       |		// element not found
  456|  14.1k|		return nullptr;
  457|  22.6k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_21SSLServerHelloMessageEEEPT_v:
  446|  22.6k|	{
  447|  22.6k|		size_t vecSize = m_MessageList.size();
  448|  48.4k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (448:22): [True: 31.4k, False: 16.9k]
  ------------------
  449|  31.4k|		{
  450|  31.4k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  451|  31.4k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (451:8): [True: 5.71k, False: 25.7k]
  ------------------
  452|  5.71k|				return (THandshakeMessage*)curElem;
  453|  31.4k|		}
  454|       |
  455|       |		// element not found
  456|  16.9k|		return nullptr;
  457|  22.6k|	}  // getHandshakeMessageOfType
_ZNK4pcpp17SSLHandshakeLayer25getHandshakeMessageOfTypeINS_19SSLHandshakeMessageEEEPT_v:
  446|  22.6k|	{
  447|  22.6k|		size_t vecSize = m_MessageList.size();
  448|  22.6k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (448:22): [True: 21.3k, False: 1.30k]
  ------------------
  449|  21.3k|		{
  450|  21.3k|			SSLHandshakeMessage* curElem = const_cast<SSLHandshakeMessage*>(m_MessageList.at(i));
  451|  21.3k|			if (dynamic_cast<THandshakeMessage*>(curElem) != nullptr)
  ------------------
  |  Branch (451:8): [True: 21.3k, False: 0]
  ------------------
  452|  21.3k|				return (THandshakeMessage*)curElem;
  453|  21.3k|		}
  454|       |
  455|       |		// element not found
  456|  1.30k|		return nullptr;
  457|  22.6k|	}  // getHandshakeMessageOfType
_ZNK4pcpp8SSLLayer14getRecordLayerEv:
  227|   513k|		{
  228|   513k|			return reinterpret_cast<ssl_tls_record_layer*>(m_Data);
  229|   513k|		}
_ZNK4pcpp8SSLLayer16getOsiModelLayerEv:
  247|  40.4k|		{
  248|  40.4k|			return OsiModelPresentationLayer;
  249|  40.4k|		}
_ZN4pcpp8SSLLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  253|   250k|		    : Layer(data, dataLen, prevLayer, packet, SSL)
  254|   250k|		{}
_ZN4pcpp17SSLHandshakeLayer22computeCalculateFieldsEv:
  346|  22.6k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  364|  84.5k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  365|  84.5k|		{}
_ZN4pcpp24SSLChangeCipherSpecLayer22computeCalculateFieldsEv:
  375|  13.2k|		{}
_ZN4pcpp13SSLAlertLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  390|  6.18k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  391|  6.18k|		{}
_ZN4pcpp13SSLAlertLayer22computeCalculateFieldsEv:
  409|  1.03k|		{}
_ZN4pcpp23SSLApplicationDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  424|  20.9k|		    : SSLLayer(data, dataLen, prevLayer, packet)
  425|  20.9k|		{}
_ZN4pcpp23SSLApplicationDataLayer22computeCalculateFieldsEv:
  442|  3.50k|		{}
_ZN4pcpp8SSLLayer9isSSLPortEt:
  491|   897k|	{
  492|   897k|		if (port == 443)  // HTTPS, this is likely case
  ------------------
  |  Branch (492:7): [True: 146k, False: 751k]
  ------------------
  493|   146k|			return true;
  494|       |
  495|   751k|		switch (port)
  496|   751k|		{
  497|    276|		case 261:  // NSIIOPS
  ------------------
  |  Branch (497:3): [True: 276, False: 750k]
  ------------------
  498|  3.79k|		case 448:  // DDM-SSL
  ------------------
  |  Branch (498:3): [True: 3.51k, False: 747k]
  ------------------
  499|  3.93k|		case 465:  // SMTPS
  ------------------
  |  Branch (499:3): [True: 142, False: 751k]
  ------------------
  500|  4.65k|		case 563:  // NNTPS
  ------------------
  |  Branch (500:3): [True: 719, False: 750k]
  ------------------
  501|  6.39k|		case 614:  // SSHELL
  ------------------
  |  Branch (501:3): [True: 1.74k, False: 749k]
  ------------------
  502|  6.41k|		case 636:  // LDAPS
  ------------------
  |  Branch (502:3): [True: 13, False: 751k]
  ------------------
  503|  7.60k|		case 989:  // FTPS - data
  ------------------
  |  Branch (503:3): [True: 1.19k, False: 749k]
  ------------------
  504|  7.65k|		case 990:  // FTPS - control
  ------------------
  |  Branch (504:3): [True: 47, False: 751k]
  ------------------
  505|  7.76k|		case 992:  // Telnet over TLS/SSL
  ------------------
  |  Branch (505:3): [True: 111, False: 751k]
  ------------------
  506|  8.51k|		case 993:  // IMAPS
  ------------------
  |  Branch (506:3): [True: 755, False: 750k]
  ------------------
  507|  8.60k|		case 994:  // IRCS
  ------------------
  |  Branch (507:3): [True: 92, False: 751k]
  ------------------
  508|  11.9k|		case 995:  // POP3S
  ------------------
  |  Branch (508:3): [True: 3.35k, False: 747k]
  ------------------
  509|  11.9k|			return true;
  510|   739k|		default:
  ------------------
  |  Branch (510:3): [True: 739k, False: 11.9k]
  ------------------
  511|   739k|			return false;
  512|   751k|		}
  513|   751k|	}  // isSSLPort

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

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

_ZN4pcpp8SipLayer9isSipPortEt:
  113|  1.39M|		{
  114|  1.39M|			return port == 5060 || port == 5061;
  ------------------
  |  Branch (114:11): [True: 192k, False: 1.20M]
  |  Branch (114:27): [True: 424, False: 1.20M]
  ------------------
  115|  1.39M|		}
_ZNK4pcpp8SipLayer16getOsiModelLayerEv:
   97|  8.70k|		{
   98|  8.70k|			return OsiModelSessionLayer;
   99|  8.70k|		}
_ZN4pcpp8SipLayerC2EPhmPNS_5LayerEPNS_6PacketEh:
  141|  92.2k|		    : TextBasedProtocolMessage(data, dataLen, prevLayer, packet, protocol)
  142|  92.2k|		{}
_ZNK4pcpp8SipLayer32getHeaderFieldNameValueSeparatorEv:
  155|  92.2k|		{
  156|  92.2k|			return ':';
  157|  92.2k|		}
_ZNK4pcpp8SipLayer43spacesAllowedBetweenHeaderFieldNameAndValueEv:
  159|  92.2k|		{
  160|  92.2k|			return true;
  161|  92.2k|		}
_ZNK4pcpp19SipRequestFirstLine7getSizeEv:
  584|  91.5k|		{
  585|  91.5k|			return m_FirstLineEndOffset;
  586|  91.5k|		}
_ZN4pcpp19SipRequestFirstLine28SipRequestFirstLineExceptionD2Ev:
  605|  77.8k|			{}
_ZNK4pcpp20SipResponseFirstLine7getSizeEv:
  709|  18.1k|		{
  710|  18.1k|			return m_FirstLineEndOffset;
  711|  18.1k|		}
_ZN4pcpp20SipResponseFirstLine29SipResponseFirstLineExceptionD2Ev:
  730|  14.4k|			{}

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

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

_ZN4pcpp9SmtpLayer10isSmtpPortEt:
   28|   278k|		{
   29|   278k|			return port == 25 || port == 587;
  ------------------
  |  Branch (29:11): [True: 4.55k, False: 273k]
  |  Branch (29:25): [True: 6, False: 273k]
  ------------------
   30|   278k|		}
_ZN4pcpp17SmtpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  277|    501|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};
_ZN4pcpp9SmtpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   18|  1.61k|		    : SingleCommandTextProtocol(data, dataLen, prevLayer, packet, SMTP) {};
_ZN4pcpp9SmtpLayer14parseNextLayerEv:
   36|  1.61k|		{}
_ZNK4pcpp9SmtpLayer12getHeaderLenEv:
   40|    300|		{
   41|    300|			return m_DataLen;
   42|    300|		}
_ZN4pcpp9SmtpLayer22computeCalculateFieldsEv:
   46|    300|		{}
_ZNK4pcpp9SmtpLayer16getOsiModelLayerEv:
   50|    300|		{
   51|    300|			return OsiModelApplicationLayer;
   52|    300|		}
_ZN4pcpp16SmtpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  121|  1.11k|		    : SmtpLayer(data, dataLen, prevLayer, packet) {};

_ZN4pcpp11SomeIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   85|  37.3k|		    : Layer(data, dataLen, prevLayer, packet, SomeIP)
   86|  37.3k|		{}
_ZNK4pcpp11SomeIpLayer15getSomeIpHeaderEv:
  120|  53.4k|		{
  121|  53.4k|			return reinterpret_cast<someiphdr*>(m_Data);
  122|  53.4k|		}
_ZNK4pcpp11SomeIpLayer12getHeaderLenEv:
  252|  42.6k|		{
  253|  42.6k|			return sizeof(uint32_t) * 2 + getLengthField();
  254|  42.6k|		}
_ZN4pcpp11SomeIpLayer22computeCalculateFieldsEv:
  258|  1.29k|		{}
_ZNK4pcpp11SomeIpLayer16getOsiModelLayerEv:
  268|  5.29k|		{
  269|  5.29k|			return OsiModelApplicationLayer;
  270|  5.29k|		}
_ZN4pcpp13SomeIpTpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  360|  2.93k|		    : SomeIpLayer(data, dataLen, prevLayer, packet)
  361|  2.93k|		{}

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

_ZN4pcpp8StpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  123|     10|		    : Layer(data, dataLen, prevLayer, packet, STP)
  124|     10|		{}
_ZN4pcpp8StpLayer22computeCalculateFieldsEv:
  228|      2|		{}
_ZNK4pcpp8StpLayer16getOsiModelLayerEv:
  232|      2|		{
  233|      2|			return OsiModelDataLinkLayer;
  234|      2|		}
_ZN4pcpp26StpTopologyChangeBPDULayerC2EPhmPNS_5LayerEPNS_6PacketE:
  267|     10|		    : StpLayer(data, dataLen, prevLayer, packet)
  268|     10|		{}
_ZN4pcpp25StpConfigurationBPDULayerC2EPhmPNS_5LayerEPNS_6PacketE:
  326|     10|		    : StpTopologyChangeBPDULayer(data, dataLen, prevLayer, packet)
  327|     10|		{}
_ZNK4pcpp25StpConfigurationBPDULayer12getHeaderLenEv:
  540|      2|		{
  541|      2|			return sizeof(stp_conf_bpdu);
  542|      2|		}
_ZNK4pcpp25StpConfigurationBPDULayer8toStringEv:
  549|      4|		{
  550|      4|			return "Spanning Tree Configuration";
  551|      4|		}
_ZN4pcpp25StpConfigurationBPDULayer11isDataValidEPKhm:
  558|     14|		{
  559|     14|			return canReinterpretAs<stp_conf_bpdu>(data, dataLen);
  560|     14|		}

_ZN4pcpp9TLVRecordIhhED2Ev:
   54|   644k|		virtual ~TLVRecord() = default;
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEED2Ev:
  237|   676k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp9TLVRecordIttEC2ERKS1_:
   49|  8.26k|		{
   50|  8.26k|			m_Data = other.m_Data;
   51|  8.26k|		}
_ZN4pcpp9TLVRecordIttED2Ev:
   54|  34.3k|		virtual ~TLVRecord() = default;
_ZN4pcpp9TLVRecordIttEaSERKS1_:
   78|  22.6k|		{
   79|  22.6k|			m_Data = other.m_Data;
   80|  22.6k|			return *this;
   81|  22.6k|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIjEET_m:
  164|  3.32k|		{
  165|  3.32k|			static_assert(std::is_trivially_copyable<T>::value && std::is_default_constructible<T>::value &&
  166|  3.32k|			                  !std::is_pointer<T>::value,
  167|  3.32k|			              "TLVRecord::getValueAs<T>() requires T to be a non-pointer, "
  168|  3.32k|			              "default-constructible, trivially copyable type");
  169|       |
  170|  3.32k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (170:8): [True: 2.94k, False: 382]
  ------------------
  171|  2.94k|			{
  172|  2.94k|				return T{};
  173|  2.94k|			}
  174|       |
  175|    382|			T result;
  176|    382|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  177|    382|			return result;
  178|  3.32k|		}
_ZN4pcpp9TLVRecordIhhEC2ERKS1_:
   49|   262k|		{
   50|   262k|			m_Data = other.m_Data;
   51|   262k|		}
_ZNK4pcpp9TLVRecordIhhE14getValueOffsetEv:
  210|  5.62k|		{
  211|  5.62k|			return 0;
  212|  5.62k|		}
_ZN4pcpp9TLVRecordIhhEaSERKS1_:
   78|   479k|		{
   79|   479k|			m_Data = other.m_Data;
   80|   479k|			return *this;
   81|   479k|		}
_ZN4pcpp9TLVRecordIhhE6assignEPh:
   59|  1.48M|		{
   60|  1.48M|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   61|  1.48M|		}
_ZN4pcpp9TLVRecordIhhE9canAssignEPKhm:
   68|   185k|		{
   69|   185k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (69:11): [True: 185k, False: 0]
  ------------------
   70|   185k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (70:11): [True: 182k, False: 2.88k]
  ------------------
   71|   185k|		}
_ZN4pcpp9TLVRecordIttE6assignEPh:
   59|  66.2k|		{
   60|  66.2k|			m_Data = reinterpret_cast<TLVRawData*>(recordRawData);
   61|  66.2k|		}
_ZN4pcpp9TLVRecordIhhEC2EPh:
   41|   836k|		{
   42|   836k|			assign(recordRawData);
   43|   836k|		}
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEED2Ev:
  237|  17.2k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10DhcpOptionEEC2Ev:
  226|  17.2k|		{
  227|  17.2k|			m_RecordCount = static_cast<size_t>(-1);
  228|  17.2k|		}
_ZNK4pcpp9TLVRecordIhhE6isNullEv:
  129|  1.90M|		{
  130|  1.90M|			return (m_Data == nullptr);
  131|  1.90M|		}
_ZNK4pcpp9TLVRecordIhhE10getValueAsIhEET_m:
  164|  6.36k|		{
  165|  6.36k|			static_assert(std::is_trivially_copyable<T>::value && std::is_default_constructible<T>::value &&
  166|  6.36k|			                  !std::is_pointer<T>::value,
  167|  6.36k|			              "TLVRecord::getValueAs<T>() requires T to be a non-pointer, "
  168|  6.36k|			              "default-constructible, trivially copyable type");
  169|       |
  170|  6.36k|			if (getDataSize() < sizeof(T) + offset)
  ------------------
  |  Branch (170:8): [True: 1.12k, False: 5.24k]
  ------------------
  171|  1.12k|			{
  172|  1.12k|				return T{};
  173|  1.12k|			}
  174|       |
  175|  5.24k|			T result;
  176|  5.24k|			memcpy(&result, m_Data->recordValue + getValueOffset() + offset, sizeof(T));
  177|  5.24k|			return result;
  178|  6.36k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE12getTLVRecordEjPhm:
  315|  13.5k|		{
  316|  13.5k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|   142k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 135k, False: 6.54k]
  ------------------
  318|   135k|			{
  319|   135k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 7.01k, False: 128k]
  ------------------
  320|  7.01k|				{
  321|  7.01k|					return curRec;
  322|  7.01k|				}
  323|       |
  324|   128k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|   128k|			}
  326|       |
  327|  6.54k|			curRec.assign(nullptr);
  328|  6.54k|			return curRec;  // for NRVO optimization
  329|  13.5k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getFirstTLVRecordEPhm:
  255|  20.2k|		{
  256|  20.2k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  20.2k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 30, False: 20.2k]
  ------------------
  258|     30|				return resRec;
  259|       |
  260|  20.2k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  20.2k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 295, False: 19.9k]
  ------------------
  263|    295|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  20.2k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 19.9k, False: 295]
  |  Branch (266:29): [True: 0, False: 19.9k]
  |  Branch (266:48): [True: 0, False: 19.9k]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|  20.2k|			return resRec;
  270|  20.2k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE16getNextTLVRecordERS1_PKhm:
  281|   244k|		{
  282|   244k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|   244k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 244k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|   244k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 11.1k, False: 233k]
  ------------------
  288|   244k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|   244k|			                                  record.getTotalSize()))
  290|  11.1k|				return resRec;
  291|       |
  292|   233k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|   233k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 233k]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|   233k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 233k]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|   233k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 233k, False: 0]
  |  Branch (302:28): [True: 1.74k, False: 231k]
  ------------------
  303|  1.74k|				resRec.assign(nullptr);
  304|       |
  305|   233k|			return resRec;
  306|   244k|		}
_ZNK4pcpp15TLVRecordReaderINS_10DhcpOptionEE17getTLVRecordCountEPhm:
  339|  64.7k|		{
  340|  64.7k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (340:8): [True: 61.3k, False: 3.38k]
  ------------------
  341|  61.3k|				return m_RecordCount;
  342|       |
  343|  3.38k|			m_RecordCount = 0;
  344|  3.38k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  345|  61.3k|			while (!curRec.isNull())
  ------------------
  |  Branch (345:11): [True: 57.9k, False: 3.38k]
  ------------------
  346|  57.9k|			{
  347|  57.9k|				m_RecordCount++;
  348|  57.9k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  349|  57.9k|			}
  350|       |
  351|  3.38k|			return m_RecordCount;
  352|  64.7k|		}
_ZNK4pcpp9TLVRecordIhhE7getTypeEv:
  111|   370k|		{
  112|   370k|			if (m_Data == nullptr)
  ------------------
  |  Branch (112:8): [True: 0, False: 370k]
  ------------------
  113|      0|				return 0;
  114|       |
  115|   370k|			return m_Data->recordType;
  116|   370k|		}
_ZN4pcpp9TLVRecordIhhE15purgeRecordDataEv:
  147|  63.9k|		{
  148|  63.9k|			if (!isNull())
  ------------------
  |  Branch (148:8): [True: 63.9k, False: 0]
  ------------------
  149|  63.9k|			{
  150|  63.9k|				delete[] m_Data;
  151|  63.9k|				m_Data = nullptr;
  152|  63.9k|			}
  153|  63.9k|		}
_ZNK4pcpp9TLVRecordIhhE16getRecordBasePtrEv:
  141|  2.49M|		{
  142|  2.49M|			return reinterpret_cast<uint8_t*>(m_Data);
  143|  2.49M|		}
_ZNK4pcpp9TLVRecordIhhE9isNotNullEv:
  135|   204k|		{
  136|   204k|			return (m_Data != nullptr);
  137|   204k|		}
_ZN4pcpp9TLVRecordIttEC2EPh:
   41|  33.2k|		{
   42|  33.2k|			assign(recordRawData);
   43|  33.2k|		}
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEED2Ev:
  237|  19.2k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_12DhcpV6OptionEEC2Ev:
  226|  19.2k|		{
  227|  19.2k|			m_RecordCount = static_cast<size_t>(-1);
  228|  19.2k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getFirstTLVRecordEPhm:
  255|  10.6k|		{
  256|  10.6k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  10.6k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 40, False: 10.5k]
  ------------------
  258|     40|				return resRec;
  259|       |
  260|  10.5k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  10.5k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 191, False: 10.3k]
  ------------------
  263|    191|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  10.5k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 10.3k, False: 191]
  |  Branch (266:29): [True: 0, False: 10.3k]
  |  Branch (266:48): [True: 0, False: 10.3k]
  ------------------
  267|      0|				resRec.assign(nullptr);
  268|       |
  269|  10.5k|			return resRec;
  270|  10.6k|		}
_ZN4pcpp9TLVRecordIttE9canAssignEPKhm:
   68|  33.2k|		{
   69|  33.2k|			return recordRawData != nullptr &&
  ------------------
  |  Branch (69:11): [True: 33.2k, False: 0]
  ------------------
   70|  33.2k|			       tlvDataLen >= (sizeof(TLVRawData::recordType) + sizeof(TLVRawData::recordLen));
  ------------------
  |  Branch (70:11): [True: 27.2k, False: 6.01k]
  ------------------
   71|  33.2k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE16getNextTLVRecordERS1_PKhm:
  281|  22.6k|		{
  282|  22.6k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|  22.6k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 22.6k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|  22.6k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 5.97k, False: 16.6k]
  ------------------
  288|  22.6k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|  22.6k|			                                  record.getTotalSize()))
  290|  5.97k|				return resRec;
  291|       |
  292|  16.6k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|  16.6k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 0, False: 16.6k]
  ------------------
  295|      0|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|  16.6k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 0, False: 16.6k]
  ------------------
  299|      0|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|  16.6k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 16.6k, False: 0]
  |  Branch (302:28): [True: 3.25k, False: 13.3k]
  ------------------
  303|  3.25k|				resRec.assign(nullptr);
  304|       |
  305|  16.6k|			return resRec;
  306|  22.6k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE12getTLVRecordEjPhm:
  315|  3.46k|		{
  316|  3.46k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  9.53k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 7.23k, False: 2.30k]
  ------------------
  318|  7.23k|			{
  319|  7.23k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 1.15k, False: 6.07k]
  ------------------
  320|  1.15k|				{
  321|  1.15k|					return curRec;
  322|  1.15k|				}
  323|       |
  324|  6.07k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  6.07k|			}
  326|       |
  327|  2.30k|			curRec.assign(nullptr);
  328|  2.30k|			return curRec;  // for NRVO optimization
  329|  3.46k|		}
_ZNK4pcpp15TLVRecordReaderINS_12DhcpV6OptionEE17getTLVRecordCountEPhm:
  339|  15.4k|		{
  340|  15.4k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (340:8): [True: 11.7k, False: 3.69k]
  ------------------
  341|  11.7k|				return m_RecordCount;
  342|       |
  343|  3.69k|			m_RecordCount = 0;
  344|  3.69k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  345|  11.9k|			while (!curRec.isNull())
  ------------------
  |  Branch (345:11): [True: 8.26k, False: 3.69k]
  ------------------
  346|  8.26k|			{
  347|  8.26k|				m_RecordCount++;
  348|  8.26k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  349|  8.26k|			}
  350|       |
  351|  3.69k|			return m_RecordCount;
  352|  15.4k|		}
_ZNK4pcpp9TLVRecordIttE6isNullEv:
  129|  71.3k|		{
  130|  71.3k|			return (m_Data == nullptr);
  131|  71.3k|		}
_ZNK4pcpp9TLVRecordIttE16getRecordBasePtrEv:
  141|   105k|		{
  142|   105k|			return reinterpret_cast<uint8_t*>(m_Data);
  143|   105k|		}
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEED2Ev:
  237|    248|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_23GtpV2InformationElementEEC2Ev:
  226|    248|		{
  227|    248|			m_RecordCount = static_cast<size_t>(-1);
  228|    248|		}
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEED2Ev:
  237|  1.05M|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_10IPv4OptionEEC2Ev:
  226|  1.05M|		{
  227|  1.05M|			m_RecordCount = static_cast<size_t>(-1);
  228|  1.05M|		}
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEED2Ev:
  237|  17.3k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEEC2Ev:
  226|  2.41k|		{
  227|  2.41k|			m_RecordCount = static_cast<size_t>(-1);
  228|  2.41k|		}
_ZN4pcpp15TLVRecordReaderINS_8NflogTlvEED2Ev:
  237|  2.41k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEEC2Ev:
  226|  3.27k|		{
  227|  3.27k|			m_RecordCount = static_cast<size_t>(-1);
  228|  3.27k|		}
_ZN4pcpp15TLVRecordReaderINS_19PPPoEDiscoveryLayer8PPPoETagEED2Ev:
  237|  3.27k|		virtual ~TLVRecordReader() = default;
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE12getTLVRecordEjPhm:
  315|   104k|		{
  316|   104k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|   133k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 93.7k, False: 40.0k]
  ------------------
  318|  93.7k|			{
  319|  93.7k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 63.9k, False: 29.7k]
  ------------------
  320|  63.9k|				{
  321|  63.9k|					return curRec;
  322|  63.9k|				}
  323|       |
  324|  29.7k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  29.7k|			}
  326|       |
  327|  40.0k|			curRec.assign(nullptr);
  328|  40.0k|			return curRec;  // for NRVO optimization
  329|   104k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE17getFirstTLVRecordEPhm:
  255|   167k|		{
  256|   167k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|   167k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 31.7k, False: 136k]
  ------------------
  258|  31.7k|				return resRec;
  259|       |
  260|   136k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|   136k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 4.68k, False: 131k]
  ------------------
  263|  4.68k|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|   136k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 131k, False: 4.68k]
  |  Branch (266:29): [True: 0, False: 131k]
  |  Branch (266:48): [True: 509, False: 131k]
  ------------------
  267|    509|				resRec.assign(nullptr);
  268|       |
  269|   136k|			return resRec;
  270|   167k|		}
_ZNK4pcpp15TLVRecordReaderINS_9TcpOptionEE16getNextTLVRecordERS1_PKhm:
  281|   234k|		{
  282|   234k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|   234k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 234k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|   234k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 51.1k, False: 183k]
  ------------------
  288|   234k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|   234k|			                                  record.getTotalSize()))
  290|  51.1k|				return resRec;
  291|       |
  292|   183k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|   183k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 3.13k, False: 180k]
  ------------------
  295|  3.13k|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|   183k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 3.13k, False: 180k]
  ------------------
  299|  3.13k|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|   183k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 180k, False: 3.13k]
  |  Branch (302:28): [True: 12.6k, False: 167k]
  ------------------
  303|  12.6k|				resRec.assign(nullptr);
  304|       |
  305|   183k|			return resRec;
  306|   234k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEE20changeTLVRecordCountEi:
  360|  63.9k|		{
  361|  63.9k|			if (m_RecordCount != static_cast<size_t>(-1))
  ------------------
  |  Branch (361:8): [True: 0, False: 63.9k]
  ------------------
  362|      0|				m_RecordCount += changedBy;
  363|  63.9k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEC2Ev:
  226|   676k|		{
  227|   676k|			m_RecordCount = static_cast<size_t>(-1);
  228|   676k|		}
_ZN4pcpp15TLVRecordReaderINS_9TcpOptionEEaSERKS2_:
  242|   104k|		{
  243|   104k|			m_RecordCount = other.m_RecordCount;
  244|   104k|			return *this;
  245|   104k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEEC2Ev:
  226|  9.62k|		{
  227|  9.62k|			m_RecordCount = static_cast<size_t>(-1);
  228|  9.62k|		}
_ZN4pcpp15TLVRecordReaderINS_15RadiusAttributeEED2Ev:
  237|  9.62k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEEC2Ev:
  226|  2.00k|		{
  227|  2.00k|			m_RecordCount = static_cast<size_t>(-1);
  228|  2.00k|		}
_ZN4pcpp15TLVRecordReaderINS_9NdpOptionEED2Ev:
  237|  2.00k|		virtual ~TLVRecordReader() = default;
_ZN4pcpp15TLVRecordReaderINS_19IPv6TLVOptionHeader10IPv6OptionEEC2Ev:
  226|  17.3k|		{
  227|  17.3k|			m_RecordCount = static_cast<size_t>(-1);
  228|  17.3k|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE17getFirstTLVRecordEPhm:
  255|    996|		{
  256|    996|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|    996|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 954, False: 42]
  ------------------
  258|    954|				return resRec;
  259|       |
  260|     42|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|     42|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 6, False: 36]
  ------------------
  263|      6|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|     42|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 36, False: 6]
  |  Branch (266:29): [True: 0, False: 36]
  |  Branch (266:48): [True: 22, False: 14]
  ------------------
  267|     22|				resRec.assign(nullptr);
  268|       |
  269|     42|			return resRec;
  270|    996|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE16getNextTLVRecordERS1_PKhm:
  281|     10|		{
  282|     10|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|     10|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 10]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|     10|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 2, False: 8]
  ------------------
  288|     10|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|     10|			                                  record.getTotalSize()))
  290|      2|				return resRec;
  291|       |
  292|      8|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|      8|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 4, False: 4]
  ------------------
  295|      4|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|      8|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 4, False: 4]
  ------------------
  299|      4|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|      8|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 4, False: 4]
  |  Branch (302:28): [True: 4, False: 0]
  ------------------
  303|      4|				resRec.assign(nullptr);
  304|       |
  305|      8|			return resRec;
  306|     10|		}
_ZNK4pcpp15TLVRecordReaderINS_9NdpOptionEE12getTLVRecordEjPhm:
  315|    996|		{
  316|    996|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  1.00k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 14, False: 992]
  ------------------
  318|     14|			{
  319|     14|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 4, False: 10]
  ------------------
  320|      4|				{
  321|      4|					return curRec;
  322|      4|				}
  323|       |
  324|     10|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|     10|			}
  326|       |
  327|    992|			curRec.assign(nullptr);
  328|    992|			return curRec;  // for NRVO optimization
  329|    996|		}
_ZNK4pcpp9TLVRecordIhhE8getValueEv:
  120|      2|		{
  121|      2|			if (m_Data == nullptr)
  ------------------
  |  Branch (121:8): [True: 0, False: 2]
  ------------------
  122|      0|				return nullptr;
  123|       |
  124|      2|			return m_Data->recordValue;
  125|      2|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE12getTLVRecordEjPhm:
  315|  2.32k|		{
  316|  2.32k|			TLVRecordType curRec = getFirstTLVRecord(tlvDataBasePtr, tlvDataLen);
  317|  4.14k|			while (!curRec.isNull())
  ------------------
  |  Branch (317:11): [True: 1.86k, False: 2.27k]
  ------------------
  318|  1.86k|			{
  319|  1.86k|				if (curRec.getType() == recordType)
  ------------------
  |  Branch (319:9): [True: 51, False: 1.81k]
  ------------------
  320|     51|				{
  321|     51|					return curRec;
  322|     51|				}
  323|       |
  324|  1.81k|				curRec = getNextTLVRecord(curRec, tlvDataBasePtr, tlvDataLen);
  325|  1.81k|			}
  326|       |
  327|  2.27k|			curRec.assign(nullptr);
  328|  2.27k|			return curRec;  // for NRVO optimization
  329|  2.32k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE17getFirstTLVRecordEPhm:
  255|  3.51k|		{
  256|  3.51k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  257|  3.51k|			if (!TLVRecordType::canAssign(tlvDataBasePtr, tlvDataLen))
  ------------------
  |  Branch (257:8): [True: 47, False: 3.47k]
  ------------------
  258|     47|				return resRec;
  259|       |
  260|  3.47k|			resRec.assign(tlvDataBasePtr);
  261|       |			// resRec pointer is out-bounds of the TLV records memory
  262|  3.47k|			if (resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (262:8): [True: 861, False: 2.61k]
  ------------------
  263|    861|				resRec.assign(nullptr);
  264|       |
  265|       |			// check if there are records at all and the total size is not zero
  266|  3.47k|			if (!resRec.isNull() && (tlvDataLen == 0 || resRec.getTotalSize() == 0))
  ------------------
  |  Branch (266:8): [True: 2.61k, False: 861]
  |  Branch (266:29): [True: 0, False: 2.61k]
  |  Branch (266:48): [True: 780, False: 1.83k]
  ------------------
  267|    780|				resRec.assign(nullptr);
  268|       |
  269|  3.47k|			return resRec;
  270|  3.51k|		}
_ZNK4pcpp15TLVRecordReaderINS_8NflogTlvEE16getNextTLVRecordERS1_PKhm:
  281|  2.71k|		{
  282|  2.71k|			TLVRecordType resRec(nullptr);  // for NRVO optimization
  283|       |
  284|  2.71k|			if (record.isNull())
  ------------------
  |  Branch (284:8): [True: 0, False: 2.71k]
  ------------------
  285|      0|				return resRec;
  286|       |
  287|  2.71k|			if (!TLVRecordType::canAssign(record.getRecordBasePtr() + record.getTotalSize(),
  ------------------
  |  Branch (287:8): [True: 408, False: 2.30k]
  ------------------
  288|  2.71k|			                              tlvDataBasePtr - record.getRecordBasePtr() + tlvDataLen -
  289|  2.71k|			                                  record.getTotalSize()))
  290|    408|				return resRec;
  291|       |
  292|  2.30k|			resRec.assign(record.getRecordBasePtr() + record.getTotalSize());
  293|       |
  294|  2.30k|			if (resRec.getTotalSize() == 0)
  ------------------
  |  Branch (294:8): [True: 114, False: 2.18k]
  ------------------
  295|    114|				resRec.assign(nullptr);
  296|       |
  297|       |			// resRec pointer is out-bounds of the TLV records memory
  298|  2.30k|			if ((resRec.getRecordBasePtr() - tlvDataBasePtr) < 0)
  ------------------
  |  Branch (298:8): [True: 114, False: 2.18k]
  ------------------
  299|    114|				resRec.assign(nullptr);
  300|       |
  301|       |			// resRec pointer is out-bounds of the TLV records memory
  302|  2.30k|			if (!resRec.isNull() && resRec.getRecordBasePtr() + resRec.getTotalSize() > tlvDataBasePtr + tlvDataLen)
  ------------------
  |  Branch (302:8): [True: 2.18k, False: 114]
  |  Branch (302:28): [True: 1.24k, False: 944]
  ------------------
  303|  1.24k|				resRec.assign(nullptr);
  304|       |
  305|  2.30k|			return resRec;
  306|  2.71k|		}

_ZN4pcpp8TcpLayerD2Ev:
  461|   676k|		~TcpLayer() override = default;
_ZN4pcpp9TcpOptionC2EPh:
  259|   570k|		explicit TcpOption(uint8_t* optionRawData) : TLVRecord(optionRawData)
  260|   570k|		{}
_ZN4pcpp9TcpOption9canAssignEPKhm:
  284|   402k|		{
  285|   402k|			const auto* data = reinterpret_cast<const TLVRawData*>(recordRawData);
  286|   402k|			if (data == nullptr)
  ------------------
  |  Branch (286:8): [True: 0, False: 402k]
  ------------------
  287|      0|				return false;
  288|       |
  289|   402k|			if (tlvDataLen < sizeof(TLVRawData::recordType))
  ------------------
  |  Branch (289:8): [True: 82.2k, False: 320k]
  ------------------
  290|  82.2k|				return false;
  291|       |
  292|   320k|			const auto recordType = getTcpOptionEnumType(data);
  293|   320k|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (293:8): [True: 180k, False: 139k]
  |  Branch (293:48): [True: 21.5k, False: 117k]
  ------------------
  294|   202k|				return true;
  295|       |
  296|   117k|			return TLVRecord<uint8_t, uint8_t>::canAssign(recordRawData, tlvDataLen);
  297|   320k|		}
_ZNK4pcpp9TcpOption12getTotalSizeEv:
  302|  1.74M|		{
  303|  1.74M|			if (m_Data == nullptr)
  ------------------
  |  Branch (303:8): [True: 0, False: 1.74M]
  ------------------
  304|      0|				return 0;
  305|       |
  306|  1.74M|			const auto recordType = getTcpOptionEnumType(m_Data);
  307|  1.74M|			if (recordType == TcpOptionEnumType::Nop || recordType == TcpOptionEnumType::Eol)
  ------------------
  |  Branch (307:8): [True: 1.08M, False: 659k]
  |  Branch (307:48): [True: 121k, False: 538k]
  ------------------
  308|  1.20M|				return sizeof(uint8_t);
  309|       |
  310|   538k|			return static_cast<size_t>(m_Data->recordLen);
  311|  1.74M|		}
_ZN4pcpp9TcpOption20getTcpOptionEnumTypeEPKNS_9TLVRecordIhhE10TLVRawDataE:
  335|  2.06M|		{
  336|  2.06M|			if (optionRawData == nullptr)
  ------------------
  |  Branch (336:8): [True: 0, False: 2.06M]
  ------------------
  337|      0|				return TcpOptionEnumType::Unknown;
  338|       |
  339|  2.06M|			return static_cast<TcpOptionEnumType>(optionRawData->recordType);
  340|  2.06M|		}
_ZNK4pcpp8TcpLayer12getTcpHeaderEv:
  474|  3.23M|		{
  475|  3.23M|			return reinterpret_cast<tcphdr*>(m_Data);
  476|  3.23M|		}
_ZNK4pcpp8TcpLayer12getHeaderLenEv:
  568|  1.35M|		{
  569|  1.35M|			return getTcpHeader()->dataOffset * 4;
  570|  1.35M|		}
_ZNK4pcpp8TcpLayer16getOsiModelLayerEv:
  578|   104k|		{
  579|   104k|			return OsiModelTransportLayer;
  580|   104k|		}
_ZNK4pcpp8TcpLayer17getOptionsBasePtrEv:
  635|   372k|		{
  636|   372k|			return m_Data + sizeof(tcphdr);
  637|   372k|		}
_ZN4pcpp8TcpLayer11isDataValidEPKhm:
  646|   580k|	{
  647|   580k|		const tcphdr* hdr = reinterpret_cast<const tcphdr*>(data);
  648|   580k|		return dataLen >= sizeof(tcphdr) && hdr->dataOffset >= 5 /* the minimum TCP header size */
  ------------------
  |  Branch (648:10): [True: 579k, False: 419]
  |  Branch (648:39): [True: 577k, False: 2.07k]
  ------------------
  649|   577k|		       && dataLen >= hdr->dataOffset * sizeof(uint32_t);
  ------------------
  |  Branch (649:13): [True: 572k, False: 5.69k]
  ------------------
  650|   580k|	}

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

_ZNK4pcpp11HeaderField12getFieldSizeEv:
   49|  3.98M|		{
   50|  3.98M|			return m_FieldSize;
   51|  3.98M|		}
_ZNK4pcpp11HeaderField13isEndOfHeaderEv:
   70|  1.51M|		{
   71|  1.51M|			return m_IsEndOfHeaderField;
   72|  1.51M|		}
_ZNK4pcpp24TextBasedProtocolMessage13getFirstFieldEv:
  123|  5.19k|		{
  124|  5.19k|			return m_FieldList;
  125|  5.19k|		}

_ZN4pcpp9TpktLayer11isDataValidEPKhm:
   92|   158k|		{
   93|   158k|			return canReinterpretAs<tpkthdr>(data, dataSize);
   94|   158k|		}
_ZN4pcpp9TpktLayer10isTpktPortEtt:
   83|   146k|		{
   84|   146k|			return portSrc == 102 || portDst == 102;
  ------------------
  |  Branch (84:11): [True: 5.27k, False: 141k]
  |  Branch (84:29): [True: 13.6k, False: 127k]
  ------------------
   85|   146k|		}
_ZN4pcpp9TpktLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   38|  18.9k|		    : Layer(data, dataLen, prevLayer, packet, TPKT)
   39|  18.9k|		{}
_ZNK4pcpp9TpktLayer12getHeaderLenEv:
   67|  21.6k|		{
   68|  21.6k|			return sizeof(tpkthdr);
   69|  21.6k|		}
_ZN4pcpp9TpktLayer22computeCalculateFieldsEv:
   73|  2.67k|		{}
_ZNK4pcpp9TpktLayer16getOsiModelLayerEv:
   99|  2.67k|		{
  100|  2.67k|			return OsiModelTransportLayer;
  101|  2.67k|		}
_ZNK4pcpp9TpktLayer13getTpktHeaderEv:
  130|  10.7k|		{
  131|  10.7k|			return reinterpret_cast<tpkthdr*>(m_Data);
  132|  10.7k|		}

_ZN4pcpp8UdpLayer11isDataValidEPKhm:
  126|   418k|	{
  127|   418k|		return data && dataLen >= sizeof(udphdr);
  ------------------
  |  Branch (127:10): [True: 418k, False: 0]
  |  Branch (127:18): [True: 416k, False: 1.74k]
  ------------------
  128|   418k|	}
_ZN4pcpp8UdpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   41|   416k|		    : Layer(data, dataLen, prevLayer, packet, UDP)
   42|   416k|		{}
_ZNK4pcpp8UdpLayer12getUdpHeaderEv:
   53|  1.08M|		{
   54|  1.08M|			return reinterpret_cast<udphdr*>(m_Data);
   55|  1.08M|		}
_ZNK4pcpp8UdpLayer12getHeaderLenEv:
   83|   171k|		{
   84|   171k|			return sizeof(udphdr);
   85|   171k|		}
_ZNK4pcpp8UdpLayer16getOsiModelLayerEv:
   93|  63.3k|		{
   94|  63.3k|			return OsiModelTransportLayer;
   95|  63.3k|		}

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

_ZN4pcpp9VrrpLayerC2EPhmPNS_5LayerEPNS_6PacketEhNS_9IPAddress11AddressTypeE:
  129|  9.79k|		    : Layer(data, dataLen, prevLayer, packet, vrrpVer), m_AddressType(addressType)
  130|  9.79k|		{}
_ZNK4pcpp9VrrpLayer13getVrrpHeaderEv:
  135|  32.1k|		{
  136|  32.1k|			return reinterpret_cast<vrrp_header*>(m_Data);
  137|  32.1k|		}
_ZN4pcpp9VrrpLayer14parseNextLayerEv:
  252|  9.79k|		{}
_ZNK4pcpp9VrrpLayer12getHeaderLenEv:
  260|  30.9k|		{
  261|  30.9k|			return m_DataLen;
  262|  30.9k|		}
_ZNK4pcpp9VrrpLayer16getOsiModelLayerEv:
  267|  2.09k|		{
  268|  2.09k|			return OsiModelNetworkLayer;
  269|  2.09k|		}
_ZN4pcpp11VrrpV2LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  346|  3.06k|		    : VrrpLayer(data, dataLen, prevLayer, packet, VRRPv2, IPAddress::IPv4AddressType)
  347|  3.06k|		{}
_ZN4pcpp11VrrpV2Layer11isDataValidEPKhm:
  387|  3.06k|		{
  388|  3.06k|			return canReinterpretAs<vrrp_header>(data, dataLen);
  389|  3.06k|		}
_ZN4pcpp11VrrpV3LayerC2EPhmPNS_5LayerEPNS_6PacketENS_9IPAddress11AddressTypeE:
  436|  6.73k|		    : VrrpLayer(data, dataLen, prevLayer, packet, VRRPv3, addressType)
  437|  6.73k|		{}
_ZN4pcpp11VrrpV3Layer11isDataValidEPKhm:
  468|  2.36k|		{
  469|  2.36k|			return canReinterpretAs<vrrp_header>(data, dataLen);
  470|  2.36k|		}

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

_ZN4pcpp14WakeOnLanLayer15isWakeOnLanPortEt:
  106|  62.9k|		{
  107|  62.9k|			return (port == 0) || (port == 7) || (port == 9);
  ------------------
  |  Branch (107:11): [True: 3.18k, False: 59.7k]
  |  Branch (107:26): [True: 36, False: 59.6k]
  |  Branch (107:41): [True: 78, False: 59.6k]
  ------------------
  108|  62.9k|		}
_ZN4pcpp14WakeOnLanLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   39|    646|		    : Layer(data, dataLen, prevLayer, packet, WakeOnLan)
   40|    646|		{}
_ZNK4pcpp14WakeOnLanLayer18getWakeOnLanHeaderEv:
   66|    258|		{
   67|    258|			return reinterpret_cast<wol_header*>(m_Data);
   68|    258|		}
_ZN4pcpp14WakeOnLanLayer14parseNextLayerEv:
  120|    646|		{}
_ZNK4pcpp14WakeOnLanLayer12getHeaderLenEv:
  124|    129|		{
  125|    129|			return m_DataLen;
  126|    129|		}
_ZN4pcpp14WakeOnLanLayer22computeCalculateFieldsEv:
  130|    129|		{}
_ZNK4pcpp14WakeOnLanLayer16getOsiModelLayerEv:
  134|    129|		{
  135|    129|			return OsiModelDataLinkLayer;
  136|    129|		}

_ZN4pcpp14WireGuardLayer16isWireGuardPortsEtt:
   68|  62.2k|		{
   69|  62.2k|			return (portSrc == 51820 || portDst == 51820);
  ------------------
  |  Branch (69:12): [True: 2.17k, False: 60.0k]
  |  Branch (69:32): [True: 2.03k, False: 58.0k]
  ------------------
   70|  62.2k|		}
_ZNK4pcpp14WireGuardLayer14getBasicHeaderEv:
   32|  1.56k|		{
   33|  1.56k|			return reinterpret_cast<wg_common_header*>(m_Data);
   34|  1.56k|		}
_ZN4pcpp14WireGuardLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   60|  3.92k|		    : Layer(data, dataLen, prevLayer, packet, WireGuard)
   61|  3.92k|		{}
_ZN4pcpp14WireGuardLayer14parseNextLayerEv:
  100|  3.92k|		{}
_ZN4pcpp14WireGuardLayer22computeCalculateFieldsEv:
  107|    784|		{}
_ZNK4pcpp14WireGuardLayer16getOsiModelLayerEv:
  115|    784|		{
  116|    784|			return OsiModelNetworkLayer;
  117|    784|		}
_ZN4pcpp33WireGuardHandshakeInitiationLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  190|    726|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  191|    726|		{}
_ZN4pcpp33WireGuardHandshakeInitiationLayer11isDataValidEPKhm:
  199|    760|		{
  200|    760|			return data != nullptr && dataLen >= sizeof(wg_handshake_initiation);
  ------------------
  |  Branch (200:11): [True: 760, False: 0]
  |  Branch (200:30): [True: 726, False: 34]
  ------------------
  201|    760|		}
_ZN4pcpp31WireGuardHandshakeResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  337|    668|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  338|    668|		{}
_ZN4pcpp31WireGuardHandshakeResponseLayer11isDataValidEPKhm:
  346|    733|		{
  347|    733|			return data != nullptr && dataLen >= sizeof(wg_handshake_response);
  ------------------
  |  Branch (347:11): [True: 733, False: 0]
  |  Branch (347:30): [True: 668, False: 65]
  ------------------
  348|    733|		}
_ZN4pcpp25WireGuardCookieReplyLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  476|     15|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  477|     15|		{}
_ZN4pcpp25WireGuardCookieReplyLayer11isDataValidEPKhm:
  484|     20|		{
  485|     20|			return data != nullptr && dataLen >= sizeof(wg_cookie_reply);
  ------------------
  |  Branch (485:11): [True: 20, False: 0]
  |  Branch (485:30): [True: 15, False: 5]
  ------------------
  486|     20|		}
_ZN4pcpp27WireGuardTransportDataLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  579|  2.51k|		    : WireGuardLayer(data, dataLen, prevLayer, packet)
  580|  2.51k|		{}
_ZN4pcpp27WireGuardTransportDataLayer11isDataValidEPKhm:
  587|  2.54k|		{
  588|  2.54k|			return data != nullptr && dataLen >= sizeof(wg_transport_data);
  ------------------
  |  Branch (588:11): [True: 2.54k, False: 0]
  |  Branch (588:30): [True: 2.51k, False: 31]
  ------------------
  589|  2.54k|		}

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

_ZN4pcpp10Asn1Record6decodeEPKhmb:
   93|   504k|	{
   94|   504k|		uint8_t tagLen;
   95|   504k|		auto decodedRecord = decodeTagAndCreateRecord(data, dataLen, tagLen);
   96|       |
   97|   504k|		uint8_t lengthLen;
   98|   504k|		lengthLen = decodedRecord->decodeLength(data + tagLen, dataLen - tagLen);
   99|       |
  100|   504k|		decodedRecord->m_TotalLength = tagLen + lengthLen + decodedRecord->m_ValueLength;
  101|   504k|		if (decodedRecord->m_TotalLength < decodedRecord->m_ValueLength ||  // check for overflow
  ------------------
  |  Branch (101:7): [True: 3.60k, False: 500k]
  ------------------
  102|   500k|		    decodedRecord->m_TotalLength > dataLen)
  ------------------
  |  Branch (102:7): [True: 4.28k, False: 496k]
  ------------------
  103|  4.28k|		{
  104|  4.28k|			throw std::invalid_argument("Cannot decode ASN.1 record, data doesn't contain the entire record");
  105|  4.28k|		}
  106|       |
  107|   500k|		uint8_t const* startOfData = data + tagLen + lengthLen;
  108|   500k|		internal::Asn1LoadPolicy policy = lazy ? internal::Asn1LoadPolicy::Lazy : internal::Asn1LoadPolicy::Eager;
  ------------------
  |  Branch (108:37): [True: 75.2k, False: 424k]
  ------------------
  109|   500k|		decodedRecord->setEncodedValue(startOfData, policy);
  110|       |
  111|   500k|		return decodedRecord;
  112|   504k|	}
_ZN4pcpp10Asn1Record24decodeTagAndCreateRecordEPKhmRh:
  207|   504k|	{
  208|   504k|		if (dataLen < 1)
  ------------------
  |  Branch (208:7): [True: 0, False: 504k]
  ------------------
  209|      0|		{
  210|      0|			throw std::invalid_argument("Cannot decode ASN.1 record tag");
  211|      0|		}
  212|       |
  213|   504k|		tagLen = 1;
  214|       |
  215|   504k|		Asn1TagClass tagClass = Asn1TagClass::Universal;
  216|       |
  217|       |		// Check first 2 bits
  218|   504k|		auto tagClassBits = data[0] & 0xc0;
  219|   504k|		if (tagClassBits == 0)
  ------------------
  |  Branch (219:7): [True: 403k, False: 101k]
  ------------------
  220|   403k|		{
  221|   403k|			tagClass = Asn1TagClass::Universal;
  222|   403k|		}
  223|   101k|		else if ((tagClassBits & 0xc0) == 0xc0)
  ------------------
  |  Branch (223:12): [True: 4.81k, False: 96.4k]
  ------------------
  224|  4.81k|		{
  225|  4.81k|			tagClass = Asn1TagClass::Private;
  226|  4.81k|		}
  227|  96.4k|		else if ((tagClassBits & 0x80) == 0x80)
  ------------------
  |  Branch (227:12): [True: 27.4k, False: 68.9k]
  ------------------
  228|  27.4k|		{
  229|  27.4k|			tagClass = Asn1TagClass::ContextSpecific;
  230|  27.4k|		}
  231|  68.9k|		else if ((tagClassBits & 0x40) == 0x40)
  ------------------
  |  Branch (231:12): [True: 68.9k, False: 0]
  ------------------
  232|  68.9k|		{
  233|  68.9k|			tagClass = Asn1TagClass::Application;
  234|  68.9k|		}
  235|       |
  236|       |		// Check bit 6
  237|   504k|		auto tagTypeBits = data[0] & 0x20;
  238|   504k|		bool isConstructed = (tagTypeBits != 0);
  239|       |
  240|       |		// Check last 5 bits
  241|   504k|		auto tagType = data[0] & 0x1f;
  242|   504k|		if (tagType == 0x1f)
  ------------------
  |  Branch (242:7): [True: 2.47k, False: 501k]
  ------------------
  243|  2.47k|		{
  244|  2.47k|			if (dataLen < 2)
  ------------------
  |  Branch (244:8): [True: 15, False: 2.46k]
  ------------------
  245|     15|			{
  246|     15|				throw std::invalid_argument("Cannot decode ASN.1 record tag");
  247|     15|			}
  248|       |
  249|  2.46k|			if ((data[1] & 0x80) != 0)
  ------------------
  |  Branch (249:8): [True: 132, False: 2.32k]
  ------------------
  250|    132|			{
  251|    132|				throw std::invalid_argument("ASN.1 tags with value larger than 127 are not supported");
  252|    132|			}
  253|       |
  254|  2.32k|			tagType = data[1] & 0x7f;
  255|  2.32k|			tagLen = 2;
  256|  2.32k|		}
  257|       |
  258|   504k|		std::unique_ptr<Asn1Record> newRecord;
  259|       |
  260|   504k|		if (isConstructed)
  ------------------
  |  Branch (260:7): [True: 206k, False: 298k]
  ------------------
  261|   206k|		{
  262|   206k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (262:8): [True: 123k, False: 82.7k]
  ------------------
  263|   123k|			{
  264|   123k|				switch (static_cast<Asn1UniversalTagType>(tagType))
  265|   123k|				{
  266|   103k|				case Asn1UniversalTagType::Sequence:
  ------------------
  |  Branch (266:5): [True: 103k, False: 19.5k]
  ------------------
  267|   103k|				{
  268|   103k|					newRecord.reset(new Asn1SequenceRecord());
  269|   103k|					break;
  270|      0|				}
  271|  16.5k|				case Asn1UniversalTagType::Set:
  ------------------
  |  Branch (271:5): [True: 16.5k, False: 106k]
  ------------------
  272|  16.5k|				{
  273|  16.5k|					newRecord.reset(new Asn1SetRecord());
  274|  16.5k|					break;
  275|      0|				}
  276|  2.98k|				default:
  ------------------
  |  Branch (276:5): [True: 2.98k, False: 120k]
  ------------------
  277|  2.98k|				{
  278|  2.98k|					newRecord.reset(new Asn1ConstructedRecord());
  279|  2.98k|				}
  280|   123k|				}
  281|   123k|			}
  282|  82.7k|			else
  283|  82.7k|			{
  284|  82.7k|				newRecord.reset(new Asn1ConstructedRecord());
  285|  82.7k|			}
  286|   206k|		}
  287|   298k|		else
  288|   298k|		{
  289|   298k|			if (tagClass == Asn1TagClass::Universal)
  ------------------
  |  Branch (289:8): [True: 279k, False: 18.3k]
  ------------------
  290|   279k|			{
  291|   279k|				auto asn1UniversalTagType = static_cast<Asn1UniversalTagType>(tagType);
  292|   279k|				switch (asn1UniversalTagType)
  293|   279k|				{
  294|  81.6k|				case Asn1UniversalTagType::Integer:
  ------------------
  |  Branch (294:5): [True: 81.6k, False: 198k]
  ------------------
  295|  81.6k|				{
  296|  81.6k|					newRecord.reset(new Asn1IntegerRecord());
  297|  81.6k|					break;
  298|      0|				}
  299|  26.0k|				case Asn1UniversalTagType::Enumerated:
  ------------------
  |  Branch (299:5): [True: 26.0k, False: 253k]
  ------------------
  300|  26.0k|				{
  301|  26.0k|					newRecord.reset(new Asn1EnumeratedRecord());
  302|  26.0k|					break;
  303|      0|				}
  304|   151k|				case Asn1UniversalTagType::OctetString:
  ------------------
  |  Branch (304:5): [True: 151k, False: 128k]
  ------------------
  305|   151k|				{
  306|   151k|					newRecord.reset(new Asn1OctetStringRecord());
  307|   151k|					break;
  308|      0|				}
  309|    419|				case Asn1UniversalTagType::UTF8String:
  ------------------
  |  Branch (309:5): [True: 419, False: 279k]
  ------------------
  310|    419|				{
  311|    419|					newRecord.reset(new Asn1UTF8StringRecord());
  312|    419|					break;
  313|      0|				}
  314|    197|				case Asn1UniversalTagType::PrintableString:
  ------------------
  |  Branch (314:5): [True: 197, False: 279k]
  ------------------
  315|    197|				{
  316|    197|					newRecord.reset(new Asn1PrintableStringRecord());
  317|    197|					break;
  318|      0|				}
  319|    232|				case Asn1UniversalTagType::IA5String:
  ------------------
  |  Branch (319:5): [True: 232, False: 279k]
  ------------------
  320|    232|				{
  321|    232|					newRecord.reset(new Asn1IA5StringRecord());
  322|    232|					break;
  323|      0|				}
  324|  6.62k|				case Asn1UniversalTagType::Boolean:
  ------------------
  |  Branch (324:5): [True: 6.62k, False: 273k]
  ------------------
  325|  6.62k|				{
  326|  6.62k|					newRecord.reset(new Asn1BooleanRecord());
  327|  6.62k|					break;
  328|      0|				}
  329|    641|				case Asn1UniversalTagType::BitString:
  ------------------
  |  Branch (329:5): [True: 641, False: 279k]
  ------------------
  330|    641|				{
  331|    641|					newRecord.reset(new Asn1BitStringRecord());
  332|    641|					break;
  333|      0|				}
  334|  1.34k|				case Asn1UniversalTagType::Null:
  ------------------
  |  Branch (334:5): [True: 1.34k, False: 278k]
  ------------------
  335|  1.34k|				{
  336|  1.34k|					newRecord.reset(new Asn1NullRecord());
  337|  1.34k|					break;
  338|      0|				}
  339|  2.07k|				case Asn1UniversalTagType::ObjectIdentifier:
  ------------------
  |  Branch (339:5): [True: 2.07k, False: 277k]
  ------------------
  340|  2.07k|				{
  341|  2.07k|					newRecord.reset(new Asn1ObjectIdentifierRecord());
  342|  2.07k|					break;
  343|      0|				}
  344|    264|				case Asn1UniversalTagType::UTCTime:
  ------------------
  |  Branch (344:5): [True: 264, False: 279k]
  ------------------
  345|    264|				{
  346|    264|					newRecord.reset(new Asn1UtcTimeRecord());
  347|    264|					break;
  348|      0|				}
  349|  1.53k|				case Asn1UniversalTagType::GeneralizedTime:
  ------------------
  |  Branch (349:5): [True: 1.53k, False: 278k]
  ------------------
  350|  1.53k|				{
  351|  1.53k|					newRecord.reset(new Asn1GeneralizedTimeRecord());
  352|  1.53k|					break;
  353|      0|				}
  354|  7.28k|				default:
  ------------------
  |  Branch (354:5): [True: 7.28k, False: 272k]
  ------------------
  355|  7.28k|				{
  356|  7.28k|					newRecord.reset(new Asn1GenericRecord());
  357|  7.28k|				}
  358|   279k|				}
  359|   279k|			}
  360|  18.3k|			else
  361|  18.3k|			{
  362|  18.3k|				newRecord.reset(new Asn1GenericRecord());
  363|  18.3k|			}
  364|   298k|		}
  365|       |
  366|   504k|		newRecord->m_TagClass = tagClass;
  367|   504k|		newRecord->m_IsConstructed = isConstructed;
  368|   504k|		newRecord->m_TagType = tagType;
  369|       |
  370|   504k|		return newRecord;
  371|   504k|	}
_ZN4pcpp10Asn1Record12decodeLengthEPKhm:
  374|   504k|	{
  375|   504k|		if (dataLen < 1)
  ------------------
  |  Branch (375:7): [True: 604, False: 503k]
  ------------------
  376|    604|		{
  377|    604|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  378|    604|		}
  379|       |
  380|       |		// Check 8th bit
  381|   503k|		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|   503k|		if (lengthForm == 0)
  ------------------
  |  Branch (386:7): [True: 382k, False: 121k]
  ------------------
  387|   382k|		{
  388|   382k|			m_ValueLength = data[0];
  389|   382k|			return 1;
  390|   382k|		}
  391|       |
  392|   121k|		uint8_t actualLengthBytes = data[0] & 0x7F;
  393|   121k|		const uint8_t* actualLengthData = data + 1;
  394|       |
  395|   121k|		if (dataLen < static_cast<size_t>(actualLengthBytes) + 1)
  ------------------
  |  Branch (395:7): [True: 2.19k, False: 118k]
  ------------------
  396|  2.19k|		{
  397|  2.19k|			throw std::invalid_argument("Cannot decode ASN.1 record length");
  398|  2.19k|		}
  399|       |
  400|   552k|		for (int i = 0; i < actualLengthBytes; i++)
  ------------------
  |  Branch (400:19): [True: 434k, False: 118k]
  ------------------
  401|   434k|		{
  402|   434k|			size_t partialValueLength = m_ValueLength << 8;
  403|   434k|			if (partialValueLength < m_ValueLength)  // check for overflow
  ------------------
  |  Branch (403:8): [True: 664, False: 433k]
  ------------------
  404|    664|			{
  405|    664|				throw std::invalid_argument("Cannot decode ASN.1 record length");
  406|    664|			}
  407|       |
  408|   433k|			m_ValueLength = partialValueLength | actualLengthData[i];
  409|   433k|		}
  410|       |
  411|   118k|		return 1 + actualLengthBytes;
  412|   118k|	}
_ZNK4pcpp10Asn1Record19decodeValueIfNeededEv:
  415|   539k|	{
  416|       |		// TODO: This is not thread-safe and can cause issues in a multiple reader scenario.
  417|   539k|		if (m_EncodedValue != nullptr)
  ------------------
  |  Branch (417:7): [True: 494k, False: 45.2k]
  ------------------
  418|   494k|		{
  419|   494k|			decodeValue(m_EncodedValue);
  420|   494k|			m_EncodedValue = nullptr;  // Clear the encoded value after decoding
  421|   494k|		}
  422|   539k|	}
_ZN4pcpp10Asn1Record15setEncodedValueEPKhNS_8internal14Asn1LoadPolicyE:
  462|   496k|	{
  463|   496k|		m_EncodedValue = dataSource;
  464|       |
  465|   496k|		if (loadPolicy == internal::Asn1LoadPolicy::Eager)
  ------------------
  |  Branch (465:7): [True: 421k, False: 75.2k]
  ------------------
  466|   421k|		{
  467|   421k|			decodeValueIfNeeded();
  468|   421k|		}
  469|   496k|	}
_ZNK4pcpp17Asn1GenericRecord11decodeValueEPKh:
  484|  22.5k|	{
  485|  22.5k|		m_Value = std::make_unique<uint8_t[]>(m_ValueLength);
  486|  22.5k|		std::memcpy(m_Value.get(), data, m_ValueLength);
  487|  22.5k|	}
_ZNK4pcpp21Asn1ConstructedRecord11decodeValueEPKh:
  519|   200k|	{
  520|   200k|		if (!(data || m_ValueLength))
  ------------------
  |  Branch (520:9): [True: 200k, False: 0]
  |  Branch (520:17): [True: 0, False: 0]
  ------------------
  521|      0|		{
  522|      0|			return;
  523|      0|		}
  524|       |
  525|   200k|		auto value = data;
  526|   200k|		auto valueLen = m_ValueLength;
  527|       |
  528|   626k|		while (valueLen > 0)
  ------------------
  |  Branch (528:10): [True: 426k, False: 200k]
  ------------------
  529|   426k|		{
  530|   426k|			auto subRecord = Asn1Record::decode(value, valueLen, LazySubRecordDecoding);
  531|   426k|			value += subRecord->getTotalLength();
  532|   426k|			valueLen -= subRecord->getTotalLength();
  533|       |
  534|   426k|			m_SubRecords.pushBack(std::move(subRecord));
  535|   426k|		}
  536|   200k|	}
_ZN4pcpp19Asn1PrimitiveRecordC2ENS_20Asn1UniversalTagTypeE:
  583|   153k|	Asn1PrimitiveRecord::Asn1PrimitiveRecord(Asn1UniversalTagType tagType) : Asn1Record()
  584|   153k|	{
  585|   153k|		m_TagType = static_cast<uint8_t>(tagType);
  586|   153k|		m_TagClass = Asn1TagClass::Universal;
  587|   153k|		m_IsConstructed = false;
  588|   153k|	}
_ZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  601|   107k|	{
  602|   107k|		std::string valueStr = value;
  603|       |
  604|       |		// Optional 0x or 0X prefix
  605|   107k|		if (value.size() >= 2 && value[0] == '0' && (value[1] == 'x' || value[1] == 'X'))
  ------------------
  |  Branch (605:7): [True: 107k, False: 67]
  |  Branch (605:28): [True: 90.2k, False: 16.9k]
  |  Branch (605:48): [True: 0, False: 90.2k]
  |  Branch (605:67): [True: 0, False: 90.2k]
  ------------------
  606|      0|		{
  607|      0|			valueStr = value.substr(2);
  608|      0|		}
  609|       |
  610|   107k|		if (valueStr.empty())
  ------------------
  |  Branch (610:7): [True: 67, False: 107k]
  ------------------
  611|     67|		{
  612|     67|			throw std::invalid_argument("Value is not a valid hex stream");
  613|     67|		}
  614|       |
  615|   107k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
  ------------------
  |  Branch (615:7): [True: 0, False: 107k]
  ------------------
  616|      0|		{
  617|      0|			throw std::invalid_argument("Value is not a valid hex stream");
  618|      0|		}
  619|       |
  620|   107k|		return valueStr;
  621|   107k|	}
_ZN4pcpp17Asn1IntegerRecord6BigIntaSERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  624|   107k|	{
  625|   107k|		m_Value = initFromString(value);
  626|   107k|		return *this;
  627|   107k|	}
_ZNK4pcpp17Asn1IntegerRecord11decodeValueEPKh:
  692|   107k|	{
  693|   107k|		m_Value = pcpp::byteArrayToHexString(data, m_ValueLength);
  694|   107k|	}
_ZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKh:
  721|   150k|	{
  722|   150k|		auto value = reinterpret_cast<char const*>(data);
  723|       |
  724|   150k|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });
  725|       |
  726|   150k|		if (m_IsPrintable)
  ------------------
  |  Branch (726:7): [True: 134k, False: 16.1k]
  ------------------
  727|   134k|		{
  728|   134k|			Asn1StringRecord::decodeValue(data);
  729|   134k|		}
  730|  16.1k|		else
  731|  16.1k|		{
  732|  16.1k|			m_Value = byteArrayToHexString(data, m_ValueLength);
  733|  16.1k|		}
  734|   150k|	}
_ZNK4pcpp17Asn1BooleanRecord11decodeValueEPKh:
  761|  6.56k|	{
  762|  6.56k|		if (m_ValueLength != 1)
  ------------------
  |  Branch (762:7): [True: 2.30k, False: 4.26k]
  ------------------
  763|  2.30k|		{
  764|  2.30k|			throw std::invalid_argument("Cannot decode ASN.1 Boolean record, value length must be 1");
  765|  2.30k|		}
  766|       |
  767|  4.26k|		m_Value = data[0] != 0;
  768|  4.26k|	}
_ZN4pcpp14Asn1NullRecordC2Ev:
  781|  1.34k|	Asn1NullRecord::Asn1NullRecord() : Asn1PrimitiveRecord(Asn1UniversalTagType::Null)
  782|  1.34k|	{
  783|  1.34k|		m_ValueLength = 0;
  784|  1.34k|		m_TotalLength = 2;
  785|  1.34k|	}
_ZN4pcpp20Asn1ObjectIdentifierC2EPKhm:
  788|  2.04k|	{
  789|       |		// A description of OID encoding can be found here:
  790|       |		// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-object-identifier?redirectedfrom=MSDN
  791|       |
  792|  2.04k|		if (!data || dataLen == 0)
  ------------------
  |  Branch (792:7): [True: 0, False: 2.04k]
  |  Branch (792:16): [True: 295, False: 1.75k]
  ------------------
  793|    295|		{
  794|    295|			throw std::invalid_argument("Malformed OID: Not enough bytes for the first component");
  795|    295|		}
  796|       |
  797|  1.75k|		size_t currentByteIndex = 0;
  798|  1.75k|		std::vector<uint32_t> components;
  799|       |
  800|  1.75k|		uint8_t firstByte = data[currentByteIndex++];
  801|       |		// Decode the first byte: first_component * 40 + second_component
  802|  1.75k|		components.push_back(static_cast<uint32_t>(firstByte / 40));
  803|  1.75k|		components.push_back(static_cast<uint32_t>(firstByte % 40));
  804|       |
  805|  1.75k|		uint32_t currentComponentValue = 0;
  806|  1.75k|		bool componentStarted = false;
  807|       |
  808|       |		// Process remaining bytes using base-128 encoding
  809|  27.7k|		while (currentByteIndex < dataLen)
  ------------------
  |  Branch (809:10): [True: 26.0k, False: 1.75k]
  ------------------
  810|  26.0k|		{
  811|  26.0k|			uint8_t byte = data[currentByteIndex++];
  812|       |
  813|       |			// Shift previous bits left by 7 and append lower 7 bits
  814|  26.0k|			currentComponentValue = (currentComponentValue << 7) | (byte & 0x7f);
  815|  26.0k|			componentStarted = true;
  816|       |
  817|       |			// If the MSB is 0, this is the final byte of the current value
  818|  26.0k|			if ((byte & 0x80) == 0)
  ------------------
  |  Branch (818:8): [True: 22.5k, False: 3.49k]
  ------------------
  819|  22.5k|			{
  820|  22.5k|				components.push_back(currentComponentValue);
  821|  22.5k|				currentComponentValue = 0;
  822|  22.5k|				componentStarted = false;
  823|  22.5k|			}
  824|  26.0k|		}
  825|       |
  826|  1.75k|		if (componentStarted)
  ------------------
  |  Branch (826:7): [True: 420, False: 1.33k]
  ------------------
  827|    420|		{
  828|    420|			throw std::invalid_argument("Malformed OID: Incomplete component at end of data");
  829|    420|		}
  830|       |
  831|  1.33k|		m_Components = components;
  832|  1.33k|	}
_ZNK4pcpp26Asn1ObjectIdentifierRecord11decodeValueEPKh:
  955|  2.04k|	{
  956|  2.04k|		m_Value = Asn1ObjectIdentifier(data, m_ValueLength);
  957|  2.04k|	}
_ZN4pcpp14Asn1TimeRecord16validateTimezoneERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1011|    640|	{
 1012|    640|		if (timezone == "Z")
  ------------------
  |  Branch (1012:7): [True: 620, False: 20]
  ------------------
 1013|    620|		{
 1014|    620|			return;
 1015|    620|		}
 1016|       |
 1017|     20|		if (timezone.length() != 5 || (timezone[0] != '+' && timezone[0] != '-') || !std::isdigit(timezone[1]) ||
  ------------------
  |  Branch (1017:7): [True: 15, False: 5]
  |  Branch (1017:34): [True: 5, False: 0]
  |  Branch (1017:56): [True: 0, False: 5]
  |  Branch (1017:79): [True: 5, False: 0]
  ------------------
 1018|      0|		    !std::isdigit(timezone[2]) || !std::isdigit(timezone[3]) || !std::isdigit(timezone[4]))
  ------------------
  |  Branch (1018:7): [True: 0, False: 0]
  |  Branch (1018:37): [True: 0, False: 0]
  |  Branch (1018:67): [True: 0, False: 0]
  ------------------
 1019|     20|		{
 1020|     20|			throw std::invalid_argument("Invalid timezone format. Use 'Z' or '+/-HHMM'.");
 1021|     20|		}
 1022|     20|	}
_ZN4pcpp14Asn1TimeRecord15adjustTimezonesERKNSt3__16chrono10time_pointINS2_12system_clockENS2_8durationIxNS1_5ratioILl1ELl1000000EEEEEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEESJ_:
 1027|    330|	{
 1028|    330|		validateTimezone(fromTimezone);
 1029|    330|		validateTimezone(toTimezone);
 1030|       |
 1031|    330|		int fromOffsetSeconds = 0;
 1032|    330|		if (fromTimezone != "Z")
  ------------------
  |  Branch (1032:7): [True: 0, False: 330]
  ------------------
 1033|      0|		{
 1034|      0|			int fromSign = (fromTimezone[0] == '+') ? 1 : -1;
  ------------------
  |  Branch (1034:19): [True: 0, False: 0]
  ------------------
 1035|      0|			auto fromHours = std::stoi(fromTimezone.substr(1, 2));
 1036|      0|			auto fromMinutes = std::stoi(fromTimezone.substr(3, 2));
 1037|      0|			fromOffsetSeconds = fromSign * (fromHours * 3600 + fromMinutes * 60);
 1038|      0|		}
 1039|       |
 1040|    330|		int toOffsetSeconds = 0;
 1041|    330|		if (toTimezone != "Z")
  ------------------
  |  Branch (1041:7): [True: 0, False: 330]
  ------------------
 1042|      0|		{
 1043|      0|			int toSign = (toTimezone[0] == '+') ? 1 : -1;
  ------------------
  |  Branch (1043:17): [True: 0, False: 0]
  ------------------
 1044|      0|			auto toHours = std::stoi(toTimezone.substr(1, 2));
 1045|      0|			auto toMinutes = std::stoi(toTimezone.substr(3, 2));
 1046|      0|			toOffsetSeconds = toSign * (toHours * 3600 + toMinutes * 60);
 1047|      0|		}
 1048|       |
 1049|    330|		return value + std::chrono::seconds(toOffsetSeconds - fromOffsetSeconds);
 1050|    330|	}
_ZNK4pcpp17Asn1UtcTimeRecord11decodeValueEPKh:
 1065|    167|	{
 1066|    167|		std::string timeString(reinterpret_cast<const char*>(data), m_ValueLength);
 1067|       |
 1068|    167|		if (timeString.empty())
  ------------------
  |  Branch (1068:7): [True: 75, False: 92]
  ------------------
 1069|     75|		{
 1070|     75|			throw std::runtime_error("Failed to parse ASN.1 UTC time");
 1071|     75|		}
 1072|       |
 1073|     92|		if (timeString.back() == 'Z')
  ------------------
  |  Branch (1073:7): [True: 5, False: 87]
  ------------------
 1074|      5|		{
 1075|      5|			timeString.pop_back();
 1076|      5|		}
 1077|       |
 1078|     92|		m_WithSeconds = true;
 1079|     92|		if (timeString.size() == 10)
  ------------------
  |  Branch (1079:7): [True: 15, False: 77]
  ------------------
 1080|     15|		{
 1081|     15|			m_WithSeconds = false;
 1082|     15|			timeString.append("00");
 1083|     15|		}
 1084|       |
 1085|     92|		auto year = std::stoi(timeString.substr(0, 2));
 1086|     92|		if (year <= 50)
  ------------------
  |  Branch (1086:7): [True: 20, False: 72]
  ------------------
 1087|     20|		{
 1088|     20|			timeString.insert(0, "20");
 1089|     20|		}
 1090|     72|		else
 1091|     72|		{
 1092|     72|			timeString.insert(0, "19");
 1093|     72|		}
 1094|       |
 1095|     92|		std::tm tm = {};
 1096|     92|		std::istringstream sstream(timeString);
 1097|     92|		sstream >> std::get_time(&tm, "%Y%m%d%H%M%S");
 1098|       |
 1099|     92|		if (sstream.fail())
  ------------------
  |  Branch (1099:7): [True: 15, False: 77]
  ------------------
 1100|     15|		{
 1101|     15|			throw std::runtime_error("Failed to parse ASN.1 UTC time");
 1102|     15|		}
 1103|       |
 1104|     77|		std::time_t timeValue = mkUtcTime(tm);
 1105|     77|		m_Value = std::chrono::system_clock::from_time_t(timeValue);
 1106|     77|	}
_ZNK4pcpp25Asn1GeneralizedTimeRecord11decodeValueEPKh:
 1138|  1.53k|	{
 1139|  1.53k|		std::string timeString(reinterpret_cast<const char*>(data), m_ValueLength);
 1140|       |
 1141|  1.53k|		if (timeString.empty())
  ------------------
  |  Branch (1141:7): [True: 90, False: 1.44k]
  ------------------
 1142|     90|		{
 1143|     90|			throw std::runtime_error("Failed to parse ASN.1 generalized time");
 1144|     90|		}
 1145|       |
 1146|  1.44k|		std::string timezone = "Z";
 1147|  1.44k|		auto timezonePos = timeString.find_first_of("+-");
 1148|  1.44k|		if (timeString.back() == 'Z')
  ------------------
  |  Branch (1148:7): [True: 10, False: 1.43k]
  ------------------
 1149|     10|		{
 1150|     10|			timeString.pop_back();
 1151|     10|		}
 1152|  1.43k|		else if (timezonePos != std::string::npos)
  ------------------
  |  Branch (1152:12): [True: 760, False: 670]
  ------------------
 1153|    760|		{
 1154|    760|			timezone = timeString.substr(timezonePos);
 1155|    760|			timeString.erase(timezonePos);
 1156|    760|		}
 1157|       |
 1158|  1.44k|		std::tm tm = {};
 1159|  1.44k|		std::istringstream sstream(timeString);
 1160|  1.44k|		sstream >> std::get_time(&tm, "%Y%m%d%H%M%S");
 1161|       |
 1162|  1.44k|		if (sstream.fail())
  ------------------
  |  Branch (1162:7): [True: 1.11k, False: 330]
  ------------------
 1163|  1.11k|		{
 1164|  1.11k|			throw std::runtime_error("Failed to parse ASN.1 generalized time");
 1165|  1.11k|		}
 1166|       |
 1167|    330|		size_t dotPos = timeString.find('.');
 1168|    330|		int milliseconds = 0;
 1169|    330|		if (dotPos != std::string::npos)
  ------------------
  |  Branch (1169:7): [True: 0, False: 330]
  ------------------
 1170|      0|		{
 1171|       |			// The digits after the dot are a decimal fraction of a second, so ".5" is 500 milliseconds.
 1172|       |			// Pad or truncate them to 3 digits to read them as milliseconds
 1173|      0|			std::string millisecondsStr = timeString.substr(dotPos + 1);
 1174|      0|			millisecondsStr.resize(3, '0');
 1175|      0|			milliseconds = std::stoi(millisecondsStr);
 1176|      0|		}
 1177|       |
 1178|    330|		auto timeValue = mkUtcTime(tm);
 1179|       |
 1180|    330|		m_Timezone = timezone;
 1181|    330|		m_Value = adjustTimezones(
 1182|    330|		    std::chrono::system_clock::from_time_t(timeValue) + std::chrono::milliseconds(milliseconds), timezone, "Z");
 1183|    330|	}
_ZN4pcpp19Asn1BitStringRecord6BitSetC2EPKhm:
 1240|    191|	Asn1BitStringRecord::BitSet::BitSet(const uint8_t* data, size_t numBits) : m_NumBits(numBits)
 1241|    191|	{
 1242|    191|		if (!data || !numBits)
  ------------------
  |  Branch (1242:7): [True: 0, False: 191]
  |  Branch (1242:16): [True: 0, False: 191]
  ------------------
 1243|      0|		{
 1244|      0|			throw std::invalid_argument("Provided data is null or num of bits is 0");
 1245|      0|		}
 1246|       |
 1247|    191|		size_t requiredBytes = (m_NumBits + 7) / 8;
 1248|    191|		m_Data.resize(requiredBytes);
 1249|    191|		std::copy_n(data, requiredBytes, m_Data.begin());
 1250|    191|	}
_ZNK4pcpp19Asn1BitStringRecord11decodeValueEPKh:
 1296|    616|	{
 1297|       |		// A BitString value must contain at least the initial octet holding the number of unused bits
 1298|    616|		if (m_ValueLength == 0)
  ------------------
  |  Branch (1298:7): [True: 95, False: 521]
  ------------------
 1299|     95|		{
 1300|     95|			throw std::invalid_argument("Cannot decode ASN.1 BitString record, value is empty");
 1301|     95|		}
 1302|       |
 1303|    521|		auto unusedBits = static_cast<size_t>(data[0]);
 1304|       |
 1305|       |		// The number of unused bits must be in the range 0-7, and must be 0 if the bit string is empty
 1306|    521|		if (unusedBits > 7 || (m_ValueLength == 1 && unusedBits != 0))
  ------------------
  |  Branch (1306:7): [True: 205, False: 316]
  |  Branch (1306:26): [True: 125, False: 191]
  |  Branch (1306:48): [True: 85, False: 40]
  ------------------
 1307|    290|		{
 1308|    290|			throw std::invalid_argument("Cannot decode ASN.1 BitString record, invalid number of unused bits");
 1309|    290|		}
 1310|       |
 1311|    231|		auto numBits = (m_ValueLength - 1) * 8 - unusedBits;
 1312|    231|		if (numBits == 0)
  ------------------
  |  Branch (1312:7): [True: 40, False: 191]
  ------------------
 1313|     40|		{
 1314|     40|			m_Value = BitSet();
 1315|     40|			return;
 1316|     40|		}
 1317|       |
 1318|    191|		m_Value = BitSet(data + 1, numBits);
 1319|    191|	}
Asn1Codec.cpp:_ZZN4pcpp17Asn1IntegerRecord6BigInt14initFromStringERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENK3$_0clEc:
  615|   242k|		if (std::any_of(valueStr.begin(), valueStr.end(), [](char c) { return !std::isxdigit(c); }))
Asn1Codec.cpp:_ZZNK4pcpp21Asn1OctetStringRecord11decodeValueEPKhENK3$_0clEc:
  724|  3.42M|		m_IsPrintable = std::all_of(value, value + m_ValueLength, [](char c) { return isprint(0xff & c); });

_ZNK4pcpp8BgpLayer12getHeaderLenEv:
   27|  1.15M|	{
   28|  1.15M|		if (m_DataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (28:7): [True: 12, False: 1.15M]
  ------------------
   29|     12|		{
   30|     12|			return m_DataLen;
   31|     12|		}
   32|       |
   33|  1.15M|		uint16_t messageLen = be16toh(getBasicHeader()->length);
   34|  1.15M|		if (m_DataLen < messageLen)
  ------------------
  |  Branch (34:7): [True: 115k, False: 1.04M]
  ------------------
   35|   115k|		{
   36|   115k|			return m_DataLen;
   37|   115k|		}
   38|       |
   39|  1.04M|		return (size_t)messageLen;
   40|  1.15M|	}
_ZN4pcpp8BgpLayer13parseBgpLayerEPhmPNS_5LayerEPNS_6PacketE:
   43|   177k|	{
   44|   177k|		if (data == nullptr || dataLen < sizeof(bgp_common_header))
  ------------------
  |  Branch (44:7): [True: 0, False: 177k]
  |  Branch (44:26): [True: 9.86k, False: 167k]
  ------------------
   45|  9.86k|			return nullptr;
   46|       |
   47|   167k|		auto* bgpHeader = reinterpret_cast<bgp_common_header*>(data);
   48|       |
   49|       |		// illegal header data - length is too small
   50|   167k|		uint16_t messageLen = be16toh(bgpHeader->length);
   51|   167k|		if (dataLen < messageLen || messageLen < static_cast<uint16_t>(sizeof(bgp_common_header)))
  ------------------
  |  Branch (51:7): [True: 8.47k, False: 159k]
  |  Branch (51:31): [True: 1.94k, False: 157k]
  ------------------
   52|  10.4k|			return nullptr;
   53|       |
   54|   157k|		switch (bgpHeader->messageType)
   55|   157k|		{
   56|  24.9k|		case 1:  // OPEN
  ------------------
  |  Branch (56:3): [True: 24.9k, False: 132k]
  ------------------
   57|  24.9k|			return BgpOpenMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (57:11): [True: 24.8k, False: 36]
  ------------------
   58|  24.9k|			           ? new BgpOpenMessageLayer(data, dataLen, prevLayer, packet)
   59|  24.9k|			           : nullptr;
   60|   120k|		case 2:  // UPDATE
  ------------------
  |  Branch (60:3): [True: 120k, False: 36.6k]
  ------------------
   61|   120k|			return BgpUpdateMessageLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (61:11): [True: 117k, False: 2.75k]
  ------------------
   62|   120k|			           ? new BgpUpdateMessageLayer(data, dataLen, prevLayer, packet)
   63|   120k|			           : nullptr;
   64|  4.51k|		case 3:  // NOTIFICATION
  ------------------
  |  Branch (64:3): [True: 4.51k, False: 152k]
  ------------------
   65|  4.51k|			return new BgpNotificationMessageLayer(data, dataLen, prevLayer, packet);
   66|  3.67k|		case 4:  // KEEPALIVE
  ------------------
  |  Branch (66:3): [True: 3.67k, False: 153k]
  ------------------
   67|  3.67k|			return new BgpKeepaliveMessageLayer(data, dataLen, prevLayer, packet);
   68|  2.95k|		case 5:  // ROUTE-REFRESH
  ------------------
  |  Branch (68:3): [True: 2.95k, False: 154k]
  ------------------
   69|  2.95k|			return new BgpRouteRefreshMessageLayer(data, dataLen, prevLayer, packet);
   70|    573|		default:
  ------------------
  |  Branch (70:3): [True: 573, False: 156k]
  ------------------
   71|    573|			return nullptr;
   72|   157k|		}
   73|   157k|	}
_ZNK4pcpp8BgpLayer22getMessageTypeAsStringEv:
   76|  53.7k|	{
   77|  53.7k|		switch (getBgpMessageType())
   78|  53.7k|		{
   79|  11.0k|		case BgpLayer::Open:
  ------------------
  |  Branch (79:3): [True: 11.0k, False: 42.6k]
  ------------------
   80|  11.0k|			return "OPEN";
   81|  36.4k|		case BgpLayer::Update:
  ------------------
  |  Branch (81:3): [True: 36.4k, False: 17.2k]
  ------------------
   82|  36.4k|			return "UPDATE";
   83|  2.28k|		case BgpLayer::Notification:
  ------------------
  |  Branch (83:3): [True: 2.28k, False: 51.4k]
  ------------------
   84|  2.28k|			return "NOTIFICATION";
   85|  2.17k|		case BgpLayer::Keepalive:
  ------------------
  |  Branch (85:3): [True: 2.17k, False: 51.5k]
  ------------------
   86|  2.17k|			return "KEEPALIVE";
   87|  1.72k|		case BgpLayer::RouteRefresh:
  ------------------
  |  Branch (87:3): [True: 1.72k, False: 52.0k]
  ------------------
   88|  1.72k|			return "ROUTE-REFRESH";
   89|      0|		default:
  ------------------
  |  Branch (89:3): [True: 0, False: 53.7k]
  ------------------
   90|      0|			return "Unknown";
   91|  53.7k|		}
   92|  53.7k|	}
_ZN4pcpp8BgpLayer14parseNextLayerEv:
   95|   153k|	{
   96|   153k|		size_t headerLen = getHeaderLen();
   97|   153k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (97:7): [True: 27.1k, False: 126k]
  |  Branch (97:33): [True: 0, False: 126k]
  ------------------
   98|  27.1k|			return;
   99|       |
  100|   126k|		uint8_t* payload = m_Data + headerLen;
  101|   126k|		size_t payloadLen = m_DataLen - headerLen;
  102|       |
  103|   126k|		constructNextLayerFromFactory(BgpLayer::parseBgpLayer, payload, payloadLen);
  104|   126k|	}
_ZNK4pcpp8BgpLayer8toStringEv:
  107|  35.8k|	{
  108|  35.8k|		return "BGP Layer, " + getMessageTypeAsString() + " message";
  109|  35.8k|	}
_ZN4pcpp8BgpLayer22computeCalculateFieldsEv:
  112|  17.9k|	{
  113|  17.9k|		bgp_common_header* bgpHeader = getBasicHeader();
  114|  17.9k|		memset(bgpHeader->marker, 0xff, 16 * sizeof(uint8_t));
  115|  17.9k|		bgpHeader->messageType = (uint8_t)getBgpMessageType();
  116|       |		bgpHeader->length = htobe16(getHeaderLen());
  117|  17.9k|	}
_ZN4pcpp8BgpLayer11extendLayerEim:
  135|  43.1k|	{
  136|  43.1k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (136:7): [True: 43.1k, False: 0]
  ------------------
  137|  43.1k|		{
  138|  43.1k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  139|  43.1k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  140|       |
  141|  43.1k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) > static_cast<ptrdiff_t>(rawPacketLen))
  ------------------
  |  Branch (141:8): [True: 4.42k, False: 38.7k]
  ------------------
  142|  4.42k|			{
  143|  4.42k|				PCPP_LOG_ERROR("Requested offset is larger than total packet length");
  ------------------
  |  |  445|  4.42k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  4.42k|	do                                                                                                                 \
  |  |  |  |  415|  4.42k|	{                                                                                                                  \
  |  |  |  |  416|  4.42k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  4.42k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.42k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 4.42k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  4.42k|		{                                                                                                              \
  |  |  |  |  419|  4.42k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  4.42k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  4.42k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  4.42k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  4.42k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  4.42k|		}                                                                                                              \
  |  |  |  |  424|  4.42k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 4.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  4.42k|				return false;
  145|  4.42k|			}
  146|       |
  147|  38.7k|			if (m_NextLayer != nullptr && static_cast<ptrdiff_t>(offsetInLayer) > m_NextLayer->getData() - m_Data)
  ------------------
  |  Branch (147:8): [True: 32.6k, False: 6.04k]
  |  Branch (147:34): [True: 3.46k, False: 29.1k]
  ------------------
  148|  3.46k|			{
  149|  3.46k|				PCPP_LOG_ERROR("Requested offset exceeds current layer's boundary");
  ------------------
  |  |  445|  3.46k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  3.46k|	do                                                                                                                 \
  |  |  |  |  415|  3.46k|	{                                                                                                                  \
  |  |  |  |  416|  3.46k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  3.46k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.46k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 3.46k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  3.46k|		{                                                                                                              \
  |  |  |  |  419|  3.46k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  3.46k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.46k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  3.46k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  3.46k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  3.46k|		}                                                                                                              \
  |  |  |  |  424|  3.46k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 3.46k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|  3.46k|				return false;
  151|  3.46k|			}
  152|  38.7k|		}
  153|       |
  154|  35.2k|		return Layer::extendLayer(offsetInLayer, numOfBytesToExtend);
  155|  43.1k|	}
_ZN4pcpp8BgpLayer12shortenLayerEim:
  158|  45.2k|	{
  159|  45.2k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (159:7): [True: 45.2k, False: 0]
  ------------------
  160|  45.2k|		{
  161|  45.2k|			int rawPacketLen = getAttachedPacket()->getRawPacket()->getRawDataLen();
  162|  45.2k|			const uint8_t* rawPacketPtr = getAttachedPacket()->getRawPacket()->getRawData();
  163|       |
  164|  45.2k|			if (m_Data - rawPacketPtr + static_cast<ptrdiff_t>(offsetInLayer) +
  ------------------
  |  Branch (164:8): [True: 5.62k, False: 39.5k]
  ------------------
  165|  45.2k|			        static_cast<ptrdiff_t>(numOfBytesToShorten) >
  166|  45.2k|			    static_cast<ptrdiff_t>(rawPacketLen))
  167|  5.62k|			{
  168|  5.62k|				PCPP_LOG_ERROR("Requested number of bytes to shorten is larger than total packet length");
  ------------------
  |  |  445|  5.62k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  5.62k|	do                                                                                                                 \
  |  |  |  |  415|  5.62k|	{                                                                                                                  \
  |  |  |  |  416|  5.62k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  5.62k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.62k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 5.62k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  5.62k|		{                                                                                                              \
  |  |  |  |  419|  5.62k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  5.62k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.62k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  5.62k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  5.62k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  5.62k|		}                                                                                                              \
  |  |  |  |  424|  5.62k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 5.62k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|  5.62k|				return false;
  170|  5.62k|			}
  171|       |
  172|  39.5k|			if (m_NextLayer != nullptr &&
  ------------------
  |  Branch (172:8): [True: 31.7k, False: 7.87k]
  ------------------
  173|  31.7k|			    static_cast<ptrdiff_t>(offsetInLayer) + static_cast<ptrdiff_t>(numOfBytesToShorten) >
  ------------------
  |  Branch (173:8): [True: 1.85k, False: 29.8k]
  ------------------
  174|  31.7k|			        m_NextLayer->getData() - m_Data)
  175|  1.85k|			{
  176|  1.85k|				PCPP_LOG_ERROR("Requested number of bytes to shorten exceeds current layer's boundary");
  ------------------
  |  |  445|  1.85k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  1.85k|	do                                                                                                                 \
  |  |  |  |  415|  1.85k|	{                                                                                                                  \
  |  |  |  |  416|  1.85k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.85k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.85k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 1.85k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.85k|		{                                                                                                              \
  |  |  |  |  419|  1.85k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  1.85k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.85k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  1.85k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  1.85k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  1.85k|		}                                                                                                              \
  |  |  |  |  424|  1.85k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.85k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  177|  1.85k|				return false;
  178|  1.85k|			}
  179|  39.5k|		}
  180|       |
  181|  37.7k|		return Layer::shortenLayer(offsetInLayer, numOfBytesToShorten);
  182|  45.2k|	}
_ZN4pcpp19BgpOpenMessageLayer18optional_parameterC2EhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  189|  18.4k|	{
  190|  18.4k|		type = typeVal;
  191|  18.4k|		length = hexStringToByteArray(valueAsHexString, value, 32);
  192|  18.4k|	}
_ZN4pcpp19BgpOpenMessageLayer11isDataValidEPKhm:
  195|  24.9k|	{
  196|  24.9k|		if (data == nullptr || dataSize < sizeof(bgp_common_header))
  ------------------
  |  Branch (196:7): [True: 0, False: 24.9k]
  |  Branch (196:26): [True: 0, False: 24.9k]
  ------------------
  197|      0|		{
  198|      0|			return false;
  199|      0|		}
  200|       |
  201|  24.9k|		const auto* bgpHeader = reinterpret_cast<const bgp_common_header*>(data);
  202|  24.9k|		uint16_t messageLen = be16toh(bgpHeader->length);
  203|  24.9k|		return messageLen >= sizeof(bgp_open_message) && dataSize >= messageLen;
  ------------------
  |  Branch (203:10): [True: 24.8k, False: 36]
  |  Branch (203:52): [True: 24.8k, False: 0]
  ------------------
  204|  24.9k|	}
_ZN4pcpp19BgpOpenMessageLayer25optionalParamsToByteArrayERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEEPhm:
  233|  11.0k|	{
  234|  11.0k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (234:7): [True: 0, False: 11.0k]
  |  Branch (234:35): [True: 0, False: 11.0k]
  ------------------
  235|      0|		{
  236|      0|			return 0;
  237|      0|		}
  238|       |
  239|  11.0k|		size_t dataLen = 0;
  240|       |
  241|  11.0k|		for (const auto& param : optionalParams)
  ------------------
  |  Branch (241:26): [True: 52.6k, False: 11.0k]
  ------------------
  242|  52.6k|		{
  243|  52.6k|			if (param.length > sizeof(param.value))
  ------------------
  |  Branch (243:8): [True: 36, False: 52.6k]
  ------------------
  244|     36|			{
  245|     36|				throw std::invalid_argument("Illegal BGP OPEN optional parameter length " +
  246|     36|				                            std::to_string(param.length) + ", must be " +
  247|     36|				                            std::to_string(sizeof(param.value)) + " bytes or less");
  248|     36|			}
  249|       |
  250|  52.6k|			size_t curDataSize = 2 * sizeof(uint8_t) + (size_t)param.length;
  251|       |
  252|  52.6k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (252:8): [True: 0, False: 52.6k]
  ------------------
  253|      0|			{
  254|      0|				throw std::invalid_argument("The BGP OPEN optional parameters exceed the maximum length of " +
  255|      0|				                            std::to_string(maxByteArrSize) + " bytes");
  256|      0|			}
  257|       |
  258|  52.6k|			resultByteArr[0] = param.type;
  259|  52.6k|			resultByteArr[1] = param.length;
  260|  52.6k|			if (param.length > 0)
  ------------------
  |  Branch (260:8): [True: 45.0k, False: 7.62k]
  ------------------
  261|  45.0k|			{
  262|  45.0k|				memcpy(resultByteArr + 2 * sizeof(uint8_t), param.value, param.length);
  263|  45.0k|			}
  264|       |
  265|  52.6k|			dataLen += curDataSize;
  266|  52.6k|			resultByteArr += curDataSize;
  267|  52.6k|		}
  268|       |
  269|  11.0k|		return dataLen;
  270|  11.0k|	}
_ZN4pcpp19BgpOpenMessageLayer21getOptionalParametersERNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  284|  3.69k|	{
  285|  3.69k|		size_t headerLen = getHeaderLen();
  286|  3.69k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  287|       |
  288|       |		// Parentheses around std::min avoid clashes with platform min macros (for example on Windows)
  289|  3.69k|		size_t optionalParamsLen =
  290|  3.69k|		    (std::min)(static_cast<size_t>(msgHdr->optionalParameterLength), headerLen - sizeof(bgp_open_message));
  291|       |
  292|  3.69k|		uint8_t* dataPtr = m_Data + sizeof(bgp_open_message);
  293|  3.69k|		size_t byteCount = 0;
  294|  20.8k|		while (byteCount < optionalParamsLen)
  ------------------
  |  Branch (294:10): [True: 19.8k, False: 1.03k]
  ------------------
  295|  19.8k|		{
  296|  19.8k|			size_t remaining = optionalParamsLen - byteCount;
  297|  19.8k|			constexpr size_t optParamHdrSize = sizeof(optional_parameter::type) + sizeof(optional_parameter::length);
  298|  19.8k|			if (remaining < optParamHdrSize)
  ------------------
  |  Branch (298:8): [True: 358, False: 19.4k]
  ------------------
  299|    358|			{
  300|    358|				PCPP_LOG_ERROR("Truncated optional parameter header");
  ------------------
  |  |  445|    358|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|    358|	do                                                                                                                 \
  |  |  |  |  415|    358|	{                                                                                                                  \
  |  |  |  |  416|    358|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    358|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    358|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 358, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|    358|		{                                                                                                              \
  |  |  |  |  419|    358|			auto ctx =                                                                                                 \
  |  |  |  |  420|    358|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    358|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|    358|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|    358|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|    358|		}                                                                                                              \
  |  |  |  |  424|    358|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 358]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  301|    358|				break;
  302|    358|			}
  303|       |
  304|  19.4k|			optional_parameter op;
  305|  19.4k|			op.type = dataPtr[0];
  306|  19.4k|			op.length = dataPtr[1];
  307|       |
  308|  19.4k|			size_t totalLen = optParamHdrSize + static_cast<size_t>(op.length);
  309|  19.4k|			if (totalLen > remaining)
  ------------------
  |  Branch (309:8): [True: 2.29k, False: 17.1k]
  ------------------
  310|  2.29k|			{
  311|  2.29k|				PCPP_LOG_ERROR("Optional parameter length is out of bounds: " << static_cast<int>(op.length));
  ------------------
  |  |  445|  2.29k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  2.29k|	do                                                                                                                 \
  |  |  |  |  415|  2.29k|	{                                                                                                                  \
  |  |  |  |  416|  2.29k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  2.29k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.29k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 2.29k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  2.29k|		{                                                                                                              \
  |  |  |  |  419|  2.29k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  2.29k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.29k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  2.29k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  2.29k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  2.29k|		}                                                                                                              \
  |  |  |  |  424|  2.29k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 2.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|  2.29k|				break;
  313|  2.29k|			}
  314|       |
  315|  17.1k|			if (op.length > 0)
  ------------------
  |  Branch (315:8): [True: 13.3k, False: 3.82k]
  ------------------
  316|  13.3k|			{
  317|  13.3k|				memcpy(op.value, dataPtr + optParamHdrSize,
  318|  13.3k|				       (std::min)(static_cast<size_t>(op.length), sizeof(op.value)));
  319|  13.3k|			}
  320|       |
  321|  17.1k|			optionalParameters.push_back(op);
  322|       |
  323|  17.1k|			byteCount += totalLen;
  324|  17.1k|			dataPtr += totalLen;
  325|  17.1k|		}
  326|  3.69k|	}
_ZN4pcpp19BgpOpenMessageLayer27getOptionalParametersLengthEv:
  329|  11.0k|	{
  330|  11.0k|		size_t headerLen = getHeaderLen();
  331|  11.0k|		bgp_open_message* msgHdr = getOpenMsgHeader();
  332|  11.0k|		auto optParamLen = static_cast<size_t>(msgHdr->optionalParameterLength);
  333|       |
  334|  11.0k|		constexpr size_t bgpOpenMsgHeaderSize = sizeof(bgp_open_message);
  335|  11.0k|		if (headerLen < optParamLen + bgpOpenMsgHeaderSize)
  ------------------
  |  Branch (335:7): [True: 1.10k, False: 9.93k]
  ------------------
  336|  1.10k|		{
  337|  1.10k|			PCPP_LOG_WARN("BGP Layer optional param length exceeds total BGP message. "
  ------------------
  |  |  433|  1.10k|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  414|  1.10k|	do                                                                                                                 \
  |  |  |  |  415|  1.10k|	{                                                                                                                  \
  |  |  |  |  416|  1.10k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.10k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.10k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 1.10k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.10k|		{                                                                                                              \
  |  |  |  |  419|  1.10k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  1.10k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.10k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  1.10k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  1.10k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  1.10k|		}                                                                                                              \
  |  |  |  |  424|  1.10k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.10k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  338|  1.10k|			              "This packet might be malformed! Trimming to maximum allowed by BGP message length.");
  339|  1.10k|			optParamLen = headerLen >= bgpOpenMsgHeaderSize ? headerLen - bgpOpenMsgHeaderSize : 0;
  ------------------
  |  Branch (339:18): [True: 1.02k, False: 80]
  ------------------
  340|  1.10k|		}
  341|       |
  342|  11.0k|		return optParamLen;
  343|  11.0k|	}
_ZN4pcpp19BgpOpenMessageLayer21setOptionalParametersERKNSt3__16vectorINS0_18optional_parameterENS1_9allocatorIS3_EEEE:
  346|  11.0k|	{
  347|  11.0k|		uint8_t newOptionalParamsData[maxOptionalParamsDataLen];
  348|  11.0k|		size_t newOptionalParamsDataLen = 0;
  349|  11.0k|		try
  350|  11.0k|		{
  351|  11.0k|			newOptionalParamsDataLen =
  352|  11.0k|			    optionalParamsToByteArray(optionalParameters, newOptionalParamsData, sizeof(newOptionalParamsData));
  353|  11.0k|		}
  354|  11.0k|		catch (const std::invalid_argument& e)
  355|  11.0k|		{
  356|     36|			PCPP_LOG_ERROR("Couldn't set the BGP OPEN optional parameters: " << e.what());
  ------------------
  |  |  445|     36|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|     36|	do                                                                                                                 \
  |  |  |  |  415|     36|	{                                                                                                                  \
  |  |  |  |  416|     36|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|     36|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     36|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 36, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|     36|		{                                                                                                              \
  |  |  |  |  419|     36|			auto ctx =                                                                                                 \
  |  |  |  |  420|     36|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|     36|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|     36|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|     36|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|     36|		}                                                                                                              \
  |  |  |  |  424|     36|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 36]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  357|     36|			return false;
  358|     36|		}
  359|       |
  360|  11.0k|		size_t curOptionalParamsDataLen = getOptionalParametersLength();
  361|  11.0k|		constexpr int offsetInLayer = sizeof(bgp_open_message);
  362|       |
  363|  11.0k|		if (newOptionalParamsDataLen > curOptionalParamsDataLen)
  ------------------
  |  Branch (363:7): [True: 3.86k, False: 7.17k]
  ------------------
  364|  3.86k|		{
  365|  3.86k|			size_t numOfBytesToExtend = newOptionalParamsDataLen - curOptionalParamsDataLen;
  366|       |
  367|  3.86k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (367:8): [True: 175, False: 3.69k]
  ------------------
  368|    175|			{
  369|    175|				PCPP_LOG_ERROR("Couldn't extend BGP open layer to include the additional optional parameters");
  ------------------
  |  |  445|    175|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|    175|	do                                                                                                                 \
  |  |  |  |  415|    175|	{                                                                                                                  \
  |  |  |  |  416|    175|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    175|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    175|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 175, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|    175|		{                                                                                                              \
  |  |  |  |  419|    175|			auto ctx =                                                                                                 \
  |  |  |  |  420|    175|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    175|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|    175|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|    175|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|    175|		}                                                                                                              \
  |  |  |  |  424|    175|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 175]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  370|    175|				return false;
  371|    175|			}
  372|  3.86k|		}
  373|  7.17k|		else if (newOptionalParamsDataLen < curOptionalParamsDataLen)
  ------------------
  |  Branch (373:12): [True: 5.74k, False: 1.43k]
  ------------------
  374|  5.74k|		{
  375|  5.74k|			size_t numOfBytesToShorten = curOptionalParamsDataLen - newOptionalParamsDataLen;
  376|       |
  377|  5.74k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (377:8): [True: 1.05k, False: 4.68k]
  ------------------
  378|  1.05k|			{
  379|  1.05k|				PCPP_LOG_ERROR("Couldn't shorten BGP open layer to set the right size of the optional parameters data");
  ------------------
  |  |  445|  1.05k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  1.05k|	do                                                                                                                 \
  |  |  |  |  415|  1.05k|	{                                                                                                                  \
  |  |  |  |  416|  1.05k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.05k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.05k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 1.05k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.05k|		{                                                                                                              \
  |  |  |  |  419|  1.05k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  1.05k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.05k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  1.05k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  1.05k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  1.05k|		}                                                                                                              \
  |  |  |  |  424|  1.05k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.05k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  380|  1.05k|				return false;
  381|  1.05k|			}
  382|  5.74k|		}
  383|       |
  384|  9.81k|		if (newOptionalParamsDataLen > 0)
  ------------------
  |  Branch (384:7): [True: 5.26k, False: 4.54k]
  ------------------
  385|  5.26k|		{
  386|  5.26k|			memcpy(m_Data + offsetInLayer, newOptionalParamsData, newOptionalParamsDataLen);
  387|  5.26k|		}
  388|       |
  389|  9.81k|		getOpenMsgHeader()->optionalParameterLength = static_cast<uint8_t>(newOptionalParamsDataLen);
  390|  9.81k|		getOpenMsgHeader()->length = htobe16(sizeof(bgp_open_message) + newOptionalParamsDataLen);
  391|       |
  392|  9.81k|		return true;
  393|  11.0k|	}
_ZN4pcpp19BgpOpenMessageLayer23clearOptionalParametersEv:
  396|  3.69k|	{
  397|  3.69k|		return setOptionalParameters(std::vector<optional_parameter>());
  398|  3.69k|	}
_ZN4pcpp21BgpUpdateMessageLayer14path_attributeC2EhhRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  406|  36.4k|	{
  407|  36.4k|		flags = flagsVal;
  408|  36.4k|		type = typeVal;
  409|  36.4k|		length = hexStringToByteArray(dataAsHexString, data, 32);
  410|  36.4k|	}
_ZN4pcpp21BgpUpdateMessageLayer20parsePrefixAndIPDataEPhmRNSt3__16vectorINS0_13prefix_and_ipENS2_9allocatorIS4_EEEE:
  461|  9.14k|	{
  462|  9.14k|		size_t byteCount = 0;
  463|  19.2k|		while (byteCount < dataLen)
  ------------------
  |  Branch (463:10): [True: 13.3k, False: 5.94k]
  ------------------
  464|  13.3k|		{
  465|  13.3k|			prefix_and_ip wr;
  466|  13.3k|			wr.prefix = dataPtr[0];
  467|  13.3k|			size_t curByteCount = 1;
  468|  13.3k|			if (wr.prefix == 32)
  ------------------
  |  Branch (468:8): [True: 4.87k, False: 8.46k]
  ------------------
  469|  4.87k|			{
  470|  4.87k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], dataPtr[4] };
  471|  4.87k|				wr.ipAddr = IPv4Address(octets);
  472|  4.87k|				curByteCount += 4;
  473|  4.87k|			}
  474|  8.46k|			else if (wr.prefix == 24)
  ------------------
  |  Branch (474:13): [True: 5.04k, False: 3.41k]
  ------------------
  475|  5.04k|			{
  476|  5.04k|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], dataPtr[3], 0 };
  477|  5.04k|				wr.ipAddr = IPv4Address(octets);
  478|  5.04k|				curByteCount += 3;
  479|  5.04k|			}
  480|  3.41k|			else if (wr.prefix == 16)
  ------------------
  |  Branch (480:13): [True: 61, False: 3.35k]
  ------------------
  481|     61|			{
  482|     61|				uint8_t octets[4] = { dataPtr[1], dataPtr[2], 0, 0 };
  483|     61|				wr.ipAddr = IPv4Address(octets);
  484|     61|				curByteCount += 2;
  485|     61|			}
  486|  3.35k|			else if (wr.prefix == 8)
  ------------------
  |  Branch (486:13): [True: 152, False: 3.20k]
  ------------------
  487|    152|			{
  488|    152|				uint8_t octets[4] = { dataPtr[1], 0, 0, 0 };
  489|    152|				wr.ipAddr = IPv4Address(octets);
  490|    152|				curByteCount += 1;
  491|    152|			}
  492|  3.20k|			else
  493|  3.20k|			{
  494|  3.20k|				PCPP_LOG_DEBUG("Illegal prefix value " << (int)wr.prefix);
  ------------------
  |  |  427|  3.20k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  3.20k|	do                                                                                                                 \
  |  |  |  |  415|  3.20k|	{                                                                                                                  \
  |  |  |  |  416|  3.20k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  3.20k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.20k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  |  |  418|  3.20k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  3.20k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  495|  3.20k|				break;  // illegal value
  496|  3.20k|			}
  497|       |
  498|  10.1k|			result.push_back(wr);
  499|  10.1k|			dataPtr += curByteCount;
  500|  10.1k|			byteCount += curByteCount;
  501|  10.1k|		}
  502|  9.14k|	}
_ZN4pcpp21BgpUpdateMessageLayer26prefixAndIPDataToByteArrayERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEEPhm:
  506|  72.8k|	{
  507|  72.8k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (507:7): [True: 0, False: 72.8k]
  |  Branch (507:35): [True: 0, False: 72.8k]
  ------------------
  508|      0|		{
  509|      0|			return 0;
  510|      0|		}
  511|       |
  512|  72.8k|		size_t dataLen = 0;
  513|       |
  514|  72.8k|		for (const auto& prefixAndIp : prefixAndIpData)
  ------------------
  |  Branch (514:32): [True: 80.9k, False: 72.8k]
  ------------------
  515|  80.9k|		{
  516|  80.9k|			uint8_t curData[5];
  517|  80.9k|			curData[0] = prefixAndIp.prefix;
  518|  80.9k|			size_t curDataSize = 1;
  519|  80.9k|			const uint8_t* octets = prefixAndIp.ipAddr.toBytes();
  520|  80.9k|			if (prefixAndIp.prefix == 32)
  ------------------
  |  Branch (520:8): [True: 9.75k, False: 71.1k]
  ------------------
  521|  9.75k|			{
  522|  9.75k|				curDataSize += 4;
  523|  9.75k|				curData[1] = octets[0];
  524|  9.75k|				curData[2] = octets[1];
  525|  9.75k|				curData[3] = octets[2];
  526|  9.75k|				curData[4] = octets[3];
  527|  9.75k|			}
  528|  71.1k|			else if (prefixAndIp.prefix == 24)
  ------------------
  |  Branch (528:13): [True: 58.6k, False: 12.5k]
  ------------------
  529|  58.6k|			{
  530|  58.6k|				curDataSize += 3;
  531|  58.6k|				curData[1] = octets[0];
  532|  58.6k|				curData[2] = octets[1];
  533|  58.6k|				curData[3] = octets[2];
  534|  58.6k|			}
  535|  12.5k|			else if (prefixAndIp.prefix == 16)
  ------------------
  |  Branch (535:13): [True: 12.2k, False: 304]
  ------------------
  536|  12.2k|			{
  537|  12.2k|				curDataSize += 2;
  538|  12.2k|				curData[1] = octets[0];
  539|  12.2k|				curData[2] = octets[1];
  540|  12.2k|			}
  541|    304|			else if (prefixAndIp.prefix == 8)
  ------------------
  |  Branch (541:13): [True: 304, False: 0]
  ------------------
  542|    304|			{
  543|    304|				curDataSize += 1;
  544|    304|				curData[1] = octets[0];
  545|    304|			}
  546|      0|			else
  547|      0|			{
  548|      0|				PCPP_LOG_ERROR("Illegal prefix value " << (int)prefixAndIp.prefix);
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|      0|				break;  // illegal value
  550|      0|			}
  551|       |
  552|  80.9k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (552:8): [True: 0, False: 80.9k]
  ------------------
  553|      0|			{
  554|      0|				break;
  555|      0|			}
  556|       |
  557|  80.9k|			dataLen += curDataSize;
  558|       |
  559|  80.9k|			memcpy(resultByteArr, curData, curDataSize);
  560|  80.9k|			resultByteArr += curDataSize;
  561|  80.9k|		}
  562|       |
  563|  72.8k|		return dataLen;
  564|  72.8k|	}
_ZN4pcpp21BgpUpdateMessageLayer25pathAttributesToByteArrayERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEEPhm:
  568|  36.4k|	{
  569|  36.4k|		if (resultByteArr == nullptr || maxByteArrSize == 0)
  ------------------
  |  Branch (569:7): [True: 0, False: 36.4k]
  |  Branch (569:35): [True: 0, False: 36.4k]
  ------------------
  570|      0|		{
  571|      0|			return 0;
  572|      0|		}
  573|       |
  574|  36.4k|		size_t dataLen = 0;
  575|       |
  576|  36.4k|		for (const auto& attribute : pathAttributes)
  ------------------
  |  Branch (576:30): [True: 75.1k, False: 20.9k]
  ------------------
  577|  75.1k|		{
  578|  75.1k|			if (attribute.length > 32)
  ------------------
  |  Branch (578:8): [True: 15.4k, False: 59.7k]
  ------------------
  579|  15.4k|			{
  580|  15.4k|				PCPP_LOG_ERROR("Illegal path attribute length " << (int)attribute.length);
  ------------------
  |  |  445|  15.4k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  15.4k|	do                                                                                                                 \
  |  |  |  |  415|  15.4k|	{                                                                                                                  \
  |  |  |  |  416|  15.4k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  15.4k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.4k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 15.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  15.4k|		{                                                                                                              \
  |  |  |  |  419|  15.4k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  15.4k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  15.4k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  15.4k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  15.4k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  15.4k|		}                                                                                                              \
  |  |  |  |  424|  15.4k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 15.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  581|  15.4k|				break;  // illegal value
  582|  15.4k|			}
  583|       |
  584|  59.7k|			size_t curDataSize = 3 * sizeof(uint8_t) + (size_t)attribute.length;
  585|       |
  586|  59.7k|			if (dataLen + curDataSize > maxByteArrSize)
  ------------------
  |  Branch (586:8): [True: 0, False: 59.7k]
  ------------------
  587|      0|			{
  588|      0|				break;
  589|      0|			}
  590|       |
  591|  59.7k|			resultByteArr[0] = attribute.flags;
  592|  59.7k|			resultByteArr[1] = attribute.type;
  593|  59.7k|			resultByteArr[2] = attribute.length;
  594|  59.7k|			if (attribute.length > 0)
  ------------------
  |  Branch (594:8): [True: 43.5k, False: 16.1k]
  ------------------
  595|  43.5k|			{
  596|  43.5k|				memcpy(resultByteArr + 3 * sizeof(uint8_t), attribute.data, attribute.length);
  597|  43.5k|			}
  598|       |
  599|  59.7k|			dataLen += curDataSize;
  600|  59.7k|			resultByteArr += curDataSize;
  601|  59.7k|		}
  602|       |
  603|  36.4k|		return dataLen;
  604|  36.4k|	}
_ZNK4pcpp21BgpUpdateMessageLayer24getWithdrawnRoutesLengthEv:
  607|   304k|	{
  608|   304k|		size_t headerLen = getHeaderLen();
  609|   304k|		size_t minLen = sizeof(bgp_common_header) + sizeof(uint16_t);
  610|   304k|		if (headerLen >= minLen)
  ------------------
  |  Branch (610:7): [True: 292k, False: 12.0k]
  ------------------
  611|   292k|		{
  612|   292k|			uint16_t res = be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header)));
  613|   292k|			if ((size_t)res > headerLen - minLen)
  ------------------
  |  Branch (613:8): [True: 46.2k, False: 245k]
  ------------------
  614|  46.2k|			{
  615|  46.2k|				return headerLen - minLen;
  616|  46.2k|			}
  617|       |
  618|   245k|			return (size_t)res;
  619|   292k|		}
  620|       |
  621|  12.0k|		return 0;
  622|   304k|	}
_ZN4pcpp21BgpUpdateMessageLayer18getWithdrawnRoutesERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  625|  12.1k|	{
  626|  12.1k|		size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  627|  12.1k|		if (withdrawnRouteLen == 0)
  ------------------
  |  Branch (627:7): [True: 10.2k, False: 1.92k]
  ------------------
  628|  10.2k|		{
  629|  10.2k|			return;
  630|  10.2k|		}
  631|       |
  632|  1.92k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + sizeof(uint16_t);
  633|  1.92k|		parsePrefixAndIPData(dataPtr, withdrawnRouteLen, withdrawnRoutes);
  634|  1.92k|	}
_ZNK4pcpp21BgpUpdateMessageLayer23getPathAttributesLengthEv:
  637|   134k|	{
  638|   134k|		size_t headerLen = getHeaderLen();
  639|   134k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  640|   134k|		if (headerLen >= minLen)
  ------------------
  |  Branch (640:7): [True: 124k, False: 9.81k]
  ------------------
  641|   124k|		{
  642|   124k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  643|       |			// Ensure the memory access is within bounds
  644|   124k|			if (sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen + sizeof(uint16_t) > headerLen)
  ------------------
  |  Branch (644:8): [True: 20.5k, False: 104k]
  ------------------
  645|  20.5k|			{
  646|  20.5k|				return 0;  // Invalid access, return 0
  647|  20.5k|			}
  648|   104k|			uint16_t res =
  649|   104k|			    be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen));
  650|   104k|			if ((size_t)res > headerLen - minLen - withdrawnRouteLen)
  ------------------
  |  Branch (650:8): [True: 10.4k, False: 93.9k]
  ------------------
  651|  10.4k|			{
  652|  10.4k|				return headerLen - minLen - withdrawnRouteLen;
  653|  10.4k|			}
  654|       |
  655|  93.9k|			return (size_t)res;
  656|   104k|		}
  657|       |
  658|  9.81k|		return 0;
  659|   134k|	}
_ZN4pcpp21BgpUpdateMessageLayer18setWithdrawnRoutesERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  662|  36.4k|	{
  663|  36.4k|		uint8_t newWithdrawnRoutesData[1500];
  664|  36.4k|		size_t newWithdrawnRoutesDataLen = prefixAndIPDataToByteArray(withdrawnRoutes, newWithdrawnRoutesData, 1500);
  665|  36.4k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  666|  36.4k|		int offsetInLayer = sizeof(bgp_common_header) + sizeof(uint16_t);
  667|       |
  668|  36.4k|		if (newWithdrawnRoutesDataLen > curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (668:7): [True: 10.5k, False: 25.8k]
  ------------------
  669|  10.5k|		{
  670|  10.5k|			size_t numOfBytesToExtend = newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen;
  671|       |
  672|  10.5k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (672:8): [True: 2.40k, False: 8.18k]
  ------------------
  673|  2.40k|			{
  674|  2.40k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional withdrawn routes");
  ------------------
  |  |  445|  2.40k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  2.40k|	do                                                                                                                 \
  |  |  |  |  415|  2.40k|	{                                                                                                                  \
  |  |  |  |  416|  2.40k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  2.40k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.40k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 2.40k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  2.40k|		{                                                                                                              \
  |  |  |  |  419|  2.40k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  2.40k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.40k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  2.40k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  2.40k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  2.40k|		}                                                                                                              \
  |  |  |  |  424|  2.40k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 2.40k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  675|  2.40k|				return false;
  676|  2.40k|			}
  677|  10.5k|		}
  678|  25.8k|		else if (newWithdrawnRoutesDataLen < curWithdrawnRoutesDataLen)
  ------------------
  |  Branch (678:12): [True: 13.7k, False: 12.0k]
  ------------------
  679|  13.7k|		{
  680|  13.7k|			size_t numOfBytesToShorten = curWithdrawnRoutesDataLen - newWithdrawnRoutesDataLen;
  681|       |
  682|  13.7k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (682:8): [True: 5.40k, False: 8.35k]
  ------------------
  683|  5.40k|			{
  684|  5.40k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the withdrawn routes data");
  ------------------
  |  |  445|  5.40k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  5.40k|	do                                                                                                                 \
  |  |  |  |  415|  5.40k|	{                                                                                                                  \
  |  |  |  |  416|  5.40k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  5.40k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.40k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 5.40k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  5.40k|		{                                                                                                              \
  |  |  |  |  419|  5.40k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  5.40k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.40k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  5.40k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  5.40k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  5.40k|		}                                                                                                              \
  |  |  |  |  424|  5.40k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 5.40k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  685|  5.40k|				return false;
  686|  5.40k|			}
  687|  13.7k|		}
  688|       |
  689|  28.5k|		if (newWithdrawnRoutesDataLen > 0)
  ------------------
  |  Branch (689:7): [True: 8.34k, False: 20.2k]
  ------------------
  690|  8.34k|		{
  691|  8.34k|			memcpy(m_Data + offsetInLayer, newWithdrawnRoutesData, newWithdrawnRoutesDataLen);
  692|  8.34k|		}
  693|       |
  694|  28.5k|		getBasicHeader()->length =
  695|  28.5k|		    htobe16(be16toh(getBasicHeader()->length) + newWithdrawnRoutesDataLen - curWithdrawnRoutesDataLen);
  696|       |
  697|  28.5k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newWithdrawnRoutesDataLen);
  698|  28.5k|		memcpy(m_Data + sizeof(bgp_common_header), &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  699|       |
  700|  28.5k|		return true;
  701|  36.4k|	}
_ZN4pcpp21BgpUpdateMessageLayer20clearWithdrawnRoutesEv:
  704|  12.1k|	{
  705|  12.1k|		return setWithdrawnRoutes(std::vector<prefix_and_ip>());
  706|  12.1k|	}
_ZN4pcpp21BgpUpdateMessageLayer17getPathAttributesERNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  709|  12.1k|	{
  710|  12.1k|		size_t pathAttrLen = getPathAttributesLength();
  711|  12.1k|		if (pathAttrLen == 0)
  ------------------
  |  Branch (711:7): [True: 4.01k, False: 8.11k]
  ------------------
  712|  4.01k|		{
  713|  4.01k|			return;
  714|  4.01k|		}
  715|       |
  716|  8.11k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength();
  717|  8.11k|		size_t byteCount = 0;
  718|  39.9k|		while (byteCount < pathAttrLen)
  ------------------
  |  Branch (718:10): [True: 31.8k, False: 8.11k]
  ------------------
  719|  31.8k|		{
  720|  31.8k|			path_attribute pa;
  721|  31.8k|			pa.flags = dataPtr[0];
  722|  31.8k|			pa.type = dataPtr[1];
  723|  31.8k|			pa.length = dataPtr[2];
  724|  31.8k|			size_t curByteCount = 3 + pa.length;
  725|  31.8k|			if (pa.length > 0)
  ------------------
  |  Branch (725:8): [True: 23.1k, False: 8.72k]
  ------------------
  726|  23.1k|			{
  727|  23.1k|				size_t dataLenToCopy = (pa.length <= 32 ? pa.length : 32);
  ------------------
  |  Branch (727:29): [True: 15.2k, False: 7.86k]
  ------------------
  728|  23.1k|				memcpy(pa.data, dataPtr + 3, dataLenToCopy);
  729|  23.1k|			}
  730|       |
  731|  31.8k|			pathAttributes.push_back(pa);
  732|  31.8k|			dataPtr += curByteCount;
  733|  31.8k|			byteCount += curByteCount;
  734|  31.8k|		}
  735|  8.11k|	}
_ZN4pcpp21BgpUpdateMessageLayer17setPathAttributesERKNSt3__16vectorINS0_14path_attributeENS1_9allocatorIS3_EEEE:
  738|  36.4k|	{
  739|  36.4k|		uint8_t newPathAttributesData[1500];
  740|  36.4k|		size_t newPathAttributesDataLen = pathAttributesToByteArray(pathAttributes, newPathAttributesData, 1500);
  741|  36.4k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  742|  36.4k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  743|  36.4k|		int offsetInLayer = sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen;
  744|       |
  745|  36.4k|		if (newPathAttributesDataLen > curPathAttributesDataLen)
  ------------------
  |  Branch (745:7): [True: 11.6k, False: 24.7k]
  ------------------
  746|  11.6k|		{
  747|  11.6k|			size_t numOfBytesToExtend = newPathAttributesDataLen - curPathAttributesDataLen;
  748|       |
  749|  11.6k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (749:8): [True: 3.37k, False: 8.24k]
  ------------------
  750|  3.37k|			{
  751|  3.37k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional path attributes");
  ------------------
  |  |  445|  3.37k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  3.37k|	do                                                                                                                 \
  |  |  |  |  415|  3.37k|	{                                                                                                                  \
  |  |  |  |  416|  3.37k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  3.37k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.37k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 3.37k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  3.37k|		{                                                                                                              \
  |  |  |  |  419|  3.37k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  3.37k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.37k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  3.37k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  3.37k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  3.37k|		}                                                                                                              \
  |  |  |  |  424|  3.37k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 3.37k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|  3.37k|				return false;
  753|  3.37k|			}
  754|  11.6k|		}
  755|  24.7k|		else if (newPathAttributesDataLen < curPathAttributesDataLen)
  ------------------
  |  Branch (755:12): [True: 16.7k, False: 8.05k]
  ------------------
  756|  16.7k|		{
  757|  16.7k|			size_t numOfBytesToShorten = curPathAttributesDataLen - newPathAttributesDataLen;
  758|       |
  759|  16.7k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (759:8): [True: 1.79k, False: 14.9k]
  ------------------
  760|  1.79k|			{
  761|  1.79k|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the path attributes data");
  ------------------
  |  |  445|  1.79k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  1.79k|	do                                                                                                                 \
  |  |  |  |  415|  1.79k|	{                                                                                                                  \
  |  |  |  |  416|  1.79k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.79k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.79k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 1.79k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.79k|		{                                                                                                              \
  |  |  |  |  419|  1.79k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  1.79k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.79k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  1.79k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  1.79k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  1.79k|		}                                                                                                              \
  |  |  |  |  424|  1.79k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.79k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  762|  1.79k|				return false;
  763|  1.79k|			}
  764|  16.7k|		}
  765|       |
  766|  31.2k|		if (newPathAttributesDataLen > 0)
  ------------------
  |  Branch (766:7): [True: 15.0k, False: 16.1k]
  ------------------
  767|  15.0k|		{
  768|  15.0k|			memcpy(m_Data + offsetInLayer, newPathAttributesData, newPathAttributesDataLen);
  769|  15.0k|		}
  770|       |
  771|  31.2k|		getBasicHeader()->length =
  772|  31.2k|		    htobe16(be16toh(getBasicHeader()->length) + newPathAttributesDataLen - curPathAttributesDataLen);
  773|       |
  774|  31.2k|		uint16_t newWithdrawnRoutesDataLenBE = htobe16(newPathAttributesDataLen);
  775|  31.2k|		memcpy(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + curWithdrawnRoutesDataLen,
  776|  31.2k|		       &newWithdrawnRoutesDataLenBE, sizeof(uint16_t));
  777|       |
  778|  31.2k|		return true;
  779|  36.4k|	}
_ZN4pcpp21BgpUpdateMessageLayer19clearPathAttributesEv:
  782|  12.1k|	{
  783|  12.1k|		return setPathAttributes(std::vector<path_attribute>());
  784|  12.1k|	}
_ZNK4pcpp21BgpUpdateMessageLayer37getNetworkLayerReachabilityInfoLengthEv:
  787|  48.5k|	{
  788|  48.5k|		size_t headerLen = getHeaderLen();
  789|  48.5k|		size_t minLen = sizeof(bgp_common_header) + 2 * sizeof(uint16_t);
  790|  48.5k|		if (headerLen >= minLen)
  ------------------
  |  Branch (790:7): [True: 42.5k, False: 5.97k]
  ------------------
  791|  42.5k|		{
  792|  42.5k|			size_t withdrawnRouteLen = getWithdrawnRoutesLength();
  793|  42.5k|			size_t pathAttrLen = getPathAttributesLength();
  794|  42.5k|			int nlriSize = headerLen - minLen - withdrawnRouteLen - pathAttrLen;
  795|  42.5k|			if (nlriSize >= 0)
  ------------------
  |  Branch (795:8): [True: 35.1k, False: 7.38k]
  ------------------
  796|  35.1k|			{
  797|  35.1k|				return (size_t)nlriSize;
  798|  35.1k|			}
  799|       |
  800|  7.38k|			return 0;
  801|  42.5k|		}
  802|       |
  803|  5.97k|		return 0;
  804|  48.5k|	}
_ZN4pcpp21BgpUpdateMessageLayer31getNetworkLayerReachabilityInfoERNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  807|  12.1k|	{
  808|  12.1k|		size_t nlriSize = getNetworkLayerReachabilityInfoLength();
  809|  12.1k|		if (nlriSize == 0)
  ------------------
  |  Branch (809:7): [True: 4.91k, False: 7.22k]
  ------------------
  810|  4.91k|		{
  811|  4.91k|			return;
  812|  4.91k|		}
  813|       |
  814|  7.22k|		uint8_t* dataPtr = m_Data + sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + getWithdrawnRoutesLength() +
  815|  7.22k|		                   getPathAttributesLength();
  816|  7.22k|		parsePrefixAndIPData(dataPtr, nlriSize, nlri);
  817|  7.22k|	}
_ZN4pcpp21BgpUpdateMessageLayer11isDataValidEPKhm:
  820|   120k|	{
  821|   120k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t))
  ------------------
  |  Branch (821:7): [True: 172, False: 120k]
  ------------------
  822|    172|			return false;
  823|       |
  824|   120k|		uint16_t withdrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header)));
  825|   120k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen)
  ------------------
  |  Branch (825:7): [True: 1.27k, False: 119k]
  ------------------
  826|  1.27k|			return false;
  827|       |
  828|   119k|		uint16_t attrLen = be16toh(*(uint16_t*)(data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrLen));
  829|   119k|		if (dataSize < sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + withdrLen + attrLen)
  ------------------
  |  Branch (829:7): [True: 1.30k, False: 117k]
  ------------------
  830|  1.30k|			return false;
  831|       |
  832|   117k|		return true;
  833|   119k|	}
_ZN4pcpp21BgpUpdateMessageLayer31setNetworkLayerReachabilityInfoERKNSt3__16vectorINS0_13prefix_and_ipENS1_9allocatorIS3_EEEE:
  836|  36.4k|	{
  837|  36.4k|		uint8_t newNlriData[1500];
  838|  36.4k|		size_t newNlriDataLen = prefixAndIPDataToByteArray(nlri, newNlriData, 1500);
  839|  36.4k|		size_t curNlriDataLen = getNetworkLayerReachabilityInfoLength();
  840|  36.4k|		size_t curPathAttributesDataLen = getPathAttributesLength();
  841|  36.4k|		size_t curWithdrawnRoutesDataLen = getWithdrawnRoutesLength();
  842|  36.4k|		int offsetInLayer =
  843|  36.4k|		    sizeof(bgp_common_header) + 2 * sizeof(uint16_t) + curWithdrawnRoutesDataLen + curPathAttributesDataLen;
  844|       |
  845|  36.4k|		if (newNlriDataLen > curNlriDataLen)
  ------------------
  |  Branch (845:7): [True: 17.0k, False: 19.3k]
  ------------------
  846|  17.0k|		{
  847|  17.0k|			size_t numOfBytesToExtend = newNlriDataLen - curNlriDataLen;
  848|       |
  849|  17.0k|			if (!extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (849:8): [True: 3.77k, False: 13.2k]
  ------------------
  850|  3.77k|			{
  851|  3.77k|				PCPP_LOG_ERROR("Couldn't extend BGP update layer to include the additional NLRI data");
  ------------------
  |  |  445|  3.77k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  3.77k|	do                                                                                                                 \
  |  |  |  |  415|  3.77k|	{                                                                                                                  \
  |  |  |  |  416|  3.77k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  3.77k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.77k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 3.77k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  3.77k|		{                                                                                                              \
  |  |  |  |  419|  3.77k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  3.77k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.77k|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  3.77k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  3.77k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  3.77k|		}                                                                                                              \
  |  |  |  |  424|  3.77k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 3.77k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  852|  3.77k|				return false;
  853|  3.77k|			}
  854|  17.0k|		}
  855|  19.3k|		else if (newNlriDataLen < curNlriDataLen)
  ------------------
  |  Branch (855:12): [True: 8.96k, False: 10.3k]
  ------------------
  856|  8.96k|		{
  857|  8.96k|			size_t numOfBytesToShorten = curNlriDataLen - newNlriDataLen;
  858|       |
  859|  8.96k|			if (!shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (859:8): [True: 509, False: 8.45k]
  ------------------
  860|    509|			{
  861|    509|				PCPP_LOG_ERROR("Couldn't shorten BGP update layer to set the right size of the NLRI data");
  ------------------
  |  |  445|    509|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|    509|	do                                                                                                                 \
  |  |  |  |  415|    509|	{                                                                                                                  \
  |  |  |  |  416|    509|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    509|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    509|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 509, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|    509|		{                                                                                                              \
  |  |  |  |  419|    509|			auto ctx =                                                                                                 \
  |  |  |  |  420|    509|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    509|#define LOG_MODULE PacketLogModuleBgpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|    509|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|    509|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|    509|		}                                                                                                              \
  |  |  |  |  424|    509|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 509]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  862|    509|				return false;
  863|    509|			}
  864|  8.96k|		}
  865|       |
  866|  32.1k|		if (newNlriDataLen > 0)
  ------------------
  |  Branch (866:7): [True: 14.3k, False: 17.8k]
  ------------------
  867|  14.3k|		{
  868|  14.3k|			memcpy(m_Data + offsetInLayer, newNlriData, newNlriDataLen);
  869|  14.3k|		}
  870|       |
  871|  32.1k|		getBasicHeader()->length = htobe16(be16toh(getBasicHeader()->length) + newNlriDataLen - curNlriDataLen);
  872|       |
  873|  32.1k|		return true;
  874|  36.4k|	}
_ZN4pcpp21BgpUpdateMessageLayer33clearNetworkLayerReachabilityInfoEv:
  877|  12.1k|	{
  878|  12.1k|		return setNetworkLayerReachabilityInfo(std::vector<prefix_and_ip>());
  879|  12.1k|	}
_ZNK4pcpp27BgpNotificationMessageLayer22getNotificationDataLenEv:
  927|  1.04k|	{
  928|  1.04k|		size_t headerLen = getHeaderLen();
  929|  1.04k|		if (headerLen > sizeof(bgp_notification_message))
  ------------------
  |  Branch (929:7): [True: 574, False: 475]
  ------------------
  930|    574|		{
  931|    574|			return headerLen - sizeof(bgp_notification_message);
  932|    574|		}
  933|       |
  934|    475|		return 0;
  935|  1.04k|	}
_ZNK4pcpp27BgpNotificationMessageLayer19getNotificationDataEv:
  938|    762|	{
  939|    762|		if (getNotificationDataLen() > 0)
  ------------------
  |  Branch (939:7): [True: 287, False: 475]
  ------------------
  940|    287|		{
  941|    287|			return m_Data + sizeof(bgp_notification_message);
  942|    287|		}
  943|       |
  944|    475|		return nullptr;
  945|    762|	}
_ZNK4pcpp27BgpNotificationMessageLayer30getNotificationDataAsHexStringEv:
  948|    762|	{
  949|    762|		uint8_t* notificationData = getNotificationData();
  950|    762|		if (notificationData == nullptr)
  ------------------
  |  Branch (950:7): [True: 475, False: 287]
  ------------------
  951|    475|		{
  952|    475|			return "";
  953|    475|		}
  954|       |
  955|    287|		return byteArrayToHexString(notificationData, getNotificationDataLen());
  956|    762|	}

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

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

_ZN4pcpp9DhcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   48|  17.2k|	    : Layer(data, dataLen, prevLayer, packet, DHCP)
   49|  17.2k|	{}
_ZNK4pcpp9DhcpLayer24getClientHardwareAddressEv:
   77|  3.38k|	{
   78|  3.38k|		dhcp_header* hdr = getDhcpHeader();
   79|  3.38k|		if (hdr != nullptr && hdr->hardwareType == 1 && hdr->hardwareAddressLength == 6)
  ------------------
  |  Branch (79:7): [True: 3.38k, False: 0]
  |  Branch (79:25): [True: 3.09k, False: 293]
  |  Branch (79:51): [True: 3.00k, False: 93]
  ------------------
   80|  3.00k|			return MacAddress(hdr->clientHardwareAddress);
   81|       |
   82|    386|		PCPP_LOG_DEBUG("Hardware type isn't Ethernet or hardware addr len != 6, returning MacAddress:Zero");
  ------------------
  |  |  427|    386|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    386|	do                                                                                                                 \
  |  |  |  |  415|    386|	{                                                                                                                  \
  |  |  |  |  416|    386|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    386|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    386|#define LOG_MODULE PacketLogModuleDhcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 386]
  |  |  |  |  ------------------
  |  |  |  |  418|    386|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    386|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 386]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|       |
   84|    386|		return MacAddress::Zero;
   85|  3.38k|	}
_ZN4pcpp9DhcpLayer22computeCalculateFieldsEv:
   96|  3.38k|	{
   97|  3.38k|		dhcp_header* hdr = getDhcpHeader();
   98|       |
   99|  3.38k|		hdr->magicNumber = DhcpMagicNumber;
  100|       |
  101|  3.38k|		DhcpMessageType msgType = getMessageType();
  102|  3.38k|		switch (msgType)
  103|  3.38k|		{
  104|     31|		case DHCP_DISCOVER:
  ------------------
  |  Branch (104:3): [True: 31, False: 3.35k]
  ------------------
  105|    907|		case DHCP_REQUEST:
  ------------------
  |  Branch (105:3): [True: 876, False: 2.51k]
  ------------------
  106|  1.15k|		case DHCP_DECLINE:
  ------------------
  |  Branch (106:3): [True: 248, False: 3.14k]
  ------------------
  107|  1.16k|		case DHCP_RELEASE:
  ------------------
  |  Branch (107:3): [True: 9, False: 3.38k]
  ------------------
  108|  1.18k|		case DHCP_INFORM:
  ------------------
  |  Branch (108:3): [True: 16, False: 3.37k]
  ------------------
  109|  2.86k|		case DHCP_UNKNOWN_MSG_TYPE:
  ------------------
  |  Branch (109:3): [True: 1.68k, False: 1.70k]
  ------------------
  110|  2.86k|			hdr->opCode = DHCP_BOOTREQUEST;
  111|  2.86k|			break;
  112|     19|		case DHCP_OFFER:
  ------------------
  |  Branch (112:3): [True: 19, False: 3.37k]
  ------------------
  113|    484|		case DHCP_ACK:
  ------------------
  |  Branch (113:3): [True: 465, False: 2.92k]
  ------------------
  114|    492|		case DHCP_NAK:
  ------------------
  |  Branch (114:3): [True: 8, False: 3.38k]
  ------------------
  115|    492|			hdr->opCode = DHCP_BOOTREPLY;
  116|    492|			break;
  117|     37|		default:
  ------------------
  |  Branch (117:3): [True: 37, False: 3.35k]
  ------------------
  118|     37|			break;
  119|  3.38k|		}
  120|       |
  121|  3.38k|		hdr->hardwareType = 1;           // Ethernet
  122|  3.38k|		hdr->hardwareAddressLength = 6;  // MAC address length
  123|  3.38k|	}
_ZNK4pcpp9DhcpLayer8toStringEv:
  126|  6.77k|	{
  127|  6.77k|		std::string msgType = "Unknown";
  128|  6.77k|		switch (getMessageType())
  129|  6.77k|		{
  130|     62|		case DHCP_DISCOVER:
  ------------------
  |  Branch (130:3): [True: 62, False: 6.71k]
  ------------------
  131|     62|		{
  132|     62|			msgType = "Discover";
  133|     62|			break;
  134|      0|		}
  135|     38|		case DHCP_OFFER:
  ------------------
  |  Branch (135:3): [True: 38, False: 6.74k]
  ------------------
  136|     38|		{
  137|     38|			msgType = "Offer";
  138|     38|			break;
  139|      0|		}
  140|  1.75k|		case DHCP_REQUEST:
  ------------------
  |  Branch (140:3): [True: 1.75k, False: 5.02k]
  ------------------
  141|  1.75k|		{
  142|  1.75k|			msgType = "Request";
  143|  1.75k|			break;
  144|      0|		}
  145|    496|		case DHCP_DECLINE:
  ------------------
  |  Branch (145:3): [True: 496, False: 6.28k]
  ------------------
  146|    496|		{
  147|    496|			msgType = "Decline";
  148|    496|			break;
  149|      0|		}
  150|    930|		case DHCP_ACK:
  ------------------
  |  Branch (150:3): [True: 930, False: 5.84k]
  ------------------
  151|    930|		{
  152|    930|			msgType = "Acknowledge";
  153|    930|			break;
  154|      0|		}
  155|     16|		case DHCP_NAK:
  ------------------
  |  Branch (155:3): [True: 16, False: 6.76k]
  ------------------
  156|     16|		{
  157|     16|			msgType = "Negative Acknowledge";
  158|     16|			break;
  159|      0|		}
  160|     18|		case DHCP_RELEASE:
  ------------------
  |  Branch (160:3): [True: 18, False: 6.76k]
  ------------------
  161|     18|		{
  162|     18|			msgType = "Release";
  163|     18|			break;
  164|      0|		}
  165|     32|		case DHCP_INFORM:
  ------------------
  |  Branch (165:3): [True: 32, False: 6.74k]
  ------------------
  166|     32|		{
  167|     32|			msgType = "Inform";
  168|     32|			break;
  169|      0|		}
  170|  3.43k|		default:
  ------------------
  |  Branch (170:3): [True: 3.43k, False: 3.34k]
  ------------------
  171|  3.43k|			break;
  172|  6.77k|		}
  173|       |
  174|  6.77k|		return "DHCP layer (" + msgType + ")";
  175|  6.77k|	}
_ZNK4pcpp9DhcpLayer14getMessageTypeEv:
  178|  10.1k|	{
  179|  10.1k|		DhcpOption opt = getOptionData(DHCPOPT_DHCP_MESSAGE_TYPE);
  180|  10.1k|		if (opt.isNull())
  ------------------
  |  Branch (180:7): [True: 3.79k, False: 6.36k]
  ------------------
  181|  3.79k|			return DHCP_UNKNOWN_MSG_TYPE;
  182|       |
  183|  6.36k|		return (DhcpMessageType)opt.getValueAs<uint8_t>();
  184|  10.1k|	}
_ZNK4pcpp9DhcpLayer13getOptionDataENS_15DhcpOptionTypesE:
  204|  13.5k|	{
  205|  13.5k|		return m_OptionReader.getTLVRecord((uint8_t)option, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  206|  13.5k|	}
_ZNK4pcpp9DhcpLayer18getFirstOptionDataEv:
  209|  3.32k|	{
  210|  3.32k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  211|  3.32k|	}
_ZNK4pcpp9DhcpLayer17getNextOptionDataENS_10DhcpOptionE:
  214|  57.9k|	{
  215|  57.9k|		return m_OptionReader.getNextTLVRecord(dhcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  216|  57.9k|	}
_ZNK4pcpp9DhcpLayer15getOptionsCountEv:
  219|  64.7k|	{
  220|  64.7k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcp_header));
  221|  64.7k|	}

_ZNK4pcpp12DhcpV6Option7getTypeEv:
   13|  10.6k|	{
   14|  10.6k|		if (m_Data == nullptr)
  ------------------
  |  Branch (14:7): [True: 0, False: 10.6k]
  ------------------
   15|      0|			return DhcpV6OptionType::DHCPV6_OPT_UNKNOWN;
   16|       |
   17|  10.6k|		uint16_t optionType = be16toh(m_Data->recordType);
   18|  10.6k|		if (optionType <= 62 && optionType != 10 && optionType != 35 && optionType != 57 && optionType != 58)
  ------------------
  |  Branch (18:7): [True: 7.72k, False: 2.97k]
  |  Branch (18:27): [True: 7.09k, False: 638]
  |  Branch (18:47): [True: 6.99k, False: 96]
  |  Branch (18:67): [True: 6.81k, False: 177]
  |  Branch (18:87): [True: 6.33k, False: 486]
  ------------------
   19|  6.33k|		{
   20|  6.33k|			return static_cast<DhcpV6OptionType>(optionType);
   21|  6.33k|		}
   22|  4.36k|		if (optionType == 65 || optionType == 66 || optionType == 68 || optionType == 79 || optionType == 112)
  ------------------
  |  Branch (22:7): [True: 1.08k, False: 3.28k]
  |  Branch (22:27): [True: 134, False: 3.15k]
  |  Branch (22:47): [True: 81, False: 3.07k]
  |  Branch (22:67): [True: 2, False: 3.06k]
  |  Branch (22:87): [True: 37, False: 3.03k]
  ------------------
   23|  1.33k|		{
   24|  1.33k|			return static_cast<DhcpV6OptionType>(optionType);
   25|  1.33k|		}
   26|       |
   27|  3.03k|		return DHCPV6_OPT_UNKNOWN;
   28|  4.36k|	}
_ZNK4pcpp12DhcpV6Option19getValueAsHexStringEv:
   31|  3.46k|	{
   32|  3.46k|		if (m_Data == nullptr)
  ------------------
  |  Branch (32:7): [True: 0, False: 3.46k]
  ------------------
   33|      0|			return "";
   34|       |
   35|  3.46k|		return byteArrayToHexString(m_Data->recordValue, getDataSize());
   36|  3.46k|	}
_ZNK4pcpp12DhcpV6Option12getTotalSizeEv:
   39|   119k|	{
   40|   119k|		if (m_Data == nullptr)
  ------------------
  |  Branch (40:7): [True: 0, False: 119k]
  ------------------
   41|      0|			return 0;
   42|       |
   43|   119k|		return 2 * sizeof(uint16_t) + be16toh(m_Data->recordLen);
   44|   119k|	}
_ZNK4pcpp12DhcpV6Option11getDataSizeEv:
   47|  3.46k|	{
   48|  3.46k|		if (m_Data == nullptr)
  ------------------
  |  Branch (48:7): [True: 0, False: 3.46k]
  ------------------
   49|      0|			return 0;
   50|       |
   51|  3.46k|		return static_cast<size_t>(be16toh(m_Data->recordLen));
   52|  3.46k|	}
_ZN4pcpp11DhcpV6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   72|  19.2k|	    : Layer(data, dataLen, prevLayer, packet, DHCPv6)
   73|  19.2k|	{}
_ZNK4pcpp11DhcpV6Layer14getMessageTypeEv:
   85|  7.38k|	{
   86|  7.38k|		uint8_t messageType = getDhcpHeader()->messageType;
   87|  7.38k|		if (messageType > 13)
  ------------------
  |  Branch (87:7): [True: 922, False: 6.46k]
  ------------------
   88|    922|		{
   89|    922|			return DHCPV6_UNKNOWN_MSG_TYPE;
   90|    922|		}
   91|       |
   92|  6.46k|		return static_cast<DhcpV6MessageType>(messageType);
   93|  7.38k|	}
_ZNK4pcpp11DhcpV6Layer22getMessageTypeAsStringEv:
   96|  7.38k|	{
   97|  7.38k|		DhcpV6MessageType messageType = getMessageType();
   98|  7.38k|		switch (messageType)
   99|  7.38k|		{
  100|     66|		case DHCPV6_SOLICIT:
  ------------------
  |  Branch (100:3): [True: 66, False: 7.32k]
  ------------------
  101|     66|			return "Solicit";
  102|     82|		case DHCPV6_ADVERTISE:
  ------------------
  |  Branch (102:3): [True: 82, False: 7.30k]
  ------------------
  103|     82|			return "Advertise";
  104|    118|		case DHCPV6_REQUEST:
  ------------------
  |  Branch (104:3): [True: 118, False: 7.27k]
  ------------------
  105|    118|			return "Request";
  106|      2|		case DHCPV6_CONFIRM:
  ------------------
  |  Branch (106:3): [True: 2, False: 7.38k]
  ------------------
  107|      2|			return "Confirm";
  108|    270|		case DHCPV6_RENEW:
  ------------------
  |  Branch (108:3): [True: 270, False: 7.11k]
  ------------------
  109|    270|			return "Renew";
  110|     86|		case DHCPV6_REBIND:
  ------------------
  |  Branch (110:3): [True: 86, False: 7.30k]
  ------------------
  111|     86|			return "Rebind";
  112|    836|		case DHCPV6_REPLY:
  ------------------
  |  Branch (112:3): [True: 836, False: 6.55k]
  ------------------
  113|    836|			return "Reply";
  114|     70|		case DHCPV6_RELEASE:
  ------------------
  |  Branch (114:3): [True: 70, False: 7.31k]
  ------------------
  115|     70|			return "Release";
  116|      4|		case DHCPV6_DECLINE:
  ------------------
  |  Branch (116:3): [True: 4, False: 7.38k]
  ------------------
  117|      4|			return "Decline";
  118|    698|		case DHCPV6_RECONFIGURE:
  ------------------
  |  Branch (118:3): [True: 698, False: 6.69k]
  ------------------
  119|    698|			return "Reconfigure";
  120|  3.04k|		case DHCPV6_INFORMATION_REQUEST:
  ------------------
  |  Branch (120:3): [True: 3.04k, False: 4.34k]
  ------------------
  121|  3.04k|			return "Information-Request";
  122|    120|		case DHCPV6_RELAY_FORWARD:
  ------------------
  |  Branch (122:3): [True: 120, False: 7.26k]
  ------------------
  123|    120|			return "Relay-Forward";
  124|    140|		case DHCPV6_RELAY_REPLY:
  ------------------
  |  Branch (124:3): [True: 140, False: 7.24k]
  ------------------
  125|    140|			return "Relay-Reply";
  126|  1.85k|		default:
  ------------------
  |  Branch (126:3): [True: 1.85k, False: 5.53k]
  ------------------
  127|  1.85k|			return "Unknown";
  128|  7.38k|		}
  129|  7.38k|	}
_ZNK4pcpp11DhcpV6Layer16getTransactionIDEv:
  137|  3.69k|	{
  138|  3.69k|		dhcpv6_header* hdr = getDhcpHeader();
  139|  3.69k|		uint32_t result = hdr->transactionId1 << 16 | hdr->transactionId2 << 8 | hdr->transactionId3;
  140|  3.69k|		return result;
  141|  3.69k|	}
_ZNK4pcpp11DhcpV6Layer18getFirstOptionDataEv:
  152|  3.46k|	{
  153|  3.46k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  154|  3.46k|	}
_ZNK4pcpp11DhcpV6Layer17getNextOptionDataENS_12DhcpV6OptionE:
  157|  8.26k|	{
  158|  8.26k|		return m_OptionReader.getNextTLVRecord(dhcpv6Option, getOptionsBasePtr(),
  159|  8.26k|		                                       getHeaderLen() - sizeof(dhcpv6_header));
  160|  8.26k|	}
_ZNK4pcpp11DhcpV6Layer13getOptionDataENS_16DhcpV6OptionTypeE:
  163|  3.46k|	{
  164|  3.46k|		return m_OptionReader.getTLVRecord(static_cast<uint32_t>(option), getOptionsBasePtr(),
  165|  3.46k|		                                   getHeaderLen() - sizeof(dhcpv6_header));
  166|  3.46k|	}
_ZNK4pcpp11DhcpV6Layer14getOptionCountEv:
  169|  15.4k|	{
  170|  15.4k|		return m_OptionReader.getTLVRecordCount(getOptionsBasePtr(), getHeaderLen() - sizeof(dhcpv6_header));
  171|  15.4k|	}
_ZNK4pcpp11DhcpV6Layer8toStringEv:
  269|  7.38k|	{
  270|  7.38k|		return "DHCPv6 Layer, " + getMessageTypeAsString() + " message";
  271|  7.38k|	}

_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   17|  56.6k|	    : Layer(data, dataLen, prevLayer, packet)
   18|  56.6k|	{
   19|  56.6k|		init(0, true);
   20|  56.6k|	}
_ZN4pcpp8DnsLayerC2ERKS0_:
   27|  12.9k|	DnsLayer::DnsLayer(const DnsLayer& other) : Layer(other)
   28|  12.9k|	{
   29|  12.9k|		init(other.m_OffsetAdjustment, true);
   30|  12.9k|	}
_ZN4pcpp8DnsLayerC2EPhmPNS_5LayerEPNS_6PacketEm:
   33|  13.7k|	    : Layer(data, dataLen, prevLayer, packet)
   34|  13.7k|	{
   35|  13.7k|		init(offsetAdjustment, true);
   36|  13.7k|	}
_ZN4pcpp8DnsLayeraSERKS0_:
   44|  12.9k|	{
   45|  12.9k|		Layer::operator=(other);
   46|       |
   47|  12.9k|		IDnsResource* curResource = m_ResourceList;
   48|  34.0k|		while (curResource != nullptr)
  ------------------
  |  Branch (48:10): [True: 21.1k, False: 12.9k]
  ------------------
   49|  21.1k|		{
   50|  21.1k|			IDnsResource* temp = curResource->getNextResource();
   51|  21.1k|			delete curResource;
   52|  21.1k|			curResource = temp;
   53|  21.1k|		}
   54|       |
   55|  12.9k|		init(other.m_OffsetAdjustment, true);
   56|       |
   57|  12.9k|		return (*this);
   58|  12.9k|	}
_ZN4pcpp8DnsLayerD2Ev:
   61|  83.3k|	{
   62|  83.3k|		IDnsResource* curResource = m_ResourceList;
   63|   193k|		while (curResource != nullptr)
  ------------------
  |  Branch (63:10): [True: 110k, False: 83.3k]
  ------------------
   64|   110k|		{
   65|   110k|			IDnsResource* nextResource = curResource->getNextResource();
   66|   110k|			delete curResource;
   67|   110k|			curResource = nextResource;
   68|   110k|		}
   69|  83.3k|	}
_ZN4pcpp8DnsLayer4initEmb:
   72|  96.2k|	{
   73|  96.2k|		m_OffsetAdjustment = offsetAdjustment;
   74|  96.2k|		m_Protocol = DNS;
   75|  96.2k|		m_ResourceList = nullptr;
   76|       |
   77|  96.2k|		m_FirstQuery = nullptr;
   78|  96.2k|		m_FirstAnswer = nullptr;
   79|  96.2k|		m_FirstAuthority = nullptr;
   80|  96.2k|		m_FirstAdditional = nullptr;
   81|       |
   82|  96.2k|		if (callParseResource)
  ------------------
  |  Branch (82:7): [True: 96.2k, False: 0]
  ------------------
   83|  96.2k|			parseResources();
   84|  96.2k|	}
_ZN4pcpp8DnsLayer18getBasicHeaderSizeEv:
   96|   147k|	{
   97|   147k|		return sizeof(dnshdr) + m_OffsetAdjustment;
   98|   147k|	}
_ZNK4pcpp8DnsLayer12getDnsHeaderEv:
  101|   810k|	{
  102|   810k|		uint8_t* ptr = m_Data + m_OffsetAdjustment;
  103|   810k|		return reinterpret_cast<dnshdr*>(ptr);
  104|   810k|	}
_ZN4pcpp8DnsLayer11extendLayerEimPNS_12IDnsResourceE:
  107|  79.1k|	{
  108|  79.1k|		if (!Layer::extendLayer(offsetInLayer, numOfBytesToExtend))
  ------------------
  |  Branch (108:7): [True: 14.3k, False: 64.8k]
  ------------------
  109|  14.3k|			return false;
  110|       |
  111|  64.8k|		IDnsResource* curResource = resource->getNextResource();
  112|  77.5k|		while (curResource != nullptr)
  ------------------
  |  Branch (112:10): [True: 12.6k, False: 64.8k]
  ------------------
  113|  12.6k|		{
  114|  12.6k|			curResource->m_OffsetInLayer += numOfBytesToExtend;
  115|  12.6k|			curResource = curResource->getNextResource();
  116|  12.6k|		}
  117|  64.8k|		return true;
  118|  79.1k|	}
_ZN4pcpp8DnsLayer12shortenLayerEimPNS_12IDnsResourceE:
  121|  36.6k|	{
  122|  36.6k|		if (!Layer::shortenLayer(offsetInLayer, numOfBytesToShorten))
  ------------------
  |  Branch (122:7): [True: 8, False: 36.6k]
  ------------------
  123|      8|			return false;
  124|       |
  125|  36.6k|		IDnsResource* curResource = resource->getNextResource();
  126|  45.2k|		while (curResource != nullptr)
  ------------------
  |  Branch (126:10): [True: 8.59k, False: 36.6k]
  ------------------
  127|  8.59k|		{
  128|  8.59k|			curResource->m_OffsetInLayer -= numOfBytesToShorten;
  129|  8.59k|			curResource = curResource->getNextResource();
  130|  8.59k|		}
  131|  36.6k|		return true;
  132|  36.6k|	}
_ZN4pcpp8DnsLayer14parseResourcesEv:
  135|  96.2k|	{
  136|  96.2k|		size_t offsetInPacket = getBasicHeaderSize();
  137|  96.2k|		IDnsResource* curResource = m_ResourceList;
  138|       |
  139|  96.2k|		uint16_t numOfQuestions = be16toh(getDnsHeader()->numberOfQuestions);
  140|  96.2k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  141|  96.2k|		uint16_t numOfAuthority = be16toh(getDnsHeader()->numberOfAuthority);
  142|  96.2k|		uint16_t numOfAdditional = be16toh(getDnsHeader()->numberOfAdditional);
  143|       |
  144|  96.2k|		uint32_t numOfOtherResources = numOfQuestions + numOfAnswers + numOfAuthority + numOfAdditional;
  145|       |
  146|  96.2k|		if (numOfOtherResources > 300)
  ------------------
  |  Branch (146:7): [True: 20.7k, False: 75.4k]
  ------------------
  147|  20.7k|		{
  148|  20.7k|			PCPP_LOG_ERROR(
  ------------------
  |  |  445|  20.7k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  20.7k|	do                                                                                                                 \
  |  |  |  |  415|  20.7k|	{                                                                                                                  \
  |  |  |  |  416|  20.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  20.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  20.7k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 20.7k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  20.7k|		{                                                                                                              \
  |  |  |  |  419|  20.7k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  20.7k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  20.7k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  20.7k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  20.7k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  20.7k|		}                                                                                                              \
  |  |  |  |  424|  20.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 20.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  149|  20.7k|			    "DNS layer contains more than 300 resources, probably a bad packet. Skipping parsing DNS resources");
  150|  20.7k|			return;
  151|  20.7k|		}
  152|       |
  153|   206k|		for (uint32_t i = 0; i < numOfOtherResources; i++)
  ------------------
  |  Branch (153:24): [True: 156k, False: 50.3k]
  ------------------
  154|   156k|		{
  155|   156k|			DnsResourceType resType;
  156|   156k|			if (numOfQuestions > 0)
  ------------------
  |  Branch (156:8): [True: 102k, False: 53.7k]
  ------------------
  157|   102k|			{
  158|   102k|				resType = DnsQueryType;
  159|   102k|				numOfQuestions--;
  160|   102k|			}
  161|  53.7k|			else if (numOfAnswers > 0)
  ------------------
  |  Branch (161:13): [True: 20.9k, False: 32.7k]
  ------------------
  162|  20.9k|			{
  163|  20.9k|				resType = DnsAnswerType;
  164|  20.9k|				numOfAnswers--;
  165|  20.9k|			}
  166|  32.7k|			else if (numOfAuthority > 0)
  ------------------
  |  Branch (166:13): [True: 19.6k, False: 13.1k]
  ------------------
  167|  19.6k|			{
  168|  19.6k|				resType = DnsAuthorityType;
  169|  19.6k|				numOfAuthority--;
  170|  19.6k|			}
  171|  13.1k|			else
  172|  13.1k|			{
  173|  13.1k|				resType = DnsAdditionalType;
  174|  13.1k|				numOfAdditional--;
  175|  13.1k|			}
  176|       |
  177|   156k|			DnsResource* newResource = nullptr;
  178|   156k|			DnsQuery* newQuery = nullptr;
  179|   156k|			IDnsResource* newGenResource = nullptr;
  180|   156k|			if (resType == DnsQueryType)
  ------------------
  |  Branch (180:8): [True: 102k, False: 53.7k]
  ------------------
  181|   102k|			{
  182|   102k|				newQuery = new DnsQuery(this, offsetInPacket);
  183|   102k|				newGenResource = newQuery;
  184|   102k|				offsetInPacket += newQuery->getSize();
  185|   102k|			}
  186|  53.7k|			else
  187|  53.7k|			{
  188|  53.7k|				newResource = new DnsResource(this, offsetInPacket, resType);
  189|  53.7k|				newGenResource = newResource;
  190|  53.7k|				offsetInPacket += newResource->getSize();
  191|  53.7k|			}
  192|       |
  193|   156k|			if (offsetInPacket > m_DataLen)
  ------------------
  |  Branch (193:8): [True: 25.0k, False: 131k]
  ------------------
  194|  25.0k|			{
  195|       |				// Parse packet failed, DNS resource is out of bounds. Probably a bad packet
  196|  25.0k|				delete newGenResource;
  197|  25.0k|				return;
  198|  25.0k|			}
  199|       |
  200|       |			// this resource is the first resource
  201|   131k|			if (m_ResourceList == nullptr)
  ------------------
  |  Branch (201:8): [True: 66.4k, False: 64.6k]
  ------------------
  202|  66.4k|			{
  203|  66.4k|				m_ResourceList = newGenResource;
  204|  66.4k|				curResource = m_ResourceList;
  205|  66.4k|			}
  206|  64.6k|			else
  207|  64.6k|			{
  208|  64.6k|				curResource->setNextResource(newGenResource);
  209|  64.6k|				curResource = curResource->getNextResource();
  210|  64.6k|			}
  211|       |
  212|   131k|			if (resType == DnsQueryType && m_FirstQuery == nullptr)
  ------------------
  |  Branch (212:8): [True: 93.2k, False: 37.9k]
  |  Branch (212:35): [True: 65.7k, False: 27.5k]
  ------------------
  213|  65.7k|				m_FirstQuery = newQuery;
  214|  65.4k|			else if (resType == DnsAnswerType && m_FirstAnswer == nullptr)
  ------------------
  |  Branch (214:13): [True: 14.8k, False: 50.5k]
  |  Branch (214:41): [True: 5.99k, False: 8.86k]
  ------------------
  215|  5.99k|				m_FirstAnswer = newResource;
  216|  59.4k|			else if (resType == DnsAuthorityType && m_FirstAuthority == nullptr)
  ------------------
  |  Branch (216:13): [True: 12.8k, False: 46.6k]
  |  Branch (216:44): [True: 7.41k, False: 5.42k]
  ------------------
  217|  7.41k|				m_FirstAuthority = newResource;
  218|  52.0k|			else if (resType == DnsAdditionalType && m_FirstAdditional == nullptr)
  ------------------
  |  Branch (218:13): [True: 10.2k, False: 41.8k]
  |  Branch (218:45): [True: 5.30k, False: 4.91k]
  ------------------
  219|  5.30k|				m_FirstAdditional = newResource;
  220|   131k|		}
  221|  75.4k|	}
_ZNK4pcpp8DnsLayer17getResourceByNameEPNS_12IDnsResourceEmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEb:
  225|   103k|	{
  226|   103k|		size_t index = 0;
  227|   173k|		while (index < resourceCount)
  ------------------
  |  Branch (227:10): [True: 126k, False: 46.9k]
  ------------------
  228|   126k|		{
  229|   126k|			if (startFrom == nullptr)
  ------------------
  |  Branch (229:8): [True: 19.6k, False: 106k]
  ------------------
  230|  19.6k|				return nullptr;
  231|       |
  232|   106k|			std::string resourceName = startFrom->getName();
  233|   106k|			if (exactMatch && resourceName == name)
  ------------------
  |  Branch (233:8): [True: 53.2k, False: 53.2k]
  |  Branch (233:22): [True: 11, False: 53.2k]
  ------------------
  234|     11|				return startFrom;
  235|   106k|			else if (!exactMatch && resourceName.find(name) != std::string::npos)
  ------------------
  |  Branch (235:13): [True: 53.2k, False: 53.2k]
  |  Branch (235:28): [True: 36.6k, False: 16.6k]
  ------------------
  236|  36.6k|				return startFrom;
  237|       |
  238|  69.8k|			startFrom = startFrom->getNextResource();
  239|       |
  240|  69.8k|			index++;
  241|  69.8k|		}
  242|       |
  243|  46.9k|		return nullptr;
  244|   103k|	}
_ZNK4pcpp8DnsLayer8getQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  247|  25.8k|	{
  248|  25.8k|		uint16_t numOfQueries = be16toh(getDnsHeader()->numberOfQuestions);
  249|  25.8k|		IDnsResource* res = getResourceByName(m_FirstQuery, numOfQueries, name, exactMatch);
  250|  25.8k|		if (res != nullptr)
  ------------------
  |  Branch (250:7): [True: 9.20k, False: 16.6k]
  ------------------
  251|  9.20k|			return dynamic_cast<DnsQuery*>(res);
  252|  16.6k|		return nullptr;
  253|  25.8k|	}
_ZNK4pcpp8DnsLayer13getFirstQueryEv:
  256|  12.9k|	{
  257|  12.9k|		return m_FirstQuery;
  258|  12.9k|	}
_ZNK4pcpp8DnsLayer12getNextQueryEPNS_8DnsQueryE:
  261|  11.5k|	{
  262|  11.5k|		if (query == nullptr || query->getNextResource() == nullptr || query->getType() != DnsQueryType ||
  ------------------
  |  Branch (262:7): [True: 0, False: 11.5k]
  |  Branch (262:27): [True: 6.39k, False: 5.19k]
  |  Branch (262:66): [True: 0, False: 5.19k]
  ------------------
  263|  5.19k|		    query->getNextResource()->getType() != DnsQueryType)
  ------------------
  |  Branch (263:7): [True: 2.27k, False: 2.91k]
  ------------------
  264|  8.67k|			return nullptr;
  265|       |
  266|  2.91k|		return (DnsQuery*)(query->getNextResource());
  267|  11.5k|	}
_ZNK4pcpp8DnsLayer13getQueryCountEv:
  270|  44.2k|	{
  271|       |		return be16toh(getDnsHeader()->numberOfQuestions);
  272|  44.2k|	}
_ZNK4pcpp8DnsLayer9getAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  275|  25.8k|	{
  276|  25.8k|		uint16_t numOfAnswers = be16toh(getDnsHeader()->numberOfAnswers);
  277|  25.8k|		IDnsResource* res = getResourceByName(m_FirstAnswer, numOfAnswers, name, exactMatch);
  278|  25.8k|		if (res != nullptr)
  ------------------
  |  Branch (278:7): [True: 9.13k, False: 16.7k]
  ------------------
  279|  9.13k|			return dynamic_cast<DnsResource*>(res);
  280|  16.7k|		return nullptr;
  281|  25.8k|	}
_ZNK4pcpp8DnsLayer14getFirstAnswerEv:
  284|  12.9k|	{
  285|  12.9k|		return m_FirstAnswer;
  286|  12.9k|	}
_ZNK4pcpp8DnsLayer13getNextAnswerEPNS_11DnsResourceE:
  289|  2.18k|	{
  290|  2.18k|		if (answer == nullptr || answer->getNextResource() == nullptr || answer->getType() != DnsAnswerType ||
  ------------------
  |  Branch (290:7): [True: 0, False: 2.18k]
  |  Branch (290:28): [True: 881, False: 1.30k]
  |  Branch (290:68): [True: 0, False: 1.30k]
  ------------------
  291|  1.30k|		    answer->getNextResource()->getType() != DnsAnswerType)
  ------------------
  |  Branch (291:7): [True: 107, False: 1.19k]
  ------------------
  292|    988|			return nullptr;
  293|       |
  294|  1.19k|		return (DnsResource*)(answer->getNextResource());
  295|  2.18k|	}
_ZNK4pcpp8DnsLayer14getAnswerCountEv:
  298|  44.2k|	{
  299|       |		return be16toh(getDnsHeader()->numberOfAnswers);
  300|  44.2k|	}
_ZNK4pcpp8DnsLayer12getAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  303|  25.8k|	{
  304|  25.8k|		uint16_t numOfAuthorities = be16toh(getDnsHeader()->numberOfAuthority);
  305|  25.8k|		IDnsResource* res = getResourceByName(m_FirstAuthority, numOfAuthorities, name, exactMatch);
  306|  25.8k|		if (res != nullptr)
  ------------------
  |  Branch (306:7): [True: 9.15k, False: 16.6k]
  ------------------
  307|  9.15k|			return dynamic_cast<DnsResource*>(res);
  308|  16.6k|		return nullptr;
  309|  25.8k|	}
_ZNK4pcpp8DnsLayer17getFirstAuthorityEv:
  312|  12.9k|	{
  313|  12.9k|		return m_FirstAuthority;
  314|  12.9k|	}
_ZNK4pcpp8DnsLayer16getNextAuthorityEPNS_11DnsResourceE:
  317|  1.67k|	{
  318|  1.67k|		if (authority == nullptr || authority->getNextResource() == nullptr ||
  ------------------
  |  Branch (318:7): [True: 0, False: 1.67k]
  |  Branch (318:31): [True: 813, False: 858]
  ------------------
  319|    858|		    authority->getType() != DnsAuthorityType || authority->getNextResource()->getType() != DnsAuthorityType)
  ------------------
  |  Branch (319:7): [True: 0, False: 858]
  |  Branch (319:51): [True: 319, False: 539]
  ------------------
  320|  1.13k|			return nullptr;
  321|       |
  322|    539|		return (DnsResource*)(authority->getNextResource());
  323|  1.67k|	}
_ZNK4pcpp8DnsLayer17getAuthorityCountEv:
  326|  44.2k|	{
  327|       |		return be16toh(getDnsHeader()->numberOfAuthority);
  328|  44.2k|	}
_ZNK4pcpp8DnsLayer19getAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  331|  25.8k|	{
  332|  25.8k|		uint16_t numOfAdditionalRecords = be16toh(getDnsHeader()->numberOfAdditional);
  333|  25.8k|		IDnsResource* res = getResourceByName(m_FirstAdditional, numOfAdditionalRecords, name, exactMatch);
  334|  25.8k|		if (res != nullptr)
  ------------------
  |  Branch (334:7): [True: 9.16k, False: 16.6k]
  ------------------
  335|  9.16k|			return dynamic_cast<DnsResource*>(res);
  336|  16.6k|		return nullptr;
  337|  25.8k|	}
_ZNK4pcpp8DnsLayer24getFirstAdditionalRecordEv:
  340|  12.9k|	{
  341|  12.9k|		return m_FirstAdditional;
  342|  12.9k|	}
_ZNK4pcpp8DnsLayer23getNextAdditionalRecordEPNS_11DnsResourceE:
  345|  1.55k|	{
  346|  1.55k|		if (additionalRecord == nullptr || additionalRecord->getNextResource() == nullptr ||
  ------------------
  |  Branch (346:7): [True: 0, False: 1.55k]
  |  Branch (346:38): [True: 871, False: 684]
  ------------------
  347|    684|		    additionalRecord->getType() != DnsAdditionalType ||
  ------------------
  |  Branch (347:7): [True: 0, False: 684]
  ------------------
  348|    684|		    additionalRecord->getNextResource()->getType() != DnsAdditionalType)
  ------------------
  |  Branch (348:7): [True: 0, False: 684]
  ------------------
  349|    871|			return nullptr;
  350|       |
  351|    684|		return (DnsResource*)(additionalRecord->getNextResource());
  352|  1.55k|	}
_ZNK4pcpp8DnsLayer24getAdditionalRecordCountEv:
  355|  44.2k|	{
  356|       |		return be16toh(getDnsHeader()->numberOfAdditional);
  357|  44.2k|	}
_ZNK4pcpp8DnsLayer8toStringEv:
  360|  25.8k|	{
  361|  25.8k|		std::ostringstream tidAsString;
  362|  25.8k|		tidAsString << be16toh(getDnsHeader()->transactionID);
  363|       |
  364|  25.8k|		std::ostringstream queryCount;
  365|  25.8k|		queryCount << getQueryCount();
  366|       |
  367|  25.8k|		std::ostringstream answerCount;
  368|  25.8k|		answerCount << getAnswerCount();
  369|       |
  370|  25.8k|		std::ostringstream authorityCount;
  371|  25.8k|		authorityCount << getAuthorityCount();
  372|       |
  373|  25.8k|		std::ostringstream additionalCount;
  374|  25.8k|		additionalCount << getAdditionalRecordCount();
  375|       |
  376|  25.8k|		if (getDnsHeader()->queryOrResponse == 1)
  ------------------
  |  Branch (376:7): [True: 5.84k, False: 19.9k]
  ------------------
  377|  5.84k|		{
  378|  5.84k|			return "DNS query response, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  379|  5.84k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  380|  5.84k|			       ", additional record: " + additionalCount.str();
  381|  5.84k|		}
  382|  19.9k|		else if (getDnsHeader()->queryOrResponse == 0)
  ------------------
  |  Branch (382:12): [True: 19.9k, False: 0]
  ------------------
  383|  19.9k|		{
  384|  19.9k|			return "DNS query, ID: " + tidAsString.str() + ";" + " queries: " + queryCount.str() +
  385|  19.9k|			       ", answers: " + answerCount.str() + ", authorities: " + authorityCount.str() +
  386|  19.9k|			       ", additional record: " + additionalCount.str();
  387|  19.9k|		}
  388|      0|		else  // not likely - a DNS with no answers and no queries
  389|      0|		{
  390|      0|			return "DNS record without queries and answers, ID: " + tidAsString.str() + ";" +
  391|      0|			       " queries: " + queryCount.str() + ", answers: " + answerCount.str() +
  392|      0|			       ", authorities: " + authorityCount.str() + ", additional record: " + additionalCount.str();
  393|      0|		}
  394|  25.8k|	}
_ZNK4pcpp8DnsLayer16getFirstResourceENS_15DnsResourceTypeE:
  618|  36.6k|	{
  619|  36.6k|		switch (resType)
  620|  36.6k|		{
  621|  9.20k|		case DnsQueryType:
  ------------------
  |  Branch (621:3): [True: 9.20k, False: 27.4k]
  ------------------
  622|  9.20k|		{
  623|  9.20k|			return m_FirstQuery;
  624|      0|		}
  625|  9.12k|		case DnsAnswerType:
  ------------------
  |  Branch (625:3): [True: 9.12k, False: 27.5k]
  ------------------
  626|  9.12k|		{
  627|  9.12k|			return m_FirstAnswer;
  628|      0|		}
  629|  9.14k|		case DnsAuthorityType:
  ------------------
  |  Branch (629:3): [True: 9.14k, False: 27.4k]
  ------------------
  630|  9.14k|		{
  631|  9.14k|			return m_FirstAuthority;
  632|      0|		}
  633|  9.16k|		case DnsAdditionalType:
  ------------------
  |  Branch (633:3): [True: 9.16k, False: 27.4k]
  ------------------
  634|  9.16k|		{
  635|  9.16k|			return m_FirstAdditional;
  636|      0|		}
  637|      0|		default:
  ------------------
  |  Branch (637:3): [True: 0, False: 36.6k]
  ------------------
  638|      0|			return nullptr;
  639|  36.6k|		}
  640|  36.6k|	}
_ZN4pcpp8DnsLayer16setFirstResourceENS_15DnsResourceTypeEPNS_12IDnsResourceE:
  643|  52.4k|	{
  644|  52.4k|		switch (resType)
  645|  52.4k|		{
  646|  1.72k|		case DnsQueryType:
  ------------------
  |  Branch (646:3): [True: 1.72k, False: 50.6k]
  ------------------
  647|  1.72k|		{
  648|  1.72k|			m_FirstQuery = dynamic_cast<DnsQuery*>(resource);
  649|  1.72k|			break;
  650|      0|		}
  651|  16.9k|		case DnsAnswerType:
  ------------------
  |  Branch (651:3): [True: 16.9k, False: 35.5k]
  ------------------
  652|  16.9k|		{
  653|  16.9k|			m_FirstAnswer = dynamic_cast<DnsResource*>(resource);
  654|  16.9k|			break;
  655|      0|		}
  656|  16.6k|		case DnsAuthorityType:
  ------------------
  |  Branch (656:3): [True: 16.6k, False: 35.7k]
  ------------------
  657|  16.6k|		{
  658|  16.6k|			m_FirstAuthority = dynamic_cast<DnsResource*>(resource);
  659|  16.6k|			break;
  660|      0|		}
  661|  17.1k|		case DnsAdditionalType:
  ------------------
  |  Branch (661:3): [True: 17.1k, False: 35.3k]
  ------------------
  662|  17.1k|		{
  663|  17.1k|			m_FirstAdditional = dynamic_cast<DnsResource*>(resource);
  664|  17.1k|			break;
  665|      0|		}
  666|      0|		default:
  ------------------
  |  Branch (666:3): [True: 0, False: 52.4k]
  ------------------
  667|      0|			return;
  668|  52.4k|		}
  669|  52.4k|	}
_ZN4pcpp8DnsLayer11addResourceENS_15DnsResourceTypeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  673|  38.7k|	{
  674|  38.7k|		if (data == nullptr)
  ------------------
  |  Branch (674:7): [True: 0, False: 38.7k]
  ------------------
  675|      0|		{
  676|      0|			PCPP_LOG_ERROR("Given data is nullptr");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  677|      0|			return nullptr;
  678|      0|		}
  679|       |
  680|       |		// The temporary buffer holds the encoded name and the fixed RR header. The encoded name is at most the decoded
  681|       |		// name plus 2 bytes and the fixed RR header is 10 bytes long. The RDATA is added by setData() after the new
  682|       |		// resource is attached to the layer, so the buffer doesn't need to leave room for it
  683|  38.7k|		std::vector<uint8_t> newResourceRawData(name.size() + 2 + 10, 0);
  684|       |
  685|  38.7k|		DnsResource* newResource = new DnsResource(newResourceRawData.data(), resType);
  686|       |
  687|  38.7k|		newResource->setDnsClass(dnsClass);
  688|       |
  689|  38.7k|		newResource->setDnsType(dnsType);
  690|       |
  691|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  692|  38.7k|		newResource->setName(name);
  693|       |
  694|  38.7k|		newResource->setTTL(ttl);
  695|       |
  696|  38.7k|		size_t newResourceOffsetInLayer = getBasicHeaderSize();
  697|  38.7k|		IDnsResource* curResource = m_ResourceList;
  698|  57.9k|		while (curResource != nullptr && curResource->getType() <= resType)
  ------------------
  |  Branch (698:10): [True: 45.8k, False: 12.0k]
  |  Branch (698:36): [True: 45.7k, False: 148]
  ------------------
  699|  45.7k|		{
  700|  45.7k|			newResourceOffsetInLayer += curResource->getSize();
  701|       |
  702|  45.7k|			if (newResourceOffsetInLayer > m_DataLen)
  ------------------
  |  Branch (702:8): [True: 282, False: 45.4k]
  ------------------
  703|    282|			{
  704|       |				// This possibly means that the DNS layer has been created from a malformed packet.
  705|    282|				PCPP_LOG_ERROR("Couldn't add resource! DNS Layer is malformed and contains out of bounds resources.");
  ------------------
  |  |  445|    282|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|    282|	do                                                                                                                 \
  |  |  |  |  415|    282|	{                                                                                                                  \
  |  |  |  |  416|    282|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    282|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    282|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 282, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|    282|		{                                                                                                              \
  |  |  |  |  419|    282|			auto ctx =                                                                                                 \
  |  |  |  |  420|    282|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    282|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|    282|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|    282|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|    282|		}                                                                                                              \
  |  |  |  |  424|    282|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 282]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  706|    282|				delete newResource;
  707|    282|				return nullptr;
  708|    282|			}
  709|       |
  710|  45.4k|			IDnsResource* nextResource = curResource->getNextResource();
  711|  45.4k|			if (nextResource == nullptr || nextResource->getType() > resType)
  ------------------
  |  Branch (711:8): [True: 24.0k, False: 21.3k]
  |  Branch (711:35): [True: 2.12k, False: 19.2k]
  ------------------
  712|  26.2k|				break;
  713|  19.2k|			curResource = nextResource;
  714|  19.2k|		}
  715|       |
  716|       |		// set next resource for new resource. This must happen here for extendLayer to succeed
  717|  38.4k|		if (curResource != nullptr)
  ------------------
  |  Branch (717:7): [True: 26.3k, False: 12.0k]
  ------------------
  718|  26.3k|		{
  719|  26.3k|			if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (719:8): [True: 148, False: 26.2k]
  ------------------
  720|    148|				newResource->setNextResource(m_ResourceList);
  721|  26.2k|			else
  722|  26.2k|				newResource->setNextResource(curResource->getNextResource());
  723|  26.3k|		}
  724|  12.0k|		else
  725|  12.0k|		{
  726|       |			// curResource != nullptr
  727|  12.0k|			newResource->setNextResource(m_ResourceList);
  728|  12.0k|		}
  729|       |
  730|       |		// extend layer to make room for the new resource
  731|  38.4k|		if (!extendLayer(newResourceOffsetInLayer, newResource->getSize(), newResource))
  ------------------
  |  Branch (731:7): [True: 10.6k, False: 27.8k]
  ------------------
  732|  10.6k|		{
  733|  10.6k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addResource failed");
  ------------------
  |  |  445|  10.6k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  10.6k|	do                                                                                                                 \
  |  |  |  |  415|  10.6k|	{                                                                                                                  \
  |  |  |  |  416|  10.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  10.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  10.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 10.6k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  10.6k|		{                                                                                                              \
  |  |  |  |  419|  10.6k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  10.6k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  10.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  10.6k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  10.6k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  10.6k|		}                                                                                                              \
  |  |  |  |  424|  10.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 10.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  734|  10.6k|			delete newResource;
  735|  10.6k|			return nullptr;
  736|  10.6k|		}
  737|       |
  738|       |		// connect the new resource to layer
  739|  27.8k|		newResource->setDnsLayer(this, newResourceOffsetInLayer);
  740|       |
  741|       |		// connect the new resource to the layer's resource list
  742|  27.8k|		if (curResource != nullptr)
  ------------------
  |  Branch (742:7): [True: 22.8k, False: 4.92k]
  ------------------
  743|  22.8k|		{
  744|       |			// if the new resource should be the first resource in the packet, its next resource is already the current
  745|       |			// first resource, which must not point back to it
  746|  22.8k|			if (curResource->getType() <= newResource->getType())
  ------------------
  |  Branch (746:8): [True: 22.8k, False: 25]
  ------------------
  747|  22.8k|			{
  748|  22.8k|				curResource->setNextResource(newResource);
  749|  22.8k|			}
  750|       |			// this means the new resource is the first of it's type
  751|  22.8k|			if (curResource->getType() < newResource->getType())
  ------------------
  |  Branch (751:8): [True: 20.5k, False: 2.30k]
  ------------------
  752|  20.5k|			{
  753|  20.5k|				setFirstResource(resType, newResource);
  754|  20.5k|			}
  755|       |			// this means the new resource should be the first resource in the packet
  756|  2.30k|			else if (curResource->getType() > newResource->getType())
  ------------------
  |  Branch (756:13): [True: 25, False: 2.28k]
  ------------------
  757|     25|			{
  758|     25|				m_ResourceList = newResource;
  759|       |
  760|     25|				setFirstResource(resType, newResource);
  761|     25|			}
  762|  22.8k|		}
  763|  4.92k|		else  // curResource != nullptr, meaning this is the first resource in layer
  764|  4.92k|		{
  765|  4.92k|			m_ResourceList = newResource;
  766|       |
  767|  4.92k|			setFirstResource(resType, newResource);
  768|  4.92k|		}
  769|       |
  770|       |		// set the resource data after the resource is attached to the layer, so setData() can extend the layer
  771|       |		// by the size of the serialized RDATA
  772|  27.8k|		if (!newResource->setData(data))
  ------------------
  |  Branch (772:7): [True: 0, False: 27.8k]
  ------------------
  773|      0|		{
  774|      0|			PCPP_LOG_ERROR("Couldn't set new resource data");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  775|      0|			if (!removeResource(newResource))
  ------------------
  |  Branch (775:8): [True: 0, False: 0]
  ------------------
  776|      0|				PCPP_LOG_ERROR("Couldn't remove the new resource from the DNS layer");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  777|      0|			return nullptr;
  778|      0|		}
  779|       |
  780|  27.8k|		return newResource;
  781|  27.8k|	}
_ZN4pcpp8DnsLayer8addQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassE:
  784|  12.9k|	{
  785|       |		// create new query on temporary buffer
  786|  12.9k|		uint8_t newQueryRawData[256];
  787|  12.9k|		DnsQuery* newQuery = new DnsQuery(newQueryRawData);
  788|       |
  789|  12.9k|		newQuery->setDnsClass(dnsClass);
  790|  12.9k|		newQuery->setDnsType(dnsType);
  791|       |
  792|       |		// cannot return false since layer shouldn't be extended or shortened in this stage
  793|  12.9k|		newQuery->setName(name);
  794|       |
  795|       |		// find the offset in the layer to insert the new query
  796|  12.9k|		size_t newQueryOffsetInLayer = getBasicHeaderSize();
  797|  12.9k|		DnsQuery* curQuery = getFirstQuery();
  798|  15.8k|		while (curQuery != nullptr)
  ------------------
  |  Branch (798:10): [True: 11.5k, False: 4.24k]
  ------------------
  799|  11.5k|		{
  800|  11.5k|			newQueryOffsetInLayer += curQuery->getSize();
  801|  11.5k|			DnsQuery* nextQuery = getNextQuery(curQuery);
  802|  11.5k|			if (nextQuery == nullptr)
  ------------------
  |  Branch (802:8): [True: 8.67k, False: 2.91k]
  ------------------
  803|  8.67k|				break;
  804|  2.91k|			curQuery = nextQuery;
  805|  2.91k|		}
  806|       |
  807|       |		// set next resource for new query. This must happen here for extendLayer to succeed
  808|  12.9k|		if (curQuery != nullptr)
  ------------------
  |  Branch (808:7): [True: 8.67k, False: 4.24k]
  ------------------
  809|  8.67k|			newQuery->setNextResource(curQuery->getNextResource());
  810|  4.24k|		else
  811|  4.24k|			newQuery->setNextResource(m_ResourceList);
  812|       |
  813|       |		// extend layer to make room for the new query
  814|  12.9k|		if (!extendLayer(newQueryOffsetInLayer, newQuery->getSize(), newQuery))
  ------------------
  |  Branch (814:7): [True: 3.66k, False: 9.25k]
  ------------------
  815|  3.66k|		{
  816|  3.66k|			PCPP_LOG_ERROR("Couldn't extend DNS layer, addQuery failed");
  ------------------
  |  |  445|  3.66k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  3.66k|	do                                                                                                                 \
  |  |  |  |  415|  3.66k|	{                                                                                                                  \
  |  |  |  |  416|  3.66k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  3.66k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.66k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 3.66k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  3.66k|		{                                                                                                              \
  |  |  |  |  419|  3.66k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  3.66k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  3.66k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  3.66k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  3.66k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  3.66k|		}                                                                                                              \
  |  |  |  |  424|  3.66k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 3.66k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|  3.66k|			delete newQuery;
  818|  3.66k|			return nullptr;
  819|  3.66k|		}
  820|       |
  821|       |		// connect the new query to layer
  822|  9.25k|		newQuery->setDnsLayer(this, newQueryOffsetInLayer);
  823|       |
  824|       |		// connect the new query to the layer's resource list
  825|  9.25k|		if (curQuery != nullptr)
  ------------------
  |  Branch (825:7): [True: 7.48k, False: 1.76k]
  ------------------
  826|  7.48k|			curQuery->setNextResource(newQuery);
  827|  1.76k|		else  // curQuery == nullptr, meaning this is the first query
  828|  1.76k|		{
  829|  1.76k|			m_ResourceList = newQuery;
  830|  1.76k|			m_FirstQuery = newQuery;
  831|  1.76k|		}
  832|       |
  833|       |		// increase number of queries
  834|  9.25k|		getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() + 1);
  835|       |
  836|  9.25k|		return newQuery;
  837|  12.9k|	}
_ZN4pcpp8DnsLayer11removeQueryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  848|  25.8k|	{
  849|  25.8k|		DnsQuery* queryToRemove = getQuery(queryNameToRemove, exactMatch);
  850|  25.8k|		if (queryToRemove == nullptr)
  ------------------
  |  Branch (850:7): [True: 16.6k, False: 9.20k]
  ------------------
  851|  16.6k|		{
  852|  16.6k|			PCPP_LOG_DEBUG("Query not found");
  ------------------
  |  |  427|  16.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  16.6k|	do                                                                                                                 \
  |  |  |  |  415|  16.6k|	{                                                                                                                  \
  |  |  |  |  416|  16.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  16.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 16.6k]
  |  |  |  |  ------------------
  |  |  |  |  418|  16.6k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  16.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 16.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  853|  16.6k|			return false;
  854|  16.6k|		}
  855|       |
  856|  9.20k|		return removeQuery(queryToRemove);
  857|  25.8k|	}
_ZN4pcpp8DnsLayer11removeQueryEPNS_8DnsQueryE:
  860|  9.20k|	{
  861|  9.20k|		bool res = removeResource(queryToRemove);
  862|  9.20k|		if (res)
  ------------------
  |  Branch (862:7): [True: 9.20k, False: 0]
  ------------------
  863|  9.20k|		{
  864|       |			// decrease number of query records
  865|  9.20k|			getDnsHeader()->numberOfQuestions = htobe16(getQueryCount() - 1);
  866|  9.20k|		}
  867|       |
  868|  9.20k|		return res;
  869|  9.20k|	}
_ZN4pcpp8DnsLayer9addAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  873|  12.9k|	{
  874|  12.9k|		DnsResource* res = addResource(DnsAnswerType, name, dnsType, dnsClass, ttl, data);
  875|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (875:7): [True: 9.25k, False: 3.66k]
  ------------------
  876|  9.25k|		{
  877|       |			// increase number of answer records
  878|  9.25k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() + 1);
  879|  9.25k|		}
  880|       |
  881|  12.9k|		return res;
  882|  12.9k|	}
_ZN4pcpp8DnsLayer12removeAnswerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  894|  25.8k|	{
  895|  25.8k|		DnsResource* answerToRemove = getAnswer(answerNameToRemove, exactMatch);
  896|  25.8k|		if (answerToRemove == nullptr)
  ------------------
  |  Branch (896:7): [True: 16.7k, False: 9.13k]
  ------------------
  897|  16.7k|		{
  898|  16.7k|			PCPP_LOG_DEBUG("Answer record not found");
  ------------------
  |  |  427|  16.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  16.7k|	do                                                                                                                 \
  |  |  |  |  415|  16.7k|	{                                                                                                                  \
  |  |  |  |  416|  16.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  16.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.7k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 16.7k]
  |  |  |  |  ------------------
  |  |  |  |  418|  16.7k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  16.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 16.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  899|  16.7k|			return false;
  900|  16.7k|		}
  901|       |
  902|  9.13k|		return removeAnswer(answerToRemove);
  903|  25.8k|	}
_ZN4pcpp8DnsLayer12removeAnswerEPNS_11DnsResourceE:
  906|  9.13k|	{
  907|  9.13k|		bool res = removeResource(answerToRemove);
  908|  9.13k|		if (res)
  ------------------
  |  Branch (908:7): [True: 9.12k, False: 3]
  ------------------
  909|  9.12k|		{
  910|       |			// decrease number of answer records
  911|  9.12k|			getDnsHeader()->numberOfAnswers = htobe16(getAnswerCount() - 1);
  912|  9.12k|		}
  913|       |
  914|  9.13k|		return res;
  915|  9.13k|	}
_ZN4pcpp8DnsLayer12addAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  919|  12.9k|	{
  920|  12.9k|		DnsResource* res = addResource(DnsAuthorityType, name, dnsType, dnsClass, ttl, data);
  921|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (921:7): [True: 9.27k, False: 3.64k]
  ------------------
  922|  9.27k|		{
  923|       |			// increase number of authority records
  924|  9.27k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() + 1);
  925|  9.27k|		}
  926|       |
  927|  12.9k|		return res;
  928|  12.9k|	}
_ZN4pcpp8DnsLayer15removeAuthorityERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  940|  25.8k|	{
  941|  25.8k|		DnsResource* authorityToRemove = getAuthority(authorityNameToRemove, exactMatch);
  942|  25.8k|		if (authorityToRemove == nullptr)
  ------------------
  |  Branch (942:7): [True: 16.6k, False: 9.15k]
  ------------------
  943|  16.6k|		{
  944|  16.6k|			PCPP_LOG_DEBUG("Authority not found");
  ------------------
  |  |  427|  16.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  16.6k|	do                                                                                                                 \
  |  |  |  |  415|  16.6k|	{                                                                                                                  \
  |  |  |  |  416|  16.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  16.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 16.6k]
  |  |  |  |  ------------------
  |  |  |  |  418|  16.6k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  16.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 16.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  945|  16.6k|			return false;
  946|  16.6k|		}
  947|       |
  948|  9.15k|		return removeAuthority(authorityToRemove);
  949|  25.8k|	}
_ZN4pcpp8DnsLayer15removeAuthorityEPNS_11DnsResourceE:
  952|  9.15k|	{
  953|  9.15k|		bool res = removeResource(authorityToRemove);
  954|  9.15k|		if (res)
  ------------------
  |  Branch (954:7): [True: 9.14k, False: 2]
  ------------------
  955|  9.14k|		{
  956|       |			// decrease number of authority records
  957|  9.14k|			getDnsHeader()->numberOfAuthority = htobe16(getAuthorityCount() - 1);
  958|  9.14k|		}
  959|       |
  960|  9.15k|		return res;
  961|  9.15k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeENS_8DnsClassEjPNS_16IDnsResourceDataE:
  965|  12.9k|	{
  966|  12.9k|		DnsResource* res = addResource(DnsAdditionalType, name, dnsType, dnsClass, ttl, data);
  967|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (967:7): [True: 9.28k, False: 3.62k]
  ------------------
  968|  9.28k|		{
  969|       |			// increase number of authority records
  970|  9.28k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() + 1);
  971|  9.28k|		}
  972|       |
  973|  12.9k|		return res;
  974|  12.9k|	}
_ZN4pcpp8DnsLayer19addAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_7DnsTypeEtjPNS_16IDnsResourceDataE:
  978|  12.9k|	{
  979|  12.9k|		DnsResource* res = addAdditionalRecord(name, dnsType, DNS_CLASS_ANY, customData2, data);
  980|  12.9k|		if (res != nullptr)
  ------------------
  |  Branch (980:7): [True: 9.28k, False: 3.62k]
  ------------------
  981|  9.28k|		{
  982|  9.28k|			res->setCustomDnsClass(customData1);
  983|  9.28k|		}
  984|       |
  985|  12.9k|		return res;
  986|  12.9k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  999|  25.8k|	{
 1000|  25.8k|		DnsResource* additionalRecordToRemove = getAdditionalRecord(additionalRecordNameToRemove, exactMatch);
 1001|  25.8k|		if (additionalRecordToRemove == nullptr)
  ------------------
  |  Branch (1001:7): [True: 16.6k, False: 9.16k]
  ------------------
 1002|  16.6k|		{
 1003|  16.6k|			PCPP_LOG_DEBUG("Additional record not found");
  ------------------
  |  |  427|  16.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  16.6k|	do                                                                                                                 \
  |  |  |  |  415|  16.6k|	{                                                                                                                  \
  |  |  |  |  416|  16.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  16.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  16.6k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 16.6k]
  |  |  |  |  ------------------
  |  |  |  |  418|  16.6k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  16.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 16.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1004|  16.6k|			return false;
 1005|  16.6k|		}
 1006|       |
 1007|  9.16k|		return removeAdditionalRecord(additionalRecordToRemove);
 1008|  25.8k|	}
_ZN4pcpp8DnsLayer22removeAdditionalRecordEPNS_11DnsResourceE:
 1011|  9.16k|	{
 1012|  9.16k|		bool res = removeResource(additionalRecordToRemove);
 1013|  9.16k|		if (res)
  ------------------
  |  Branch (1013:7): [True: 9.16k, False: 3]
  ------------------
 1014|  9.16k|		{
 1015|       |			// decrease number of additional records
 1016|  9.16k|			getDnsHeader()->numberOfAdditional = htobe16(getAdditionalRecordCount() - 1);
 1017|  9.16k|		}
 1018|       |
 1019|  9.16k|		return res;
 1020|  9.16k|	}
_ZN4pcpp8DnsLayer14removeResourceEPNS_12IDnsResourceE:
 1023|  36.6k|	{
 1024|  36.6k|		if (resourceToRemove == nullptr)
  ------------------
  |  Branch (1024:7): [True: 0, False: 36.6k]
  ------------------
 1025|      0|		{
 1026|      0|			PCPP_LOG_DEBUG("resourceToRemove cannot be nullptr");
  ------------------
  |  |  427|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1027|      0|			return false;
 1028|      0|		}
 1029|       |
 1030|       |		// find the resource preceding resourceToRemove
 1031|  36.6k|		IDnsResource* prevResource = m_ResourceList;
 1032|       |
 1033|  36.6k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (1033:7): [True: 30.1k, False: 6.54k]
  ------------------
 1034|  30.1k|		{
 1035|  43.5k|			while (prevResource != nullptr)
  ------------------
  |  Branch (1035:11): [True: 43.5k, False: 0]
  ------------------
 1036|  43.5k|			{
 1037|  43.5k|				IDnsResource* temp = prevResource->getNextResource();
 1038|  43.5k|				if (temp == resourceToRemove)
  ------------------
  |  Branch (1038:9): [True: 30.1k, False: 13.4k]
  ------------------
 1039|  30.1k|					break;
 1040|       |
 1041|  13.4k|				prevResource = temp;
 1042|  13.4k|			}
 1043|  30.1k|		}
 1044|       |
 1045|  36.6k|		if (prevResource == nullptr)
  ------------------
  |  Branch (1045:7): [True: 0, False: 36.6k]
  ------------------
 1046|      0|		{
 1047|      0|			PCPP_LOG_DEBUG("Resource not found");
  ------------------
  |  |  427|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1048|      0|			return false;
 1049|      0|		}
 1050|       |
 1051|       |		// shorten the layer and fix offset in layer for all next DNS resources in the packet
 1052|  36.6k|		if (!shortenLayer(resourceToRemove->m_OffsetInLayer, resourceToRemove->getSize(), resourceToRemove))
  ------------------
  |  Branch (1052:7): [True: 8, False: 36.6k]
  ------------------
 1053|      8|		{
 1054|      8|			PCPP_LOG_ERROR("Couldn't shorten the DNS layer, resource cannot be removed");
  ------------------
  |  |  445|      8|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      8|	do                                                                                                                 \
  |  |  |  |  415|      8|	{                                                                                                                  \
  |  |  |  |  416|      8|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      8|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      8|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 8, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      8|		{                                                                                                              \
  |  |  |  |  419|      8|			auto ctx =                                                                                                 \
  |  |  |  |  420|      8|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      8|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|      8|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      8|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      8|		}                                                                                                              \
  |  |  |  |  424|      8|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 8]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1055|      8|			return false;
 1056|      8|		}
 1057|       |
 1058|       |		// remove resourceToRemove from the resources linked list
 1059|  36.6k|		if (m_ResourceList != resourceToRemove)
  ------------------
  |  Branch (1059:7): [True: 30.1k, False: 6.53k]
  ------------------
 1060|  30.1k|		{
 1061|  30.1k|			prevResource->setNextResource(resourceToRemove->getNextResource());
 1062|  30.1k|		}
 1063|  6.53k|		else
 1064|  6.53k|		{
 1065|  6.53k|			m_ResourceList = resourceToRemove->getNextResource();
 1066|  6.53k|		}
 1067|       |
 1068|       |		// check whether resourceToRemove was the first of its type
 1069|  36.6k|		if (getFirstResource(resourceToRemove->getType()) == resourceToRemove)
  ------------------
  |  Branch (1069:7): [True: 26.8k, False: 9.76k]
  ------------------
 1070|  26.8k|		{
 1071|  26.8k|			IDnsResource* nextResource = resourceToRemove->getNextResource();
 1072|  26.8k|			if (nextResource != nullptr && nextResource->getType() == resourceToRemove->getType())
  ------------------
  |  Branch (1072:8): [True: 1.79k, False: 25.0k]
  |  Branch (1072:35): [True: 8, False: 1.78k]
  ------------------
 1073|      8|				setFirstResource(resourceToRemove->getType(), nextResource);
 1074|  26.8k|			else
 1075|  26.8k|				setFirstResource(resourceToRemove->getType(), nullptr);
 1076|  26.8k|		}
 1077|       |
 1078|       |		// free resourceToRemove memory
 1079|  36.6k|		delete resourceToRemove;
 1080|       |
 1081|  36.6k|		return true;
 1082|  36.6k|	}
_ZN4pcpp15DnsOverTcpLayer19setTcpMessageLengthEt:
 1094|  2.58k|	{
 1095|       |		((uint16_t*)m_Data)[0] = htobe16(value);
 1096|  2.58k|	}
_ZN4pcpp15DnsOverTcpLayer22computeCalculateFieldsEv:
 1099|  2.58k|	{
 1100|  2.58k|		setTcpMessageLength(m_DataLen - sizeof(uint16_t));
 1101|  2.58k|	}

_ZN4pcpp12IDnsResourceC2EPNS_8DnsLayerEm:
   14|   156k|	    : m_DnsLayer(dnsLayer), m_OffsetInLayer(offsetInLayer), m_NextResource(nullptr), m_ExternalRawData(nullptr)
   15|   156k|	{
   16|   156k|		char decodedName[4096];
   17|   156k|		m_NameLength = decodeName((const char*)getRawData(), decodedName);
   18|   156k|		if (m_NameLength > 0)
  ------------------
  |  Branch (18:7): [True: 135k, False: 20.3k]
  ------------------
   19|   135k|			m_DecodedName = decodedName;
   20|   156k|	}
_ZN4pcpp12IDnsResourceC2EPh:
   23|  51.6k|	    : m_DnsLayer(nullptr), m_OffsetInLayer(0), m_NextResource(nullptr), m_DecodedName(""), m_NameLength(0),
   24|  51.6k|	      m_ExternalRawData(emptyRawData)
   25|  51.6k|	{}
_ZNK4pcpp12IDnsResource10getRawDataEv:
   28|   654k|	{
   29|   654k|		if (m_DnsLayer == nullptr)
  ------------------
  |  Branch (29:7): [True: 298k, False: 355k]
  ------------------
   30|   298k|			return m_ExternalRawData;
   31|       |
   32|   355k|		return m_DnsLayer->m_Data + m_OffsetInLayer;
   33|   654k|	}
_ZN4pcpp12IDnsResource10decodeNameEPKcPci:
   54|   269k|	{
   55|   269k|		size_t encodedNameLength = 0;
   56|   269k|		size_t decodedNameLength = 0;
   57|   269k|		char* resultPtr = result;
   58|   269k|		resultPtr[0] = 0;
   59|       |
   60|   269k|		size_t curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
   61|   269k|		if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (61:7): [True: 6.93k, False: 262k]
  ------------------
   62|  6.93k|			return encodedNameLength;
   63|       |
   64|   262k|		if (iteration > 20)
  ------------------
  |  Branch (64:7): [True: 4.54k, False: 257k]
  ------------------
   65|  4.54k|		{
   66|  4.54k|			return encodedNameLength;
   67|  4.54k|		}
   68|       |
   69|   257k|		uint8_t wordLength = encodedName[0];
   70|       |
   71|       |		// A string to parse
   72|   640k|		while (wordLength != 0)
  ------------------
  |  Branch (72:10): [True: 541k, False: 99.8k]
  ------------------
   73|   541k|		{
   74|       |			// A pointer to another place in the packet
   75|   541k|			if ((wordLength & 0xc0) == 0xc0)
  ------------------
  |  Branch (75:8): [True: 127k, False: 413k]
  ------------------
   76|   127k|			{
   77|   127k|				if (curOffsetInLayer + 2 > m_DnsLayer->m_DataLen || encodedNameLength > 255)
  ------------------
  |  Branch (77:9): [True: 460, False: 127k]
  |  Branch (77:57): [True: 32, False: 127k]
  ------------------
   78|    492|					return cleanup(resultPtr, result, encodedNameLength);
   79|       |
   80|   127k|				uint16_t offsetInLayer =
   81|   127k|				    (wordLength & 0x3f) * 256 + (0xFF & encodedName[1]) + m_DnsLayer->m_OffsetAdjustment;
   82|   127k|				if (offsetInLayer < sizeof(dnshdr) || offsetInLayer >= m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (82:9): [True: 206, False: 126k]
  |  Branch (82:43): [True: 13.6k, False: 113k]
  ------------------
   83|  13.8k|				{
   84|  13.8k|					PCPP_LOG_ERROR("DNS parsing error: name pointer is illegal");
  ------------------
  |  |  445|  13.8k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  13.8k|	do                                                                                                                 \
  |  |  |  |  415|  13.8k|	{                                                                                                                  \
  |  |  |  |  416|  13.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  13.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.8k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 13.8k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  13.8k|		{                                                                                                              \
  |  |  |  |  419|  13.8k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  13.8k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  13.8k|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  13.8k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  13.8k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  13.8k|		}                                                                                                              \
  |  |  |  |  424|  13.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 13.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   85|  13.8k|					return 0;
   86|  13.8k|				}
   87|       |
   88|   113k|				char tempResult[4096];
   89|   113k|				memset(tempResult, 0, sizeof(tempResult));
   90|   113k|				int i = 0;
   91|   113k|				decodeName((const char*)(m_DnsLayer->m_Data + offsetInLayer), tempResult, iteration + 1);
   92|  10.0M|				while (tempResult[i] != 0 && decodedNameLength < 255)
  ------------------
  |  Branch (92:12): [True: 9.95M, False: 112k]
  |  Branch (92:34): [True: 9.95M, False: 413]
  ------------------
   93|  9.95M|				{
   94|  9.95M|					resultPtr[0] = tempResult[i++];
   95|  9.95M|					resultPtr++;
   96|  9.95M|					decodedNameLength++;
   97|  9.95M|				}
   98|       |
   99|   113k|				resultPtr[0] = 0;
  100|       |
  101|       |				// in this case the length of the pointer is: 1 byte for 0xc0 + 1 byte for the offset itself
  102|   113k|				return encodedNameLength + sizeof(uint16_t);
  103|   127k|			}
  104|   413k|			else
  105|   413k|			{
  106|       |				// return if next word would be outside of the DNS layer or overflow the buffer behind resultPtr
  107|   413k|				if (curOffsetInLayer + wordLength + 1 > m_DnsLayer->m_DataLen || encodedNameLength + wordLength > 255)
  ------------------
  |  Branch (107:9): [True: 28.7k, False: 384k]
  |  Branch (107:70): [True: 194, False: 384k]
  ------------------
  108|  28.9k|				{
  109|       |					// add the last '\0' to the decoded string
  110|  28.9k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (110:10): [True: 35, False: 28.8k]
  ------------------
  111|     35|					{
  112|     35|						resultPtr--;
  113|       |						// cppcheck-suppress unreadVariable
  114|     35|						decodedNameLength--;
  115|     35|					}
  116|  28.8k|					else
  117|  28.8k|					{
  118|  28.8k|						encodedNameLength++;
  119|  28.8k|					}
  120|       |
  121|  28.9k|					resultPtr[0] = 0;
  122|  28.9k|					return encodedNameLength;
  123|  28.9k|				}
  124|       |
  125|   384k|				memcpy(resultPtr, encodedName + 1, wordLength);
  126|   384k|				resultPtr += wordLength;
  127|   384k|				resultPtr[0] = '.';
  128|   384k|				resultPtr++;
  129|   384k|				decodedNameLength += wordLength + 1;
  130|   384k|				encodedName += wordLength + 1;
  131|   384k|				encodedNameLength += wordLength + 1;
  132|       |
  133|   384k|				curOffsetInLayer = (uint8_t*)encodedName - m_DnsLayer->m_Data;
  134|   384k|				if (curOffsetInLayer + 1 > m_DnsLayer->m_DataLen)
  ------------------
  |  Branch (134:9): [True: 1.71k, False: 382k]
  ------------------
  135|  1.71k|				{
  136|       |					// add the last '\0' to the decoded string
  137|  1.71k|					if (encodedNameLength == 256)
  ------------------
  |  Branch (137:10): [True: 0, False: 1.71k]
  ------------------
  138|      0|					{
  139|       |						// cppcheck-suppress unreadVariable
  140|      0|						decodedNameLength--;
  141|      0|						resultPtr--;
  142|      0|					}
  143|  1.71k|					else
  144|  1.71k|					{
  145|  1.71k|						encodedNameLength++;
  146|  1.71k|					}
  147|       |
  148|  1.71k|					resultPtr[0] = 0;
  149|  1.71k|					return encodedNameLength;
  150|  1.71k|				}
  151|       |
  152|   382k|				wordLength = encodedName[0];
  153|   382k|			}
  154|   541k|		}
  155|       |
  156|  99.8k|		return cleanup(resultPtr, result, encodedNameLength);
  157|   257k|	}
_ZN4pcpp12IDnsResource10encodeNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPcRm:
  160|  51.6k|	{
  161|  51.6k|		resultLen = 0;
  162|  51.6k|		std::stringstream strstream(decodedName);
  163|  51.6k|		std::string word;
  164|   193k|		while (getline(strstream, word, '.'))
  ------------------
  |  Branch (164:10): [True: 142k, False: 51.6k]
  ------------------
  165|   142k|		{
  166|       |			// pointer to a different hostname in the packet
  167|   142k|			if (word[0] == '#')
  ------------------
  |  Branch (167:8): [True: 0, False: 142k]
  ------------------
  168|      0|			{
  169|       |				// convert the number from string to int
  170|      0|				std::stringstream stream(word.substr(1));
  171|      0|				int pointerInPacket = 0;
  172|      0|				stream >> pointerInPacket;
  173|       |
  174|       |				// verify it's indeed a number and that is in the range of [0-255]
  175|      0|				if (stream.fail() || pointerInPacket < 0 || pointerInPacket > 0xff)
  ------------------
  |  Branch (175:9): [True: 0, False: 0]
  |  Branch (175:26): [True: 0, False: 0]
  |  Branch (175:49): [True: 0, False: 0]
  ------------------
  176|      0|				{
  177|      0|					PCPP_LOG_ERROR("Error encoding the string '" << decodedName << "'");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|      0|					return;
  179|      0|				}
  180|       |
  181|       |				// set the pointer to the encoded string result
  182|      0|				result[0] = (uint8_t)0xc0;
  183|      0|				result[1] = (uint8_t)pointerInPacket;
  184|      0|				resultLen += 2;
  185|      0|				return;  // pointer always comes last
  186|      0|			}
  187|       |
  188|   142k|			result[0] = word.length();
  189|   142k|			result++;
  190|   142k|			memcpy(result, word.c_str(), word.length());
  191|   142k|			result += word.length();
  192|   142k|			resultLen += word.length() + 1;
  193|   142k|		}
  194|       |
  195|  51.6k|		result[0] = 0;
  196|  51.6k|		resultLen++;
  197|  51.6k|	}
_ZNK4pcpp12IDnsResource10getDnsTypeEv:
  200|  27.8k|	{
  201|  27.8k|		uint16_t dnsType = *reinterpret_cast<uint16_t*>(getRawData() + m_NameLength);
  202|       |		return static_cast<DnsType>(be16toh(dnsType));
  203|  27.8k|	}
_ZN4pcpp12IDnsResource10setDnsTypeENS_7DnsTypeE:
  206|  51.6k|	{
  207|       |		uint16_t newTypeAsInt = htobe16((uint16_t)newType);
  208|  51.6k|		memcpy(getRawData() + m_NameLength, &newTypeAsInt, sizeof(uint16_t));
  209|  51.6k|	}
_ZN4pcpp12IDnsResource11setDnsClassENS_8DnsClassE:
  218|  51.6k|	{
  219|       |		uint16_t newClassAsInt = htobe16((uint16_t)newClass);
  220|  51.6k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &newClassAsInt, sizeof(uint16_t));
  221|  51.6k|	}
_ZN4pcpp12IDnsResource7setNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  224|  51.6k|	{
  225|  51.6k|		char encodedName[4096];
  226|  51.6k|		size_t encodedNameLen = 0;
  227|  51.6k|		encodeName(newName, encodedName, encodedNameLen);
  228|  51.6k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (228:7): [True: 0, False: 51.6k]
  ------------------
  229|      0|		{
  230|      0|			if (encodedNameLen > m_NameLength)
  ------------------
  |  Branch (230:8): [True: 0, False: 0]
  ------------------
  231|      0|			{
  232|      0|				if (!m_DnsLayer->extendLayer(m_OffsetInLayer, encodedNameLen - m_NameLength, this))
  ------------------
  |  Branch (232:9): [True: 0, False: 0]
  ------------------
  233|      0|				{
  234|      0|					PCPP_LOG_ERROR("Couldn't set name for DNS query, unable to extend layer");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  235|      0|					return false;
  236|      0|				}
  237|      0|			}
  238|      0|			else if (encodedNameLen < m_NameLength)
  ------------------
  |  Branch (238:13): [True: 0, False: 0]
  ------------------
  239|      0|			{
  240|      0|				if (!m_DnsLayer->shortenLayer(m_OffsetInLayer, m_NameLength - encodedNameLen, this))
  ------------------
  |  Branch (240:9): [True: 0, False: 0]
  ------------------
  241|      0|				{
  242|      0|					PCPP_LOG_ERROR("Couldn't set name for DNS query, unable to shorten layer");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  243|      0|					return false;
  244|      0|				}
  245|      0|			}
  246|      0|		}
  247|  51.6k|		else
  248|  51.6k|		{
  249|  51.6k|			size_t size = getSize();
  250|  51.6k|			char* tempData = new char[size];
  251|  51.6k|			memcpy(tempData, m_ExternalRawData, size);
  252|  51.6k|			memcpy(m_ExternalRawData + encodedNameLen, tempData, size);
  253|  51.6k|			delete[] tempData;
  254|  51.6k|		}
  255|       |
  256|  51.6k|		memcpy(getRawData(), encodedName, encodedNameLen);
  257|  51.6k|		m_NameLength = encodedNameLen;
  258|  51.6k|		m_DecodedName = newName;
  259|       |
  260|  51.6k|		return true;
  261|  51.6k|	}
_ZN4pcpp12IDnsResource11setDnsLayerEPNS_8DnsLayerEm:
  264|  37.0k|	{
  265|  37.0k|		memcpy(dnsLayer->m_Data + offsetInLayer, m_ExternalRawData, getSize());
  266|  37.0k|		m_DnsLayer = dnsLayer;
  267|  37.0k|		m_OffsetInLayer = offsetInLayer;
  268|  37.0k|		m_ExternalRawData = nullptr;
  269|  37.0k|	}
_ZN4pcpp11DnsResource6setTTLEj:
  278|  38.7k|	{
  279|       |		newTTL = htobe32(newTTL);
  280|  38.7k|		memcpy(getRawData() + m_NameLength + 2 * sizeof(uint16_t), &newTTL, sizeof(uint32_t));
  281|  38.7k|	}
_ZNK4pcpp11DnsResource13getDataLengthEv:
  284|   224k|	{
  285|       |
  286|   224k|		size_t sizeToRead = m_NameLength + 2 * sizeof(uint16_t) + sizeof(uint32_t);
  287|       |
  288|       |		// Heap buffer overflow may occur here, check boundary of m_DnsLayer->m_Data first
  289|       |		// Due to dataLength which is uint16_t, here m_DnsLayer->m_Data must have at least 2 bytes to read
  290|   224k|		if (m_DnsLayer && m_OffsetInLayer + sizeToRead >= m_DnsLayer->m_DataLen - 1)
  ------------------
  |  Branch (290:7): [True: 119k, False: 105k]
  |  Branch (290:21): [True: 13.2k, False: 106k]
  ------------------
  291|  13.2k|		{
  292|  13.2k|			return 0;
  293|  13.2k|		}
  294|       |
  295|   211k|		uint16_t dataLength = *reinterpret_cast<uint16_t*>(getRawData() + sizeToRead);
  296|       |		return be16toh(dataLength);
  297|   224k|	}
_ZN4pcpp11DnsResource7setDataEPNS_16IDnsResourceDataE:
  344|  27.8k|	{
  345|  27.8k|		if (data == nullptr)
  ------------------
  |  Branch (345:7): [True: 0, False: 27.8k]
  ------------------
  346|      0|		{
  347|      0|			PCPP_LOG_ERROR("Given data is nullptr");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  348|      0|			return false;
  349|      0|		}
  350|       |
  351|  27.8k|		switch (getDnsType())
  352|  27.8k|		{
  353|  18.5k|		case DNS_TYPE_A:
  ------------------
  |  Branch (353:3): [True: 18.5k, False: 9.28k]
  ------------------
  354|  18.5k|		{
  355|  18.5k|			if (!data->isTypeOf<IPv4DnsResourceData>())
  ------------------
  |  Branch (355:8): [True: 0, False: 18.5k]
  ------------------
  356|      0|			{
  357|      0|				PCPP_LOG_ERROR("DNS record is of type A but given data isn't of type IPv4DnsResourceData");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  358|      0|				return false;
  359|      0|			}
  360|  18.5k|			break;
  361|  18.5k|		}
  362|       |
  363|  18.5k|		case DNS_TYPE_AAAA:
  ------------------
  |  Branch (363:3): [True: 0, False: 27.8k]
  ------------------
  364|      0|		{
  365|      0|			if (!data->isTypeOf<IPv6DnsResourceData>())
  ------------------
  |  Branch (365:8): [True: 0, False: 0]
  ------------------
  366|      0|			{
  367|      0|				PCPP_LOG_ERROR("DNS record is of type AAAA but given data isn't of type IPv6DnsResourceData");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  368|      0|				return false;
  369|      0|			}
  370|      0|			break;
  371|      0|		}
  372|       |
  373|      0|		case DNS_TYPE_NS:
  ------------------
  |  Branch (373:3): [True: 0, False: 27.8k]
  ------------------
  374|      0|		case DNS_TYPE_CNAME:
  ------------------
  |  Branch (374:3): [True: 0, False: 27.8k]
  ------------------
  375|      0|		case DNS_TYPE_DNAM:
  ------------------
  |  Branch (375:3): [True: 0, False: 27.8k]
  ------------------
  376|      0|		case DNS_TYPE_PTR:
  ------------------
  |  Branch (376:3): [True: 0, False: 27.8k]
  ------------------
  377|      0|		{
  378|      0|			if (!data->isTypeOf<StringDnsResourceData>())
  ------------------
  |  Branch (378:8): [True: 0, False: 0]
  ------------------
  379|      0|			{
  380|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  381|      0|				    "DNS record is of type NS, CNAME, DNAM or PTR but given data isn't of type StringDnsResourceData");
  382|      0|				return false;
  383|      0|			}
  384|      0|			break;
  385|      0|		}
  386|       |
  387|      0|		case DNS_TYPE_MX:
  ------------------
  |  Branch (387:3): [True: 0, False: 27.8k]
  ------------------
  388|      0|		{
  389|      0|			if (!data->isTypeOf<MxDnsResourceData>())
  ------------------
  |  Branch (389:8): [True: 0, False: 0]
  ------------------
  390|      0|			{
  391|      0|				PCPP_LOG_ERROR("DNS record is of type MX but given data isn't of type MxDnsResourceData");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  392|      0|				return false;
  393|      0|			}
  394|      0|			break;
  395|      0|		}
  396|       |
  397|  9.28k|		default:
  ------------------
  |  Branch (397:3): [True: 9.28k, False: 18.5k]
  ------------------
  398|  9.28k|		{
  399|       |			// do nothing
  400|  9.28k|		}
  401|  27.8k|		}
  402|       |
  403|       |		// convert the IDnsResourceData to a byte array
  404|  27.8k|		std::vector<uint8_t> dataAsByteArr = data->toBytes(this);
  405|  27.8k|		if (dataAsByteArr.empty())
  ------------------
  |  Branch (405:7): [True: 0, False: 27.8k]
  ------------------
  406|      0|		{
  407|      0|			PCPP_LOG_ERROR("Cannot convert DNS resource data to byte array, data is probably invalid");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  408|      0|			return false;
  409|      0|		}
  410|       |
  411|  27.8k|		size_t dataLength = dataAsByteArr.size();
  412|       |
  413|       |		// DNS RR data length is encoded in a 16-bit field. Parentheses around max avoid a clash with the
  414|       |		// Windows max macro
  415|  27.8k|		if (dataLength > (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (415:7): [True: 0, False: 27.8k]
  ------------------
  416|      0|		{
  417|      0|			PCPP_LOG_ERROR("DNS resource data is too large: " << dataLength);
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  418|      0|			return false;
  419|      0|		}
  420|       |
  421|  27.8k|		size_t dataLengthOffset = m_NameLength + (2 * sizeof(uint16_t)) + sizeof(uint32_t);
  422|  27.8k|		size_t dataOffset = dataLengthOffset + sizeof(uint16_t);
  423|       |
  424|  27.8k|		if (m_DnsLayer != nullptr)
  ------------------
  |  Branch (424:7): [True: 27.8k, False: 0]
  ------------------
  425|  27.8k|		{
  426|  27.8k|			size_t curLength = getDataLength();
  427|  27.8k|			if (dataLength > curLength)
  ------------------
  |  Branch (427:8): [True: 27.8k, False: 0]
  ------------------
  428|  27.8k|			{
  429|  27.8k|				if (!m_DnsLayer->extendLayer(m_OffsetInLayer + dataOffset, dataLength - curLength, this))
  ------------------
  |  Branch (429:9): [True: 0, False: 27.8k]
  ------------------
  430|      0|				{
  431|      0|					PCPP_LOG_ERROR("Couldn't set data for DNS query, unable to extend layer");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  432|      0|					return false;
  433|      0|				}
  434|  27.8k|			}
  435|      0|			else if (dataLength < curLength)
  ------------------
  |  Branch (435:13): [True: 0, False: 0]
  ------------------
  436|      0|			{
  437|      0|				if (!m_DnsLayer->shortenLayer(m_OffsetInLayer + dataOffset, curLength - dataLength, this))
  ------------------
  |  Branch (437:9): [True: 0, False: 0]
  ------------------
  438|      0|				{
  439|      0|					PCPP_LOG_ERROR("Couldn't set data for DNS query, unable to shorten layer");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  440|      0|					return false;
  441|      0|				}
  442|      0|			}
  443|  27.8k|		}
  444|       |
  445|       |		// write data to resource
  446|  27.8k|		memcpy(getRawData() + dataOffset, dataAsByteArr.data(), dataLength);
  447|       |		// update data length in resource
  448|  27.8k|		dataLength = htobe16((uint16_t)dataLength);
  449|  27.8k|		memcpy(getRawData() + dataLengthOffset, &dataLength, sizeof(uint16_t));
  450|       |
  451|  27.8k|		return true;
  452|  27.8k|	}
_ZN4pcpp11DnsResource17setCustomDnsClassEt:
  461|  9.28k|	{
  462|  9.28k|		memcpy(getRawData() + m_NameLength + sizeof(uint16_t), &customValue, sizeof(uint16_t));
  463|  9.28k|	}
DnsResource.cpp:_ZN4pcppL7cleanupEPcS0_m:
   36|   100k|	{
   37|       |		// remove the last "."
   38|   100k|		if (resultPtr > result)
  ------------------
  |  Branch (38:7): [True: 75.3k, False: 24.9k]
  ------------------
   39|  75.3k|		{
   40|  75.3k|			result[resultPtr - result - 1] = 0;
   41|  75.3k|		}
   42|       |
   43|   100k|		if (resultPtr - result < 256)
  ------------------
  |  Branch (43:7): [True: 100k, False: 60]
  ------------------
   44|   100k|		{
   45|       |			// add the last '\0' to encodedNameLength
   46|   100k|			resultPtr[0] = 0;
   47|   100k|			encodedNameLength++;
   48|   100k|		}
   49|       |
   50|   100k|		return encodedNameLength;
   51|   100k|	}

_ZNK4pcpp19IPv4DnsResourceData7toBytesEPNS_12IDnsResourceE:
   86|  18.5k|	{
   87|  18.5k|		std::vector<uint8_t> result(sizeof(uint32_t));
   88|  18.5k|		memcpy(result.data(), m_Data.toBytes(), sizeof(uint32_t));
   89|  18.5k|		return result;
   90|  18.5k|	}
_ZN4pcpp22GenericDnsResourceDataC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  176|  12.9k|	{
  177|  12.9k|		m_Data = nullptr;
  178|  12.9k|		uint8_t tempDataArr[2048];
  179|  12.9k|		m_DataLen = hexStringToByteArray(dataAsHexString, tempDataArr, 2048);
  180|  12.9k|		if (m_DataLen != 0)
  ------------------
  |  Branch (180:7): [True: 12.9k, False: 0]
  ------------------
  181|  12.9k|		{
  182|  12.9k|			m_Data = new uint8_t[m_DataLen];
  183|  12.9k|			memcpy(m_Data, tempDataArr, m_DataLen);
  184|  12.9k|		}
  185|  12.9k|	}
_ZNK4pcpp22GenericDnsResourceData7toBytesEPNS_12IDnsResourceE:
  233|  9.28k|	{
  234|  9.28k|		if (m_DataLen == 0 || m_Data == nullptr)
  ------------------
  |  Branch (234:7): [True: 0, False: 9.28k]
  |  Branch (234:25): [True: 0, False: 9.28k]
  ------------------
  235|      0|		{
  236|      0|			PCPP_LOG_ERROR("Input data is null or illegal" << "|m_DataLen:" << m_DataLen);
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleDnsLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  237|      0|			return {};
  238|      0|		}
  239|       |
  240|  9.28k|		return std::vector<uint8_t>(m_Data, m_Data + m_DataLen);
  241|  9.28k|	}

_ZN4pcpp9DoIpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  199|  60.4k|	    : Layer(data, dataLen, prevLayer, packet, DOIP)
  200|  60.4k|	{}
_ZN4pcpp9DoIpLayer11isDataValidEPhm:
  203|  74.8k|	{
  204|  74.8k|		if (data == nullptr || dataLen < DOIP_HEADER_LEN)
  ------------------
  |  Branch (204:7): [True: 0, False: 74.8k]
  |  Branch (204:26): [True: 841, False: 74.0k]
  ------------------
  205|    841|			return false;
  206|       |
  207|  74.0k|		auto* doipHeader = reinterpret_cast<doiphdr*>(data);
  208|  74.0k|		const uint8_t version = doipHeader->protocolVersion;
  209|  74.0k|		const uint8_t inVersion = doipHeader->invertProtocolVersion;
  210|  74.0k|		const uint16_t payloadTypeRaw = doipHeader->payloadType;
  211|  74.0k|		const uint32_t lengthRaw = doipHeader->payloadLength;
  212|       |
  213|  74.0k|		if (!isPayloadTypeValid(be16toh(payloadTypeRaw)))
  ------------------
  |  Branch (213:7): [True: 4.12k, False: 69.9k]
  ------------------
  214|  4.12k|			return false;
  215|       |		// if payload type is validated, we ensure passing a valid type to isProtocolVersionValid()
  216|  69.9k|		const DoIpPayloadTypes payloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadTypeRaw));
  217|  69.9k|		if (!isProtocolVersionValid(version, inVersion, payloadType))
  ------------------
  |  Branch (217:7): [True: 2.69k, False: 67.2k]
  ------------------
  218|  2.69k|			return false;
  219|       |
  220|  67.2k|		if (!isPayloadLengthValid(be32toh(lengthRaw), dataLen))
  ------------------
  |  Branch (220:7): [True: 5.65k, False: 61.5k]
  ------------------
  221|  5.65k|			return false;
  222|       |
  223|  61.5k|		return true;
  224|  67.2k|	}
_ZN4pcpp9DoIpLayer14parseDoIpLayerEPhmPNS_5LayerEPNS_6PacketE:
  227|  61.5k|	{
  228|  61.5k|		doiphdr* doipHeader = reinterpret_cast<doiphdr*>(data);
  229|  61.5k|		uint16_t payloadType = doipHeader->payloadType;
  230|  61.5k|		DoIpPayloadTypes detectedPayloadType = static_cast<DoIpPayloadTypes>(be16toh(payloadType));
  231|       |
  232|  61.5k|		switch (detectedPayloadType)
  233|  61.5k|		{
  234|  7.41k|		case DoIpPayloadTypes::GENERIC_HEADER_NACK:
  ------------------
  |  Branch (234:3): [True: 7.41k, False: 54.1k]
  ------------------
  235|  7.41k|			return (DoIpGenericHeaderNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (235:11): [True: 7.37k, False: 42]
  ------------------
  236|  7.41k|			           ? new DoIpGenericHeaderNack(data, dataLen, prevLayer, packet)
  237|  7.41k|			           : nullptr;
  238|  5.83k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST:
  ------------------
  |  Branch (238:3): [True: 5.83k, False: 55.7k]
  ------------------
  239|  5.83k|			return (DoIpVehicleIdentificationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (239:11): [True: 5.81k, False: 15]
  ------------------
  240|  5.83k|			           ? new DoIpVehicleIdentificationRequest(data, dataLen, prevLayer, packet)
  241|  5.83k|			           : nullptr;
  242|  2.02k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_EID:
  ------------------
  |  Branch (242:3): [True: 2.02k, False: 59.5k]
  ------------------
  243|  2.02k|			return (DoIpVehicleIdentificationRequestWithEID::isDataLenValid(dataLen))
  ------------------
  |  Branch (243:11): [True: 1.95k, False: 72]
  ------------------
  244|  2.02k|			           ? new DoIpVehicleIdentificationRequestWithEID(data, dataLen, prevLayer, packet)
  245|  2.02k|			           : nullptr;
  246|  3.86k|		case DoIpPayloadTypes::VEHICLE_IDENTIFICATION_REQUEST_WITH_VIN:
  ------------------
  |  Branch (246:3): [True: 3.86k, False: 57.7k]
  ------------------
  247|  3.86k|			return (DoIpVehicleIdentificationRequestWithVIN::isDataLenValid(dataLen))
  ------------------
  |  Branch (247:11): [True: 3.61k, False: 257]
  ------------------
  248|  3.86k|			           ? new DoIpVehicleIdentificationRequestWithVIN(data, dataLen, prevLayer, packet)
  249|  3.86k|			           : nullptr;
  250|  2.24k|		case DoIpPayloadTypes::VEHICLE_ANNOUNCEMENT_MESSAGE:
  ------------------
  |  Branch (250:3): [True: 2.24k, False: 59.3k]
  ------------------
  251|  2.24k|			return (DoIpVehicleAnnouncementMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (251:11): [True: 2.20k, False: 39]
  ------------------
  252|  2.24k|			           ? new DoIpVehicleAnnouncementMessage(data, dataLen, prevLayer, packet)
  253|  2.24k|			           : nullptr;
  254|  2.69k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_REQUEST:
  ------------------
  |  Branch (254:3): [True: 2.69k, False: 58.8k]
  ------------------
  255|  2.69k|			return (DoIpRoutingActivationRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (255:11): [True: 2.60k, False: 90]
  ------------------
  256|  2.69k|			           ? new DoIpRoutingActivationRequest(data, dataLen, prevLayer, packet)
  257|  2.69k|			           : nullptr;
  258|  2.13k|		case DoIpPayloadTypes::ROUTING_ACTIVATION_RESPONSE:
  ------------------
  |  Branch (258:3): [True: 2.13k, False: 59.4k]
  ------------------
  259|  2.13k|			return (DoIpRoutingActivationResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (259:11): [True: 2.05k, False: 78]
  ------------------
  260|  2.13k|			           ? new DoIpRoutingActivationResponse(data, dataLen, prevLayer, packet)
  261|  2.13k|			           : nullptr;
  262|  6.21k|		case DoIpPayloadTypes::ALIVE_CHECK_REQUEST:
  ------------------
  |  Branch (262:3): [True: 6.21k, False: 55.3k]
  ------------------
  263|  6.21k|			return (DoIpAliveCheckRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (263:11): [True: 6.17k, False: 46]
  ------------------
  264|  6.21k|			           ? new DoIpAliveCheckRequest(data, dataLen, prevLayer, packet)
  265|  6.21k|			           : nullptr;
  266|  2.68k|		case DoIpPayloadTypes::ALIVE_CHECK_RESPONSE:
  ------------------
  |  Branch (266:3): [True: 2.68k, False: 58.8k]
  ------------------
  267|  2.68k|			return (DoIpAliveCheckResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (267:11): [True: 2.65k, False: 33]
  ------------------
  268|  2.68k|			           ? new DoIpAliveCheckResponse(data, dataLen, prevLayer, packet)
  269|  2.68k|			           : nullptr;
  270|  5.84k|		case DoIpPayloadTypes::ENTITY_STATUS_REQUEST:
  ------------------
  |  Branch (270:3): [True: 5.84k, False: 55.7k]
  ------------------
  271|  5.84k|			return (DoIpEntityStatusRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (271:11): [True: 5.58k, False: 252]
  ------------------
  272|  5.84k|			           ? new DoIpEntityStatusRequest(data, dataLen, prevLayer, packet)
  273|  5.84k|			           : nullptr;
  274|  5.89k|		case DoIpPayloadTypes::ENTITY_STATUS_RESPONSE:
  ------------------
  |  Branch (274:3): [True: 5.89k, False: 55.6k]
  ------------------
  275|  5.89k|			return (DoIpEntityStatusResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (275:11): [True: 5.87k, False: 17]
  ------------------
  276|  5.89k|			           ? new DoIpEntityStatusResponse(data, dataLen, prevLayer, packet)
  277|  5.89k|			           : nullptr;
  278|  3.59k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_REQUEST:
  ------------------
  |  Branch (278:3): [True: 3.59k, False: 57.9k]
  ------------------
  279|  3.59k|			return (DoIpDiagnosticPowerModeRequest::isDataLenValid(dataLen))
  ------------------
  |  Branch (279:11): [True: 3.47k, False: 114]
  ------------------
  280|  3.59k|			           ? new DoIpDiagnosticPowerModeRequest(data, dataLen, prevLayer, packet)
  281|  3.59k|			           : nullptr;
  282|  1.75k|		case DoIpPayloadTypes::DIAGNOSTIC_POWER_MODE_RESPONSE:
  ------------------
  |  Branch (282:3): [True: 1.75k, False: 59.8k]
  ------------------
  283|  1.75k|			return (DoIpDiagnosticPowerModeResponse::isDataLenValid(dataLen))
  ------------------
  |  Branch (283:11): [True: 1.68k, False: 76]
  ------------------
  284|  1.75k|			           ? new DoIpDiagnosticPowerModeResponse(data, dataLen, prevLayer, packet)
  285|  1.75k|			           : nullptr;
  286|  7.13k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE:
  ------------------
  |  Branch (286:3): [True: 7.13k, False: 54.4k]
  ------------------
  287|  7.13k|			return (DoIpDiagnosticMessage::isDataLenValid(dataLen))
  ------------------
  |  Branch (287:11): [True: 7.12k, False: 6]
  ------------------
  288|  7.13k|			           ? new DoIpDiagnosticMessage(data, dataLen, prevLayer, packet)
  289|  7.13k|			           : nullptr;
  290|    793|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_ACK:
  ------------------
  |  Branch (290:3): [True: 793, False: 60.7k]
  ------------------
  291|    793|			return (DoIpDiagnosticMessageAck::isDataLenValid(dataLen))
  ------------------
  |  Branch (291:11): [True: 787, False: 6]
  ------------------
  292|    793|			           ? new DoIpDiagnosticMessageAck(data, dataLen, prevLayer, packet)
  293|    793|			           : nullptr;
  294|  1.46k|		case DoIpPayloadTypes::DIAGNOSTIC_MESSAGE_NACK:
  ------------------
  |  Branch (294:3): [True: 1.46k, False: 60.1k]
  ------------------
  295|  1.46k|			return (DoIpDiagnosticMessageNack::isDataLenValid(dataLen))
  ------------------
  |  Branch (295:11): [True: 1.45k, False: 6]
  ------------------
  296|  1.46k|			           ? new DoIpDiagnosticMessageNack(data, dataLen, prevLayer, packet)
  297|  1.46k|			           : nullptr;
  298|      0|		default:
  ------------------
  |  Branch (298:3): [True: 0, False: 61.5k]
  ------------------
  299|      0|			return nullptr;
  300|  61.5k|		}
  301|  61.5k|	}
_ZNK4pcpp9DoIpLayer19getPayloadTypeAsStrEv:
  353|  22.0k|	{
  354|  22.0k|		auto it = DoIpEnumToStringPayloadType.find(getPayloadType());
  355|  22.0k|		return (it != DoIpEnumToStringPayloadType.end()) ? it->second : "Unknown Payload Type";
  ------------------
  |  Branch (355:10): [True: 22.0k, False: 0]
  ------------------
  356|  22.0k|	}
_ZNK4pcpp9DoIpLayer8toStringEv:
  369|  22.0k|	{
  370|  22.0k|		std::ostringstream oss;
  371|  22.0k|		oss << "DoIP Layer, " << getPayloadTypeAsStr() << " (0x" << std::hex << std::setw(4) << std::setfill('0')
  372|  22.0k|		    << static_cast<uint16_t>(getPayloadType()) << ")";
  373|  22.0k|		return oss.str();
  374|  22.0k|	}
_ZN4pcpp9DoIpLayer14parseNextLayerEv:
  385|  60.4k|	{
  386|  60.4k|		if (getPayloadType() == DoIpPayloadTypes::DIAGNOSTIC_MESSAGE)
  ------------------
  |  Branch (386:7): [True: 7.12k, False: 53.2k]
  ------------------
  387|  7.12k|		{
  388|  7.12k|			size_t headerLen = getHeaderLen();
  389|       |
  390|  7.12k|			if (m_DataLen <= headerLen)
  ------------------
  |  Branch (390:8): [True: 0, False: 7.12k]
  ------------------
  391|      0|			{
  392|      0|				return;
  393|      0|			}
  394|       |
  395|  7.12k|			uint8_t* payload = m_Data + headerLen;
  396|  7.12k|			size_t payloadLen = m_DataLen - headerLen;
  397|       |
  398|  7.12k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  399|  7.12k|		}
  400|  60.4k|	}
_ZN4pcpp21DoIpGenericHeaderNackC2EPhmPNS_5LayerEPNS_6PacketE:
  406|  7.37k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  407|  7.37k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithEIDC2EPhmPNS_5LayerEPNS_6PacketE:
  453|  1.95k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  454|  1.95k|	{}
_ZN4pcpp39DoIpVehicleIdentificationRequestWithVINC2EPhmPNS_5LayerEPNS_6PacketE:
  486|  3.61k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  487|  3.61k|	{}
_ZN4pcpp30DoIpVehicleAnnouncementMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  519|  2.20k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  520|  2.20k|	{}
_ZN4pcpp28DoIpRoutingActivationRequestC2EPhmPNS_5LayerEPNS_6PacketE:
  659|  2.60k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  660|  2.60k|	{}
_ZN4pcpp29DoIpRoutingActivationResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  774|  2.05k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  775|  2.05k|	{}
_ZN4pcpp22DoIpAliveCheckResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  904|  2.65k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  905|  2.65k|	{}
_ZN4pcpp24DoIpEntityStatusResponseC2EPhmPNS_5LayerEPNS_6PacketE:
  942|  5.87k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
  943|  5.87k|	{}
_ZN4pcpp31DoIpDiagnosticPowerModeResponseC2EPhmPNS_5LayerEPNS_6PacketE:
 1058|  1.68k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1059|  1.68k|	{}
_ZN4pcpp18DoIpDiagnosticBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1097|  9.37k|	    : DoIpLayer(data, dataLen, prevLayer, packet)
 1098|  9.37k|	{}
_ZN4pcpp21DoIpDiagnosticMessageC2EPhmPNS_5LayerEPNS_6PacketE:
 1124|  7.12k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1125|  7.12k|	{}
_ZN4pcpp33DoIpDiagnosticResponseMessageBaseC2EPhmPNS_5LayerEPNS_6PacketE:
 1176|  2.24k|	    : DoIpDiagnosticBase(data, dataLen, prevLayer, packet)
 1177|  2.24k|	{}
_ZN4pcpp24DoIpDiagnosticMessageAckC2EPhmPNS_5LayerEPNS_6PacketE:
 1246|    787|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1247|    787|	{}
_ZN4pcpp25DoIpDiagnosticMessageNackC2EPhmPNS_5LayerEPNS_6PacketE:
 1289|  1.45k|	    : DoIpDiagnosticResponseMessageBase(data, dataLen, prevLayer, packet)
 1290|  1.45k|	{}

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

_ZN4pcpp8EthLayer14parseNextLayerEv:
   29|   958k|	{
   30|   958k|		if (m_DataLen <= sizeof(ether_header))
  ------------------
  |  Branch (30:7): [True: 538, False: 958k]
  ------------------
   31|    538|			return;
   32|       |
   33|   958k|		ether_header* hdr = getEthHeader();
   34|   958k|		uint8_t* payload = m_Data + sizeof(ether_header);
   35|   958k|		size_t payloadLen = m_DataLen - sizeof(ether_header);
   36|       |
   37|   958k|		switch (be16toh(hdr->etherType))
  ------------------
  |  Branch (37:11): [True: 952k, False: 5.50k]
  ------------------
   38|   958k|		{
   39|   683k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|   683k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (39:3): [True: 683k, False: 274k]
  ------------------
   40|   683k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   41|   683k|			break;
   42|  53.6k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|  53.6k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (42:3): [True: 53.6k, False: 904k]
  ------------------
   43|  53.6k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   44|  53.6k|			break;
   45|  3.43k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|  3.43k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (45:3): [True: 3.43k, False: 954k]
  ------------------
   46|  3.43k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   47|  3.43k|			break;
   48|   212k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|   212k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (48:3): [True: 212k, False: 746k]
  ------------------
   49|   212k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|   212k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (49:3): [True: 10, False: 958k]
  ------------------
   50|   212k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   51|   212k|			break;
   52|     76|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|     76|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (52:3): [True: 76, False: 958k]
  ------------------
   53|     76|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   54|     76|			break;
   55|     13|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|     13|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (55:3): [True: 13, False: 958k]
  ------------------
   56|     13|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   57|     13|			break;
   58|     54|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|     54|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (58:3): [True: 54, False: 958k]
  ------------------
   59|     54|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   60|     54|			break;
   61|    114|		case PCPP_ETHERTYPE_WAKE_ON_LAN:
  ------------------
  |  |   65|    114|#define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
  ------------------
  |  Branch (61:3): [True: 114, False: 958k]
  ------------------
   62|    114|			tryConstructNextLayerWithFallback<WakeOnLanLayer, PayloadLayer>(payload, payloadLen);
   63|    114|			break;
   64|   958k|		}
   65|       |
   66|       |		// If no next layer was constructed, assume it's a payload layer
   67|   958k|		if (!hasNextLayer())
  ------------------
  |  Branch (67:7): [True: 5.50k, False: 952k]
  ------------------
   68|  5.50k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   69|   958k|	}
_ZN4pcpp8EthLayer22computeCalculateFieldsEv:
   72|   170k|	{
   73|   170k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (73:7): [True: 269, False: 169k]
  ------------------
   74|    269|			return;
   75|       |
   76|   169k|		switch (m_NextLayer->getProtocol())
   77|   169k|		{
   78|   129k|		case IPv4:
  ------------------
  |  Branch (78:3): [True: 129k, False: 39.9k]
  ------------------
   79|   129k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
   80|   129k|			break;
   81|  10.9k|		case IPv6:
  ------------------
  |  Branch (81:3): [True: 10.9k, False: 158k]
  ------------------
   82|  10.9k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
   83|  10.9k|			break;
   84|  1.09k|		case ARP:
  ------------------
  |  Branch (84:3): [True: 1.09k, False: 168k]
  ------------------
   85|  1.09k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
   86|  1.09k|			break;
   87|  25.3k|		case VLAN:
  ------------------
  |  Branch (87:3): [True: 25.3k, False: 144k]
  ------------------
   88|  25.3k|			getEthHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
   89|  25.3k|			break;
   90|  2.57k|		default:
  ------------------
  |  Branch (90:3): [True: 2.57k, False: 167k]
  ------------------
   91|  2.57k|			return;
   92|   169k|		}
   93|   169k|	}
_ZNK4pcpp8EthLayer8toStringEv:
   96|   340k|	{
   97|   340k|		return "Ethernet II Layer, Src: " + getSourceMac().toString() + ", Dst: " + getDestMac().toString();
   98|   340k|	}
_ZN4pcpp8EthLayer11isDataValidEPKhm:
  101|   963k|	{
  102|   963k|		if (dataLen >= sizeof(ether_header))
  ------------------
  |  Branch (102:7): [True: 962k, False: 884]
  ------------------
  103|   962k|		{
  104|       |			// Ethertypes: These are 16-bit identifiers appearing as the initial
  105|       |			// two octets after the MAC destination and source (or after a
  106|       |			// tag) which, when considered as an unsigned integer, are equal
  107|       |			// to or larger than 0x0600.
  108|       |			//
  109|       |			// From: https://tools.ietf.org/html/rfc5342#section-2.3.2.1
  110|       |			// More: IEEE Std 802.3 Clause 3.2.6
  111|   962k|			return be16toh(*reinterpret_cast<const uint16_t*>(data + 12)) >= static_cast<uint16_t>(0x0600);
  112|   962k|		}
  113|    884|		else
  114|    884|		{
  115|    884|			return false;
  116|    884|		}
  117|   963k|	}

_ZNK4pcpp15FtpRequestLayer16getCommandStringEv:
   28|    672|	{
   29|    672|		return getCommandInternal();
   30|    672|	}
_ZNK4pcpp15FtpRequestLayer16getCommandOptionEb:
   38|    672|	{
   39|    672|		if (removeEscapeCharacters)
  ------------------
  |  Branch (39:7): [True: 336, False: 336]
  ------------------
   40|    336|		{
   41|    336|			std::stringstream ss;
   42|    336|			std::string field = getCommandOptionInternal();
   43|  9.76k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (43:25): [True: 9.42k, False: 336]
  ------------------
   44|  9.42k|			{
   45|  9.42k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (45:9): [True: 9.33k, False: 93]
  |  Branch (45:42): [True: 6.30k, False: 3.03k]
  ------------------
   46|  6.30k|					ss << field.c_str()[idx];
   47|  9.42k|			}
   48|    336|			return ss.str();
   49|    336|		}
   50|    336|		return getCommandOptionInternal();
   51|    672|	}
_ZNK4pcpp15FtpRequestLayer8toStringEv:
  217|    672|	{
  218|    672|		return "FTP Request: " + getCommandString();
  219|    672|	}
_ZNK4pcpp16FtpResponseLayer13getStatusCodeEv:
  240|  2.14k|	{
  241|  2.14k|		return static_cast<FtpStatusCode>(atoi(getCommandInternal().c_str()));
  242|  2.14k|	}
_ZNK4pcpp16FtpResponseLayer19getStatusCodeStringEv:
  245|  4.28k|	{
  246|  4.28k|		return getCommandInternal();
  247|  4.28k|	}
_ZNK4pcpp16FtpResponseLayer15getStatusOptionEb:
  255|  4.28k|	{
  256|  4.28k|		if (removeEscapeCharacters)
  ------------------
  |  Branch (256:7): [True: 2.14k, False: 2.14k]
  ------------------
  257|  2.14k|		{
  258|  2.14k|			std::stringstream ss;
  259|  2.14k|			std::string field = getCommandOptionInternal();
  260|  43.6k|			for (size_t idx = 0; idx < field.size(); ++idx)
  ------------------
  |  Branch (260:25): [True: 41.5k, False: 2.14k]
  ------------------
  261|  41.5k|			{
  262|  41.5k|				if (int(field.c_str()[idx]) < 127 && int(field.c_str()[idx]) > 31)  // From SPACE to ~
  ------------------
  |  Branch (262:9): [True: 41.2k, False: 238]
  |  Branch (262:42): [True: 34.3k, False: 6.90k]
  ------------------
  263|  34.3k|					ss << field.c_str()[idx];
  264|  41.5k|			}
  265|  2.14k|			return ss.str();
  266|  2.14k|		}
  267|  2.14k|		return getCommandOptionInternal();
  268|  4.28k|	}
_ZNK4pcpp16FtpResponseLayer8toStringEv:
  392|  4.28k|	{
  393|  4.28k|		return "FTP Response: " + getStatusCodeString();
  394|  4.28k|	}
_ZNK4pcpp12FtpDataLayer8toStringEv:
  414|    996|	{
  415|    996|		return "FTP Data";
  416|    996|	}

_ZN4pcpp8GreLayer13getGREVersionEPhm:
   24|   113k|	{
   25|   113k|		if (greDataLen < sizeof(gre_basic_header))
  ------------------
  |  Branch (25:7): [True: 73, False: 113k]
  ------------------
   26|     73|			return UnknownProtocol;
   27|       |
   28|   113k|		uint8_t version = *(greData + 1);
   29|   113k|		version &= 0x07;
   30|   113k|		if (version == 0)
  ------------------
  |  Branch (30:7): [True: 8.05k, False: 105k]
  ------------------
   31|  8.05k|			return GREv0;
   32|   105k|		else if (version == 1)
  ------------------
  |  Branch (32:12): [True: 105k, False: 283]
  ------------------
   33|   105k|			return GREv1;
   34|    283|		else
   35|    283|			return UnknownProtocol;
   36|   113k|	}
_ZNK4pcpp8GreLayer13getFieldValueENS0_8GreFieldEb:
   39|  20.5k|	{
   40|  20.5k|		uint8_t* ptr = m_Data + sizeof(gre_basic_header);
   41|       |
   42|  20.5k|		auto* header = reinterpret_cast<gre_basic_header*>(m_Data);
   43|       |
   44|  20.5k|		constexpr int numGreField = 4;
   45|  59.3k|		for (int curFieldAsInt = static_cast<int>(GreChecksumOrRouting); curFieldAsInt < numGreField; ++curFieldAsInt)
  ------------------
  |  Branch (45:68): [True: 59.3k, False: 0]
  ------------------
   46|  59.3k|		{
   47|  59.3k|			const GreField curField = static_cast<GreField>(curFieldAsInt);
   48|  59.3k|			bool curFieldExists = false;
   49|       |
   50|  59.3k|			uint8_t* origPtr = ptr;
   51|       |
   52|  59.3k|			switch (curField)
   53|  59.3k|			{
   54|  20.5k|			case GreChecksumOrRouting:
  ------------------
  |  Branch (54:4): [True: 20.5k, False: 38.8k]
  ------------------
   55|  20.5k|				if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (55:9): [True: 5.62k, False: 14.8k]
  |  Branch (55:37): [True: 708, False: 14.1k]
  ------------------
   56|  6.33k|				{
   57|  6.33k|					curFieldExists = true;
   58|  6.33k|					ptr += sizeof(uint32_t);
   59|  6.33k|				}
   60|  20.5k|				break;
   61|  16.6k|			case GreKey:
  ------------------
  |  Branch (61:4): [True: 16.6k, False: 42.6k]
  ------------------
   62|  16.6k|				if (header->keyBit == 1)
  ------------------
  |  Branch (62:9): [True: 15.4k, False: 1.26k]
  ------------------
   63|  15.4k|				{
   64|  15.4k|					curFieldExists = true;
   65|  15.4k|					ptr += sizeof(uint32_t);
   66|  15.4k|				}
   67|  16.6k|				break;
   68|  16.0k|			case GreSeq:
  ------------------
  |  Branch (68:4): [True: 16.0k, False: 43.2k]
  ------------------
   69|  16.0k|				if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (69:9): [True: 15.2k, False: 882]
  ------------------
   70|  15.2k|				{
   71|  15.2k|					curFieldExists = true;
   72|  15.2k|					ptr += sizeof(uint32_t);
   73|  15.2k|				}
   74|  16.0k|				break;
   75|  6.05k|			case GreAck:
  ------------------
  |  Branch (75:4): [True: 6.05k, False: 53.3k]
  ------------------
   76|  6.05k|				if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (76:9): [True: 6.05k, False: 0]
  ------------------
   77|  6.05k|				{
   78|  6.05k|					curFieldExists = true;
   79|  6.05k|					ptr += sizeof(uint32_t);
   80|  6.05k|				}
   81|  6.05k|				break;
   82|      0|			default:  // shouldn't get there
  ------------------
  |  Branch (82:4): [True: 0, False: 59.3k]
  ------------------
   83|      0|				return nullptr;
   84|  59.3k|			}
   85|       |
   86|  59.3k|			if (field == curField)
  ------------------
  |  Branch (86:8): [True: 20.5k, False: 38.8k]
  ------------------
   87|  20.5k|			{
   88|       |				// If the packet is truncated/malformed it might be overflow packet length
   89|  20.5k|				if ((curFieldExists && static_cast<size_t>(std::abs(ptr - m_Data)) <= m_DataLen) ||
  ------------------
  |  Branch (89:10): [True: 20.5k, False: 0]
  |  Branch (89:28): [True: 20.4k, False: 53]
  ------------------
   90|     53|				    returnOffsetEvenIfFieldMissing)
  ------------------
  |  Branch (90:9): [True: 10, False: 43]
  ------------------
   91|  20.4k|					return origPtr;
   92|       |
   93|     43|				return nullptr;
   94|  20.5k|			}
   95|  59.3k|		}  // for
   96|       |
   97|      0|		return nullptr;
   98|  20.5k|	}
_ZN4pcpp8GreLayer27computeCalculateFieldsInnerEv:
  101|  12.1k|	{
  102|  12.1k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  103|  12.1k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (103:7): [True: 12.0k, False: 74]
  ------------------
  104|  12.0k|		{
  105|  12.0k|			switch (m_NextLayer->getProtocol())
  106|  12.0k|			{
  107|     45|			case IPv4:
  ------------------
  |  Branch (107:4): [True: 45, False: 11.9k]
  ------------------
  108|     45|				header->protocol = htobe16(PCPP_ETHERTYPE_IP);
  109|     45|				break;
  110|      2|			case IPv6:
  ------------------
  |  Branch (110:4): [True: 2, False: 12.0k]
  ------------------
  111|      2|				header->protocol = htobe16(PCPP_ETHERTYPE_IPV6);
  112|      2|				break;
  113|      5|			case VLAN:
  ------------------
  |  Branch (113:4): [True: 5, False: 12.0k]
  ------------------
  114|      5|				header->protocol = htobe16(PCPP_ETHERTYPE_VLAN);
  115|      5|				break;
  116|     45|			case MPLS:
  ------------------
  |  Branch (116:4): [True: 45, False: 11.9k]
  ------------------
  117|     45|				header->protocol = htobe16(PCPP_ETHERTYPE_MPLS);
  118|     45|				break;
  119|  8.72k|			case PPP_PPTP:
  ------------------
  |  Branch (119:4): [True: 8.72k, False: 3.30k]
  ------------------
  120|  8.72k|				header->protocol = htobe16(PCPP_ETHERTYPE_PPP);
  121|  8.72k|				break;
  122|      0|			case Ethernet:
  ------------------
  |  Branch (122:4): [True: 0, False: 12.0k]
  ------------------
  123|      0|				header->protocol = htobe16(PCPP_ETHERTYPE_ETHBRIDGE);
  124|      0|				break;
  125|  3.20k|			default:
  ------------------
  |  Branch (125:4): [True: 3.20k, False: 8.82k]
  ------------------
  126|  3.20k|				break;
  127|  12.0k|			}
  128|  12.0k|		}
  129|  12.1k|	}
_ZNK4pcpp8GreLayer17getSequenceNumberERj:
  132|  12.1k|	{
  133|  12.1k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  134|       |
  135|  12.1k|		if (header->sequenceNumBit == 0)
  ------------------
  |  Branch (135:7): [True: 2.06k, False: 10.0k]
  ------------------
  136|  2.06k|			return false;
  137|       |
  138|  10.0k|		uint32_t* val = (uint32_t*)getFieldValue(GreSeq, false);
  139|  10.0k|		if (val == nullptr)
  ------------------
  |  Branch (139:7): [True: 18, False: 10.0k]
  ------------------
  140|     18|			return false;
  141|       |
  142|  10.0k|		seqNumber = be32toh(*val);
  143|  10.0k|		return true;
  144|  10.0k|	}
_ZN4pcpp8GreLayer14parseNextLayerEv:
  198|   113k|	{
  199|   113k|		size_t headerLen = getHeaderLen();
  200|   113k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (200:7): [True: 2.29k, False: 110k]
  ------------------
  201|  2.29k|			return;
  202|       |
  203|   110k|		gre_basic_header* header = (gre_basic_header*)m_Data;
  204|   110k|		uint8_t* payload = m_Data + headerLen;
  205|   110k|		size_t payloadLen = m_DataLen - headerLen;
  206|       |
  207|   110k|		switch (be16toh(header->protocol))
  208|   110k|		{
  209|  1.87k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|  1.87k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (209:3): [True: 1.87k, False: 108k]
  ------------------
  210|  1.87k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  211|  1.87k|			break;
  212|     28|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|     28|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (212:3): [True: 28, False: 110k]
  ------------------
  213|     28|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  214|     28|			break;
  215|     57|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|     57|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (215:3): [True: 57, False: 110k]
  ------------------
  216|     57|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
  217|     57|			break;
  218|    438|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|    438|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (218:3): [True: 438, False: 110k]
  ------------------
  219|    438|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  220|    438|			break;
  221|  95.4k|		case PCPP_ETHERTYPE_PPP:
  ------------------
  |  |   59|  95.4k|#define PCPP_ETHERTYPE_PPP 0x880B
  ------------------
  |  Branch (221:3): [True: 95.4k, False: 15.2k]
  ------------------
  222|  95.4k|			tryConstructNextLayerWithFallback<PPP_PPTPLayer, PayloadLayer>(payload, payloadLen);
  223|  95.4k|			break;
  224|      0|		case PCPP_ETHERTYPE_ETHBRIDGE:
  ------------------
  |  |   37|      0|#define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
  ------------------
  |  Branch (224:3): [True: 0, False: 110k]
  ------------------
  225|      0|		{
  226|      0|			if (tryConstructNextLayer<EthLayer>(payload, payloadLen) != nullptr)
  ------------------
  |  Branch (226:8): [True: 0, False: 0]
  ------------------
  227|      0|			{
  228|      0|				break;
  229|      0|			}
  230|       |
  231|      0|			tryConstructNextLayerWithFallback<EthDot3Layer, PayloadLayer>(payload, payloadLen);
  232|      0|			break;
  233|      0|		}
  234|  12.8k|		default:
  ------------------
  |  Branch (234:3): [True: 12.8k, False: 97.8k]
  ------------------
  235|  12.8k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  236|   110k|		}
  237|   110k|	}
_ZNK4pcpp8GreLayer12getHeaderLenEv:
  240|   137k|	{
  241|   137k|		size_t result = sizeof(gre_basic_header);
  242|       |
  243|   137k|		gre_basic_header const* header = reinterpret_cast<gre_basic_header const*>(m_Data);
  244|       |
  245|   137k|		if (header->checksumBit == 1 || header->routingBit == 1)
  ------------------
  |  Branch (245:7): [True: 11.4k, False: 125k]
  |  Branch (245:35): [True: 3.11k, False: 122k]
  ------------------
  246|  14.5k|			result += 4;
  247|   137k|		if (header->keyBit == 1)
  ------------------
  |  Branch (247:7): [True: 124k, False: 12.4k]
  ------------------
  248|   124k|			result += 4;
  249|   137k|		if (header->sequenceNumBit == 1)
  ------------------
  |  Branch (249:7): [True: 122k, False: 14.2k]
  ------------------
  250|   122k|			result += 4;
  251|   137k|		if (header->ackSequenceNumBit == 1)
  ------------------
  |  Branch (251:7): [True: 67.2k, False: 69.9k]
  ------------------
  252|  67.2k|			result += 4;
  253|       |
  254|   137k|		return result;
  255|   137k|	}
_ZNK4pcpp10GREv0Layer11getChecksumERt:
  303|  1.55k|	{
  304|  1.55k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (304:7): [True: 525, False: 1.03k]
  ------------------
  305|    525|			return false;
  306|       |
  307|  1.03k|		uint16_t* val = (uint16_t*)getFieldValue(GreChecksumOrRouting, false);
  308|  1.03k|		if (val == nullptr)
  ------------------
  |  Branch (308:7): [True: 5, False: 1.02k]
  ------------------
  309|      5|			return false;
  310|       |
  311|  1.02k|		checksum = be16toh(*val);
  312|  1.02k|		return true;
  313|  1.03k|	}
_ZN4pcpp10GREv0Layer11setChecksumEt:
  316|  2.06k|	{
  317|  2.06k|		gre_basic_header* header = getGreHeader();
  318|       |
  319|  2.06k|		bool needToExtendLayer = false;
  320|       |
  321|  2.06k|		if (header->routingBit == 0 && header->checksumBit == 0)
  ------------------
  |  Branch (321:7): [True: 812, False: 1.24k]
  |  Branch (321:34): [True: 0, False: 812]
  ------------------
  322|      0|			needToExtendLayer = true;
  323|       |
  324|  2.06k|		uint8_t* offsetPtr = getFieldValue(GreChecksumOrRouting, true);
  325|  2.06k|		int offset = offsetPtr - m_Data;
  326|       |		// extend layer in 4 bytes to keep 4-byte alignment
  327|  2.06k|		if (needToExtendLayer && !extendLayer(offset, sizeof(uint32_t)))
  ------------------
  |  Branch (327:7): [True: 0, False: 2.06k]
  |  Branch (327:28): [True: 0, False: 0]
  ------------------
  328|      0|		{
  329|      0|			PCPP_LOG_ERROR("Couldn't extend layer to set checksum");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleGreLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|      0|			return false;
  331|      0|		}
  332|       |
  333|  2.06k|		uint16_t* checksumPtr = (uint16_t*)(m_Data + offset);
  334|  2.06k|		*checksumPtr = htobe16(checksum);
  335|       |
  336|       |		// if layer was extended in 4 bytes, make sure the offset field stays 0
  337|  2.06k|		if (needToExtendLayer)
  ------------------
  |  Branch (337:7): [True: 0, False: 2.06k]
  ------------------
  338|      0|		{
  339|      0|			checksumPtr++;
  340|      0|			*checksumPtr = 0;
  341|      0|		}
  342|       |
  343|  2.06k|		header = getGreHeader();
  344|  2.06k|		header->checksumBit = 1;
  345|       |
  346|  2.06k|		return true;
  347|  2.06k|	}
_ZNK4pcpp10GREv0Layer9getOffsetERt:
  383|  1.55k|	{
  384|  1.55k|		if (getGreHeader()->routingBit == 0)
  ------------------
  |  Branch (384:7): [True: 817, False: 738]
  ------------------
  385|    817|			return false;
  386|       |
  387|    738|		uint8_t* val = (uint8_t*)getFieldValue(GreChecksumOrRouting, false);
  388|    738|		if (val == nullptr)
  ------------------
  |  Branch (388:7): [True: 7, False: 731]
  ------------------
  389|      7|			return false;
  390|       |
  391|    731|		offset = be16toh(*(val + 2));
  392|    731|		return true;
  393|    738|	}
_ZNK4pcpp10GREv0Layer6getKeyERj:
  396|  1.55k|	{
  397|  1.55k|		if (getGreHeader()->keyBit == 0)
  ------------------
  |  Branch (397:7): [True: 949, False: 606]
  ------------------
  398|    949|			return false;
  399|       |
  400|    606|		uint32_t* val = (uint32_t*)getFieldValue(GreKey, false);
  401|    606|		if (val == nullptr)
  ------------------
  |  Branch (401:7): [True: 11, False: 595]
  ------------------
  402|     11|			return false;
  403|       |
  404|    595|		key = be32toh(*val);
  405|    595|		return true;
  406|    606|	}
_ZN4pcpp10GREv0Layer22computeCalculateFieldsEv:
  460|  1.55k|	{
  461|  1.55k|		computeCalculateFieldsInner();
  462|       |
  463|  1.55k|		if (getGreHeader()->checksumBit == 0)
  ------------------
  |  Branch (463:7): [True: 525, False: 1.03k]
  ------------------
  464|    525|			return;
  465|       |
  466|       |		// calculate checksum
  467|  1.03k|		setChecksum(0);
  468|       |
  469|  1.03k|		ScalarBuffer<uint16_t> buffer;
  470|  1.03k|		buffer.buffer = (uint16_t*)m_Data;
  471|  1.03k|		buffer.len = m_DataLen;
  472|  1.03k|		size_t checksum = computeChecksum(&buffer, 1);
  473|       |
  474|  1.03k|		setChecksum(checksum);
  475|  1.03k|	}
_ZNK4pcpp10GREv0Layer8toStringEv:
  478|  3.11k|	{
  479|  3.11k|		return "GRE Layer, version 0";
  480|  3.11k|	}
_ZNK4pcpp10GREv1Layer20getAcknowledgmentNumERj:
  525|  10.5k|	{
  526|  10.5k|		if (getGreHeader()->ackSequenceNumBit == 0)
  ------------------
  |  Branch (526:7): [True: 4.49k, False: 6.05k]
  ------------------
  527|  4.49k|			return false;
  528|       |
  529|  6.05k|		uint32_t* val = (uint32_t*)getFieldValue(GreAck, false);
  530|  6.05k|		if (val == nullptr)
  ------------------
  |  Branch (530:7): [True: 2, False: 6.05k]
  ------------------
  531|      2|			return false;
  532|       |
  533|  6.05k|		ackNum = be32toh(*val);
  534|  6.05k|		return true;
  535|  6.05k|	}
_ZN4pcpp10GREv1Layer22computeCalculateFieldsEv:
  586|  10.5k|	{
  587|  10.5k|		computeCalculateFieldsInner();
  588|       |
  589|       |		getGreHeader()->payloadLength = htobe16(m_DataLen - getHeaderLen());
  590|  10.5k|	}
_ZNK4pcpp10GREv1Layer8toStringEv:
  593|  21.0k|	{
  594|  21.0k|		return "GRE Layer, version 1";
  595|  21.0k|	}
_ZN4pcpp13PPP_PPTPLayer14parseNextLayerEv:
  636|  95.4k|	{
  637|  95.4k|		size_t headerLen = getHeaderLen();
  638|  95.4k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (638:7): [True: 87, False: 95.3k]
  ------------------
  639|     87|			return;
  640|       |
  641|  95.3k|		uint8_t* payload = m_Data + headerLen;
  642|  95.3k|		size_t payloadLen = m_DataLen - headerLen;
  643|       |
  644|  95.3k|		switch (be16toh(getPPP_PPTPHeader()->protocol))
  645|  95.3k|		{
  646|  94.5k|		case PCPP_PPP_IP:
  ------------------
  |  |  457|  94.5k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (646:3): [True: 94.5k, False: 883]
  ------------------
  647|  94.5k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  648|  94.5k|			break;
  649|     71|		case PCPP_PPP_IPV6:
  ------------------
  |  |  509|     71|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (649:3): [True: 71, False: 95.3k]
  ------------------
  650|     71|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  651|     71|			break;
  652|    812|		default:
  ------------------
  |  Branch (652:3): [True: 812, False: 94.5k]
  ------------------
  653|    812|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  654|    812|			break;
  655|  95.3k|		}
  656|  95.3k|	}
_ZN4pcpp13PPP_PPTPLayer22computeCalculateFieldsEv:
  659|  8.72k|	{
  660|  8.72k|		ppp_pptp_header* header = getPPP_PPTPHeader();
  661|  8.72k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (661:7): [True: 8.72k, False: 3]
  ------------------
  662|  8.72k|		{
  663|  8.72k|			switch (m_NextLayer->getProtocol())
  664|  8.72k|			{
  665|  8.56k|			case IPv4:
  ------------------
  |  Branch (665:4): [True: 8.56k, False: 151]
  ------------------
  666|  8.56k|				header->protocol = htobe16(PCPP_PPP_IP);
  667|  8.56k|				break;
  668|      1|			case IPv6:
  ------------------
  |  Branch (668:4): [True: 1, False: 8.71k]
  ------------------
  669|      1|				header->protocol = htobe16(PCPP_PPP_IPV6);
  670|      1|				break;
  671|    150|			default:
  ------------------
  |  Branch (671:4): [True: 150, False: 8.57k]
  ------------------
  672|    150|				break;
  673|  8.72k|			}
  674|  8.72k|		}
  675|      3|		else
  676|      3|			header->protocol = 0;
  677|  8.72k|	}

_ZN4pcpp10GtpV1Layer12GtpExtensionC2Ev:
   22|  34.5k|	{
   23|  34.5k|		m_Data = nullptr;
   24|  34.5k|		m_DataLen = 0;
   25|  34.5k|		m_ExtType = 0;
   26|  34.5k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionC2EPhmh:
   29|  2.81k|	{
   30|  2.81k|		m_Data = data;
   31|  2.81k|		m_DataLen = dataLen;
   32|  2.81k|		m_ExtType = type;
   33|  2.81k|	}
_ZN4pcpp10GtpV1Layer12GtpExtensionaSERKS1_:
   43|  1.65k|	{
   44|  1.65k|		m_Data = other.m_Data;
   45|  1.65k|		m_DataLen = other.m_DataLen;
   46|  1.65k|		m_ExtType = other.m_ExtType;
   47|  1.65k|		return *this;
   48|  1.65k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension6isNullEv:
   51|  23.4k|	{
   52|  23.4k|		return m_Data == nullptr;
   53|  23.4k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getExtensionTypeEv:
   56|  6.92k|	{
   57|  6.92k|		return m_ExtType;
   58|  6.92k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension14getTotalLengthEv:
   61|  23.3k|	{
   62|  23.3k|		if (m_Data == nullptr)
  ------------------
  |  Branch (62:7): [True: 11.5k, False: 11.7k]
  ------------------
   63|  11.5k|		{
   64|  11.5k|			return 0;
   65|  11.5k|		}
   66|       |
   67|  11.7k|		size_t len = (size_t)(m_Data[0] * 4);
   68|  11.7k|		if (len <= m_DataLen)
  ------------------
  |  Branch (68:7): [True: 2.45k, False: 9.27k]
  ------------------
   69|  2.45k|		{
   70|  2.45k|			return len;
   71|  2.45k|		}
   72|       |
   73|  9.27k|		return m_DataLen;
   74|  11.7k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getContentLengthEv:
   77|  10.2k|	{
   78|  10.2k|		size_t res = getTotalLength();
   79|       |
   80|  10.2k|		if (res >= 2 * sizeof(uint8_t))
  ------------------
  |  Branch (80:7): [True: 3.84k, False: 6.42k]
  ------------------
   81|  3.84k|		{
   82|  3.84k|			return (size_t)(res - 2 * sizeof(uint8_t));
   83|  3.84k|		}
   84|       |
   85|  6.42k|		return 0;
   86|  10.2k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension10getContentEv:
   89|  6.92k|	{
   90|  6.92k|		if (m_Data == nullptr || getContentLength() == 0)
  ------------------
  |  Branch (90:7): [True: 5.78k, False: 1.14k]
  |  Branch (90:28): [True: 326, False: 817]
  ------------------
   91|  6.10k|		{
   92|  6.10k|			return nullptr;
   93|  6.10k|		}
   94|       |
   95|    817|		return m_Data + sizeof(uint8_t);
   96|  6.92k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension26getNextExtensionHeaderTypeEv:
   99|  8.58k|	{
  100|  8.58k|		if (m_Data == nullptr || getTotalLength() < 4)
  ------------------
  |  Branch (100:7): [True: 5.78k, False: 2.79k]
  |  Branch (100:28): [True: 600, False: 2.19k]
  ------------------
  101|  6.38k|		{
  102|  6.38k|			return 0;
  103|  6.38k|		}
  104|       |
  105|  2.19k|		uint8_t res = *(uint8_t*)(m_Data + sizeof(uint8_t) + getContentLength());
  106|       |
  107|  2.19k|		return res;
  108|  8.58k|	}
_ZNK4pcpp10GtpV1Layer12GtpExtension16getNextExtensionEv:
  111|  8.58k|	{
  112|  8.58k|		size_t totalLength = getTotalLength();
  113|  8.58k|		uint8_t nextExtType = getNextExtensionHeaderType();
  114|  8.58k|		if (nextExtType > 0 && m_DataLen > totalLength + sizeof(uint8_t))
  ------------------
  |  Branch (114:7): [True: 1.99k, False: 6.58k]
  |  Branch (114:26): [True: 169, False: 1.82k]
  ------------------
  115|    169|		{
  116|    169|			return { m_Data + totalLength, m_DataLen - totalLength, nextExtType };
  117|    169|		}
  118|  8.41k|		else
  119|  8.41k|		{
  120|  8.41k|			return {};
  121|  8.41k|		}
  122|  8.58k|	}
_ZN4pcpp10GtpV1Layer7isGTPv1EPKhm:
  200|  51.6k|	{
  201|  51.6k|		if (data != nullptr && dataSize >= sizeof(gtpv1_header) && (data[0] & 0xE0) == 0x20)
  ------------------
  |  Branch (201:7): [True: 51.6k, False: 0]
  |  Branch (201:26): [True: 51.5k, False: 95]
  |  Branch (201:62): [True: 50.9k, False: 605]
  ------------------
  202|  50.9k|		{
  203|  50.9k|			return true;
  204|  50.9k|		}
  205|       |
  206|    700|		return false;
  207|  51.6k|	}
_ZNK4pcpp10GtpV1Layer14getHeaderExtraEv:
  210|  86.4k|	{
  211|  86.4k|		if (m_Data != nullptr && m_DataLen >= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (211:7): [True: 86.4k, False: 0]
  |  Branch (211:28): [True: 85.8k, False: 673]
  ------------------
  212|  85.8k|		{
  213|  85.8k|			return (gtpv1_header_extra*)(m_Data + sizeof(gtpv1_header));
  214|  85.8k|		}
  215|       |
  216|    673|		return nullptr;
  217|  86.4k|	}
_ZNK4pcpp10GtpV1Layer17getSequenceNumberERt:
  220|  6.92k|	{
  221|  6.92k|		gtpv1_header* header = getHeader();
  222|  6.92k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  223|  6.92k|		if (header != nullptr && headerExtra != nullptr && header->sequenceNumberFlag == 1)
  ------------------
  |  Branch (223:7): [True: 6.92k, False: 0]
  |  Branch (223:28): [True: 6.77k, False: 148]
  |  Branch (223:54): [True: 2.02k, False: 4.75k]
  ------------------
  224|  2.02k|		{
  225|  2.02k|			seqNumber = be16toh(headerExtra->sequenceNumber);
  226|  2.02k|			return true;
  227|  2.02k|		}
  228|       |
  229|  4.90k|		return false;
  230|  6.92k|	}
_ZNK4pcpp10GtpV1Layer13getNpduNumberERh:
  272|  6.92k|	{
  273|  6.92k|		gtpv1_header* header = getHeader();
  274|  6.92k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  275|  6.92k|		if (header != nullptr && headerExtra != nullptr && header->npduNumberFlag == 1)
  ------------------
  |  Branch (275:7): [True: 6.92k, False: 0]
  |  Branch (275:28): [True: 6.77k, False: 148]
  |  Branch (275:54): [True: 2.32k, False: 4.45k]
  ------------------
  276|  2.32k|		{
  277|  2.32k|			npduNum = headerExtra->npduNumber;
  278|  2.32k|			return true;
  279|  2.32k|		}
  280|       |
  281|  4.59k|		return false;
  282|  6.92k|	}
_ZNK4pcpp10GtpV1Layer26getNextExtensionHeaderTypeERh:
  324|  28.7k|	{
  325|  28.7k|		gtpv1_header* header = getHeader();
  326|  28.7k|		gtpv1_header_extra* headerExtra = getHeaderExtra();
  327|  28.7k|		if (header != nullptr && headerExtra != nullptr && header->extensionHeaderFlag == 1)
  ------------------
  |  Branch (327:7): [True: 28.7k, False: 0]
  |  Branch (327:28): [True: 28.6k, False: 148]
  |  Branch (327:54): [True: 11.2k, False: 17.3k]
  ------------------
  328|  11.2k|		{
  329|  11.2k|			nextExtType = headerExtra->nextExtensionHeader;
  330|  11.2k|			return true;
  331|  11.2k|		}
  332|       |
  333|  17.5k|		return false;
  334|  28.7k|	}
_ZNK4pcpp10GtpV1Layer16getNextExtensionEv:
  337|  28.7k|	{
  338|  28.7k|		uint8_t nextExtType = 0;
  339|  28.7k|		bool nextExtExists = getNextExtensionHeaderType(nextExtType);
  340|  28.7k|		if (!nextExtExists || nextExtType == 0 || m_DataLen <= sizeof(gtpv1_header) + sizeof(gtpv1_header_extra))
  ------------------
  |  Branch (340:7): [True: 17.5k, False: 11.2k]
  |  Branch (340:25): [True: 3.64k, False: 7.59k]
  |  Branch (340:45): [True: 4.94k, False: 2.65k]
  ------------------
  341|  26.1k|		{
  342|  26.1k|			return {};
  343|  26.1k|		}
  344|       |
  345|  2.65k|		return { m_Data + sizeof(gtpv1_header) + sizeof(gtpv1_header_extra),
  346|  2.65k|			     m_DataLen - sizeof(gtpv1_header) - sizeof(gtpv1_header_extra), nextExtType };
  347|  28.7k|	}
_ZNK4pcpp10GtpV1Layer14getMessageTypeEv:
  436|  6.92k|	{
  437|  6.92k|		gtpv1_header* header = getHeader();
  438|       |
  439|  6.92k|		if (header == nullptr)
  ------------------
  |  Branch (439:7): [True: 0, False: 6.92k]
  ------------------
  440|      0|		{
  441|      0|			return GtpV1_MessageTypeUnknown;
  442|      0|		}
  443|       |
  444|  6.92k|		return (GtpV1MessageType)header->messageType;
  445|  6.92k|	}
_ZN4pcpp33createGtpV1MessageTypeToStringMapEv:
  448|      2|	{
  449|      2|		std::unordered_map<uint8_t, std::string> tempMap;
  450|       |
  451|      2|		tempMap[0] = "GTPv1 Message Type Unknown";
  452|      2|		tempMap[1] = "Echo Request";
  453|      2|		tempMap[2] = "Echo Response";
  454|      2|		tempMap[3] = "Version Not Supported";
  455|      2|		tempMap[4] = "Node Alive Request";
  456|      2|		tempMap[5] = "Node Alive Response";
  457|      2|		tempMap[6] = "Redirection Request";
  458|      2|		tempMap[7] = "Create PDP Context Request";
  459|      2|		tempMap[16] = "Create PDP Context Response";
  460|      2|		tempMap[17] = "Update PDP Context Request";
  461|      2|		tempMap[18] = "Update PDP Context Response";
  462|      2|		tempMap[19] = "Delete PDP Context Request";
  463|      2|		tempMap[20] = "Delete PDP Context Response";
  464|      2|		tempMap[22] = "Initiate PDP Context Activation Request";
  465|      2|		tempMap[23] = "Initiate PDP Context Activation Response";
  466|      2|		tempMap[26] = "Error Indication";
  467|      2|		tempMap[27] = "PDU Notification Request";
  468|      2|		tempMap[28] = "PDU Notification Response";
  469|      2|		tempMap[29] = "PDU Notification Reject Request";
  470|      2|		tempMap[30] = "PDU Notification Reject Response";
  471|      2|		tempMap[31] = "Supported Extensions Header Notification";
  472|      2|		tempMap[32] = "Send Routing for GPRS Request";
  473|      2|		tempMap[33] = "Send Routing for GPRS Response";
  474|      2|		tempMap[34] = "Failure Report Request";
  475|      2|		tempMap[35] = "Failure Report Response";
  476|      2|		tempMap[36] = "Note MS Present Request";
  477|      2|		tempMap[37] = "Note MS Present Response";
  478|      2|		tempMap[38] = "Identification Request";
  479|      2|		tempMap[39] = "Identification Response";
  480|      2|		tempMap[50] = "SGSN Context Request";
  481|      2|		tempMap[51] = "SGSN Context Response";
  482|      2|		tempMap[52] = "SGSN Context Acknowledge";
  483|      2|		tempMap[53] = "Forward Relocation Request";
  484|      2|		tempMap[54] = "Forward Relocation Response";
  485|      2|		tempMap[55] = "Forward Relocation Complete";
  486|      2|		tempMap[56] = "Relocation Cancel Request";
  487|      2|		tempMap[57] = "Relocation Cancel Response";
  488|      2|		tempMap[58] = "Forward SRNS Context";
  489|      2|		tempMap[59] = "Forward Relocation Complete Acknowledge";
  490|      2|		tempMap[60] = "Forward SRNS Context Acknowledge";
  491|      2|		tempMap[61] = "UE Registration Request";
  492|      2|		tempMap[62] = "UE Registration Response";
  493|      2|		tempMap[70] = "RAN Information Relay";
  494|      2|		tempMap[96] = "MBMS Notification Request";
  495|      2|		tempMap[97] = "MBMS Notification Response";
  496|      2|		tempMap[98] = "MBMS Notification Reject Request";
  497|      2|		tempMap[99] = "MBMS Notification Reject Response";
  498|      2|		tempMap[100] = "Create MBMS Notification Request";
  499|      2|		tempMap[101] = "Create MBMS Notification Response";
  500|      2|		tempMap[102] = "Update MBMS Notification Request";
  501|      2|		tempMap[103] = "Update MBMS Notification Response";
  502|      2|		tempMap[104] = "Delete MBMS Notification Request";
  503|      2|		tempMap[105] = "Delete MBMS Notification Response";
  504|      2|		tempMap[112] = "MBMS Registration Request";
  505|      2|		tempMap[113] = "MBMS Registration Response";
  506|      2|		tempMap[114] = "MBMS De-Registration Request";
  507|      2|		tempMap[115] = "MBMS De-Registration Response";
  508|      2|		tempMap[116] = "MBMS Session Start Request";
  509|      2|		tempMap[117] = "MBMS Session Start Response";
  510|      2|		tempMap[118] = "MBMS Session Stop Request";
  511|      2|		tempMap[119] = "MBMS Session Stop Response";
  512|      2|		tempMap[120] = "MBMS Session Update Request";
  513|      2|		tempMap[121] = "MBMS Session Update Response";
  514|      2|		tempMap[128] = "MS Info Change Request";
  515|      2|		tempMap[129] = "MS Info Change Response";
  516|      2|		tempMap[240] = "Data Record Transfer Request";
  517|      2|		tempMap[241] = "Data Record Transfer Response";
  518|      2|		tempMap[254] = "End Marker";
  519|      2|		tempMap[255] = "G-PDU";
  520|       |
  521|      2|		return tempMap;
  522|      2|	}
_ZNK4pcpp10GtpV1Layer22getMessageTypeAsStringEv:
  527|  11.3k|	{
  528|  11.3k|		gtpv1_header* header = getHeader();
  529|       |
  530|  11.3k|		if (header == nullptr)
  ------------------
  |  Branch (530:7): [True: 0, False: 11.3k]
  ------------------
  531|      0|		{
  532|      0|			return GTPv1MsgTypeToStringMap.find(0)->second;
  533|      0|		}
  534|       |
  535|  11.3k|		auto iter = GTPv1MsgTypeToStringMap.find(header->messageType);
  536|  11.3k|		if (iter != GTPv1MsgTypeToStringMap.end())
  ------------------
  |  Branch (536:7): [True: 6.77k, False: 4.57k]
  ------------------
  537|  6.77k|		{
  538|  6.77k|			return iter->second;
  539|  6.77k|		}
  540|  4.57k|		else
  541|  4.57k|		{
  542|  4.57k|			return GTPv1MsgTypeToStringMap.find(0)->second;
  543|  4.57k|		}
  544|  11.3k|	}
_ZNK4pcpp10GtpV1Layer13isGTPUMessageEv:
  547|  6.92k|	{
  548|  6.92k|		gtpv1_header* header = getHeader();
  549|  6.92k|		if (header == nullptr)
  ------------------
  |  Branch (549:7): [True: 0, False: 6.92k]
  ------------------
  550|      0|		{
  551|      0|			return false;
  552|      0|		}
  553|       |
  554|  6.92k|		return header->messageType == GtpV1GpduMessageType;
  555|  6.92k|	}
_ZNK4pcpp10GtpV1Layer13isGTPCMessageEv:
  558|  6.92k|	{
  559|  6.92k|		gtpv1_header* header = getHeader();
  560|  6.92k|		if (header == nullptr)
  ------------------
  |  Branch (560:7): [True: 0, False: 6.92k]
  ------------------
  561|      0|		{
  562|      0|			return false;
  563|      0|		}
  564|       |
  565|  6.92k|		return header->messageType != GtpV1GpduMessageType;
  566|  6.92k|	}
_ZN4pcpp10GtpV1Layer14parseNextLayerEv:
  569|  50.9k|	{
  570|  50.9k|		size_t headerLen = getHeaderLen();
  571|  50.9k|		if (headerLen < sizeof(gtpv1_header))
  ------------------
  |  Branch (571:7): [True: 0, False: 50.9k]
  ------------------
  572|      0|		{
  573|       |			// do nothing
  574|      0|			return;
  575|      0|		}
  576|       |
  577|  50.9k|		gtpv1_header* header = getHeader();
  578|  50.9k|		if (header->messageType != GtpV1GpduMessageType)
  ------------------
  |  Branch (578:7): [True: 11.7k, False: 39.1k]
  ------------------
  579|  11.7k|		{
  580|       |			// this is a GTP-C message, hence it is the last layer
  581|  11.7k|			return;
  582|  11.7k|		}
  583|       |
  584|  39.1k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (584:7): [True: 4.99k, False: 34.1k]
  ------------------
  585|  4.99k|		{
  586|       |			// no data beyond headerLen, nothing to parse further
  587|  4.99k|			return;
  588|  4.99k|		}
  589|       |
  590|       |		// GTP-U message, try to parse the next layer
  591|       |
  592|  34.1k|		auto* payload = static_cast<uint8_t*>(m_Data + headerLen);
  593|  34.1k|		size_t payloadLen = m_DataLen - headerLen;
  594|       |
  595|  34.1k|		uint8_t subProto = *payload;
  596|  34.1k|		if (subProto >= 0x45 && subProto <= 0x4e)
  ------------------
  |  Branch (596:7): [True: 33.3k, False: 797]
  |  Branch (596:27): [True: 30.0k, False: 3.31k]
  ------------------
  597|  30.0k|		{
  598|  30.0k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  599|  30.0k|		}
  600|  4.11k|		else if ((subProto & 0xf0) == 0x60)
  ------------------
  |  Branch (600:12): [True: 2.07k, False: 2.04k]
  ------------------
  601|  2.07k|		{
  602|  2.07k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  603|  2.07k|		}
  604|  2.04k|		else
  605|  2.04k|		{
  606|  2.04k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  607|  2.04k|		}
  608|  34.1k|	}
_ZNK4pcpp10GtpV1Layer12getHeaderLenEv:
  611|  57.8k|	{
  612|  57.8k|		gtpv1_header* header = getHeader();
  613|  57.8k|		if (header == nullptr)
  ------------------
  |  Branch (613:7): [True: 0, False: 57.8k]
  ------------------
  614|      0|		{
  615|      0|			return 0;
  616|      0|		}
  617|       |
  618|  57.8k|		size_t res = sizeof(gtpv1_header);
  619|       |
  620|  57.8k|		if (header->messageType != GtpV1GpduMessageType)
  ------------------
  |  Branch (620:7): [True: 13.9k, False: 43.8k]
  ------------------
  621|  13.9k|		{
  622|  13.9k|			size_t msgLen = be16toh(header->messageLength);
  623|  13.9k|			res += (msgLen > m_DataLen - sizeof(gtpv1_header) ? m_DataLen - sizeof(gtpv1_header) : msgLen);
  ------------------
  |  Branch (623:12): [True: 11.3k, False: 2.59k]
  ------------------
  624|  13.9k|		}
  625|  43.8k|		else
  626|  43.8k|		{
  627|  43.8k|			gtpv1_header_extra* headerExtra = getHeaderExtra();
  628|  43.8k|			if (headerExtra != nullptr &&
  ------------------
  |  Branch (628:8): [True: 43.6k, False: 229]
  ------------------
  629|  43.6k|			    (header->extensionHeaderFlag == 1 || header->sequenceNumberFlag == 1 || header->npduNumberFlag == 1))
  ------------------
  |  Branch (629:9): [True: 8.97k, False: 34.6k]
  |  Branch (629:45): [True: 9.51k, False: 25.1k]
  |  Branch (629:80): [True: 3.36k, False: 21.7k]
  ------------------
  630|  21.8k|			{
  631|  21.8k|				res += sizeof(gtpv1_header_extra);
  632|  21.8k|				GtpExtension nextExt = getNextExtension();
  633|  23.4k|				while (!nextExt.isNull())
  ------------------
  |  Branch (633:12): [True: 1.65k, False: 21.8k]
  ------------------
  634|  1.65k|				{
  635|  1.65k|					res += nextExt.getTotalLength();
  636|  1.65k|					nextExt = nextExt.getNextExtension();
  637|  1.65k|				}
  638|  21.8k|			}
  639|  43.8k|		}
  640|       |
  641|  57.8k|		return res;
  642|  57.8k|	}
_ZNK4pcpp10GtpV1Layer8toStringEv:
  694|  13.8k|	{
  695|  13.8k|		std::string res = "GTP v1 Layer";
  696|       |
  697|  13.8k|		gtpv1_header* header = getHeader();
  698|  13.8k|		if (header != nullptr)
  ------------------
  |  Branch (698:7): [True: 13.8k, False: 0]
  ------------------
  699|  13.8k|		{
  700|  13.8k|			std::stringstream teidStream;
  701|  13.8k|			teidStream << be32toh(header->teid);
  702|       |
  703|  13.8k|			std::string gtpu_gtpc;
  704|  13.8k|			if (header->messageType == GtpV1GpduMessageType)
  ------------------
  |  Branch (704:8): [True: 9.43k, False: 4.42k]
  ------------------
  705|  9.43k|			{
  706|  9.43k|				gtpu_gtpc = "GTP-U message";
  707|  9.43k|			}
  708|  4.42k|			else
  709|  4.42k|			{
  710|  4.42k|				gtpu_gtpc = "GTP-C message: " + getMessageTypeAsString();
  711|  4.42k|			}
  712|       |
  713|  13.8k|			res += ", " + gtpu_gtpc + ", TEID: " + teidStream.str();
  714|  13.8k|		}
  715|       |
  716|  13.8k|		return res;
  717|  13.8k|	}
_ZN4pcpp10GtpV1Layer22computeCalculateFieldsEv:
  720|  6.92k|	{
  721|  6.92k|		gtpv1_header* hdr = getHeader();
  722|  6.92k|		if (hdr == nullptr)
  ------------------
  |  Branch (722:7): [True: 0, False: 6.92k]
  ------------------
  723|      0|		{
  724|      0|			return;
  725|      0|		}
  726|       |
  727|  6.92k|		hdr->messageLength = htobe16(m_DataLen - sizeof(gtpv1_header));
  728|  6.92k|	}
_ZNK4pcpp16GtpV2MessageType8toStringEv:
  828|     74|	{
  829|     74|		auto iter = messageTypeMap.find(m_Value);
  830|     74|		if (iter != messageTypeMap.end())
  ------------------
  |  Branch (830:7): [True: 28, False: 46]
  ------------------
  831|     28|		{
  832|     28|			return iter->second;
  833|     28|		}
  834|       |
  835|     46|		return "Unknown GTPv2 Message Type";
  836|     74|	}
_ZN4pcpp16GtpV2MessageType13fromUintValueEh:
  926|     74|	{
  927|     74|		auto iter = uintToValueMap.find(value);
  928|     74|		if (iter != uintToValueMap.end())
  ------------------
  |  Branch (928:7): [True: 28, False: 46]
  ------------------
  929|     28|		{
  930|     28|			return iter->second;
  931|     28|		}
  932|       |
  933|     46|		return Unknown;
  934|     74|	}
_ZN4pcpp10GtpV2Layer11isDataValidEPKhm:
 1074|    369|	{
 1075|    369|		if (!data || dataSize < sizeof(gtpv2_basic_header) + sizeof(uint32_t))
  ------------------
  |  Branch (1075:7): [True: 0, False: 369]
  |  Branch (1075:16): [True: 42, False: 327]
  ------------------
 1076|     42|		{
 1077|     42|			return false;
 1078|     42|		}
 1079|       |
 1080|    327|		auto* header = reinterpret_cast<const gtpv2_basic_header*>(data);
 1081|       |
 1082|    327|		if (header->version != 2)
  ------------------
  |  Branch (1082:7): [True: 37, False: 290]
  ------------------
 1083|     37|		{
 1084|     37|			return false;
 1085|     37|		}
 1086|       |
 1087|       |		// When the TEID-present flag is set, the fixed header carries the 4-byte TEID before
 1088|       |		// the sequence-number word, so the minimum length grows accordingly. Without this
 1089|       |		// check accessors such as getSequenceNumber() would read past the buffer (GH #2171).
 1090|    290|		if (header->teidPresent && dataSize < sizeof(gtpv2_basic_header) + 2 * sizeof(uint32_t))
  ------------------
  |  Branch (1090:7): [True: 73, False: 217]
  |  Branch (1090:30): [True: 42, False: 31]
  ------------------
 1091|     42|		{
 1092|     42|			return false;
 1093|     42|		}
 1094|       |
 1095|    248|		return true;
 1096|    290|	}
_ZNK4pcpp10GtpV2Layer14getMessageTypeEv:
 1099|     74|	{
 1100|     74|		return GtpV2MessageType::fromUintValue(getHeader()->messageType);
 1101|     74|	}
_ZN4pcpp10GtpV2Layer14parseNextLayerEv:
 1362|    248|	{
 1363|    248|		auto headerLen = getHeaderLen();
 1364|    248|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (1364:7): [True: 47, False: 201]
  ------------------
 1365|     47|		{
 1366|     47|			return;
 1367|     47|		}
 1368|       |
 1369|    201|		auto* nextLayerData = m_Data + headerLen;
 1370|    201|		auto nextLayerDataLen = m_DataLen - headerLen;
 1371|       |
 1372|    201|		if (getHeader()->piggybacking)
  ------------------
  |  Branch (1372:7): [True: 139, False: 62]
  ------------------
 1373|    139|		{
 1374|    139|			tryConstructNextLayerWithFallback<GtpV2Layer, PayloadLayer>(nextLayerData, nextLayerDataLen);
 1375|    139|		}
 1376|     62|		else
 1377|     62|		{
 1378|     62|			constructNextLayer<PayloadLayer>(nextLayerData, nextLayerDataLen);
 1379|     62|		}
 1380|    201|	}
_ZNK4pcpp10GtpV2Layer12getHeaderLenEv:
 1383|    285|	{
 1384|    285|		auto messageLength = be16toh(getHeader()->messageLength) + sizeof(gtpv2_basic_header);
 1385|    285|		if (messageLength > m_DataLen)
  ------------------
  |  Branch (1385:7): [True: 55, False: 230]
  ------------------
 1386|     55|		{
 1387|     55|			return m_DataLen;
 1388|     55|		}
 1389|       |
 1390|    230|		return messageLength;
 1391|    285|	}
_ZN4pcpp10GtpV2Layer22computeCalculateFieldsEv:
 1394|     37|	{
 1395|     37|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (1395:7): [True: 7, False: 30]
  ------------------
 1396|      7|		{
 1397|      7|			return;
 1398|      7|		}
 1399|       |
 1400|     30|		if (m_NextLayer->getProtocol() == GTPv2)
  ------------------
  |  Branch (1400:7): [True: 14, False: 16]
  ------------------
 1401|     14|		{
 1402|     14|			getHeader()->piggybacking = 1;
 1403|     14|		}
 1404|     16|		else
 1405|     16|		{
 1406|     16|			getHeader()->piggybacking = 0;
 1407|     16|		}
 1408|     30|	}
_ZNK4pcpp10GtpV2Layer8toStringEv:
 1458|     74|	{
 1459|     74|		return "GTPv2 Layer, " + getMessageType().toString() + " message";
 1460|     74|	}
_ZNK4pcpp20GtpV2MessageTypeHashclERKNS_16GtpV2MessageTypeE:
  737|    238|		{
  738|    238|			return static_cast<uint8_t>(messageType);
  739|    238|		}

_ZN4pcpp16HttpRequestLayerC2EPhmPNS_5LayerEPNS_6PacketE:
   84|  7.25k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPRequest)
   85|  7.25k|	{
   86|  7.25k|		m_FirstLine = new HttpRequestFirstLine(this);
   87|  7.25k|		setFieldsOffset(m_FirstLine->getSize());
   88|  7.25k|		parseFields();
   89|  7.25k|	}
_ZN4pcpp16HttpRequestLayerD2Ev:
  130|  7.25k|	{
  131|  7.25k|		delete m_FirstLine;
  132|  7.25k|	}
_ZNK4pcpp16HttpRequestLayer8toStringEv:
  135|  2.80k|	{
  136|  2.80k|		static const int maxLengthToPrint = 120;
  137|  2.80k|		std::string result = "HTTP request, ";
  138|  2.80k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  139|  2.80k|		if (size <= 0)
  ------------------
  |  Branch (139:7): [True: 0, False: 2.80k]
  ------------------
  140|      0|		{
  141|      0|			result += std::string("CORRUPT DATA");
  142|      0|			return result;
  143|      0|		}
  144|  2.80k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (144:7): [True: 2.16k, False: 644]
  ------------------
  145|  2.16k|		{
  146|  2.16k|			char* firstLine = new char[size + 1];
  147|  2.16k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  148|  2.16k|			firstLine[size] = 0;
  149|  2.16k|			result += std::string(firstLine);
  150|  2.16k|			delete[] firstLine;
  151|  2.16k|		}
  152|    644|		else
  153|    644|		{
  154|    644|			char firstLine[maxLengthToPrint + 1];
  155|    644|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  156|    644|			firstLine[maxLengthToPrint - 3] = '.';
  157|    644|			firstLine[maxLengthToPrint - 2] = '.';
  158|    644|			firstLine[maxLengthToPrint - 1] = '.';
  159|    644|			firstLine[maxLengthToPrint] = 0;
  160|    644|			result += std::string(firstLine);
  161|    644|		}
  162|       |
  163|  2.80k|		return result;
  164|  2.80k|	}
_ZN4pcpp20HttpRequestFirstLineC2EPNS_16HttpRequestLayerE:
  192|  7.25k|	HttpRequestFirstLine::HttpRequestFirstLine(HttpRequestLayer* httpRequest) : m_HttpRequest(httpRequest)
  193|  7.25k|	{
  194|  7.25k|		m_Method = parseMethod((char*)m_HttpRequest->m_Data, m_HttpRequest->getDataLen());
  195|  7.25k|		if (m_Method == HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (195:7): [True: 0, False: 7.25k]
  ------------------
  196|      0|		{
  197|      0|			m_UriOffset = -1;
  198|      0|			PCPP_LOG_DEBUG("Couldn't resolve HTTP request method");
  ------------------
  |  |  427|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|      0|			m_IsComplete = false;
  200|      0|			m_Version = HttpVersionUnknown;
  201|      0|			m_VersionOffset = -1;
  202|      0|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  203|      0|			return;
  204|      0|		}
  205|  7.25k|		else
  206|  7.25k|		{
  207|  7.25k|			m_UriOffset = MethodEnumToString[m_Method].length() + 1;
  208|  7.25k|		}
  209|       |
  210|  7.25k|		parseVersion();
  211|  7.25k|		if (m_VersionOffset < 0)
  ------------------
  |  Branch (211:7): [True: 1.23k, False: 6.01k]
  ------------------
  212|  1.23k|		{
  213|  1.23k|			m_IsComplete = false;
  214|  1.23k|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  215|  1.23k|			return;
  216|  1.23k|		}
  217|       |
  218|  6.01k|		char* endOfFirstLine;
  219|  6.01k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpRequest->m_Data + m_VersionOffset), '\n',
  ------------------
  |  Branch (219:7): [True: 5.98k, False: 39]
  ------------------
  220|  6.01k|		                                    m_HttpRequest->m_DataLen - (size_t)m_VersionOffset)) != nullptr)
  221|  5.98k|		{
  222|  5.98k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpRequest->m_Data + 1;
  223|  5.98k|			m_IsComplete = true;
  224|  5.98k|		}
  225|     39|		else
  226|     39|		{
  227|     39|			m_FirstLineEndOffset = m_HttpRequest->getDataLen();
  228|     39|			m_IsComplete = false;
  229|     39|		}
  230|       |
  231|  6.01k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (231:7): [True: 0, False: 6.01k]
  ------------------
  232|      0|		{
  233|      0|			std::string method =
  234|      0|			    m_Method == HttpRequestLayer::HttpMethodUnknown ? "Unknown" : MethodEnumToString[m_Method];
  ------------------
  |  Branch (234:8): [True: 0, False: 0]
  ------------------
  235|      0|			PCPP_LOG_DEBUG("Method='" << method << "'; "
  ------------------
  |  |  427|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  236|      0|			                          << "HTTP version='" << VersionEnumToString[m_Version] << "'; "
  237|      0|			                          << "URI='" << getUri() << "'");
  238|      0|		}
  239|  6.01k|	}
_ZN4pcpp20HttpRequestFirstLine11parseMethodEPKcm:
  288|  31.7k|	{
  289|  31.7k|		if (!data || dataLen < 4)
  ------------------
  |  Branch (289:7): [True: 0, False: 31.7k]
  |  Branch (289:16): [True: 6.62k, False: 25.1k]
  ------------------
  290|  6.62k|		{
  291|  6.62k|			return HttpRequestLayer::HttpMethodUnknown;
  292|  6.62k|		}
  293|       |
  294|  25.1k|		size_t spaceIndex = 0;
  295|   618k|		while (spaceIndex < dataLen && data[spaceIndex] != ' ')
  ------------------
  |  Branch (295:10): [True: 614k, False: 3.30k]
  |  Branch (295:34): [True: 593k, False: 21.8k]
  ------------------
  296|   593k|		{
  297|   593k|			spaceIndex++;
  298|   593k|		}
  299|       |
  300|  25.1k|		if (spaceIndex == 0 || spaceIndex == dataLen)
  ------------------
  |  Branch (300:7): [True: 13, False: 25.1k]
  |  Branch (300:26): [True: 3.30k, False: 21.8k]
  ------------------
  301|  3.31k|		{
  302|  3.31k|			return HttpRequestLayer::HttpMethodUnknown;
  303|  3.31k|		}
  304|       |
  305|  21.8k|		auto methodAdEnum = HttpMethodStringToEnum.find(std::string(data, data + spaceIndex));
  306|  21.8k|		if (methodAdEnum == HttpMethodStringToEnum.end())
  ------------------
  |  Branch (306:7): [True: 7.31k, False: 14.5k]
  ------------------
  307|  7.31k|		{
  308|  7.31k|			return HttpRequestLayer::HttpMethodUnknown;
  309|  7.31k|		}
  310|  14.5k|		return methodAdEnum->second;
  311|  21.8k|	}
_ZN4pcpp20HttpRequestFirstLine12parseVersionEv:
  314|  7.25k|	{
  315|  7.25k|		char* data = (char*)(m_HttpRequest->m_Data + m_UriOffset);
  316|  7.25k|		char* verPos = cross_platform_memmem(data, m_HttpRequest->getDataLen() - m_UriOffset, " HTTP/", 6);
  317|  7.25k|		if (verPos == nullptr)
  ------------------
  |  Branch (317:7): [True: 1.22k, False: 6.02k]
  ------------------
  318|  1.22k|		{
  319|  1.22k|			m_Version = HttpVersionUnknown;
  320|  1.22k|			m_VersionOffset = -1;
  321|  1.22k|			return;
  322|  1.22k|		}
  323|       |
  324|       |		// verify packet doesn't end before the version, meaning still left place for " HTTP/x.y" (9 chars)
  325|  6.02k|		std::ptrdiff_t actualLen = verPos + 9 - (char*)m_HttpRequest->m_Data;
  326|  6.02k|		if (static_cast<size_t>(actualLen) > m_HttpRequest->getDataLen())
  ------------------
  |  Branch (326:7): [True: 5, False: 6.01k]
  ------------------
  327|      5|		{
  328|      5|			m_Version = HttpVersionUnknown;
  329|      5|			m_VersionOffset = -1;
  330|      5|			return;
  331|      5|		}
  332|       |
  333|       |		// skip " HTTP/" (6 chars)
  334|  6.01k|		verPos += 6;
  335|  6.01k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
  336|  6.01k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (336:7): [True: 1.80k, False: 4.21k]
  ------------------
  337|  1.80k|		{
  338|  1.80k|			m_Version = HttpVersionUnknown;
  339|  1.80k|		}
  340|  4.21k|		else
  341|  4.21k|		{
  342|  4.21k|			m_Version = versionAsEnum->second;
  343|  4.21k|		}
  344|       |
  345|  6.01k|		m_VersionOffset = verPos - (char*)m_HttpRequest->m_Data;
  346|  6.01k|	}
_ZN4pcpp22HttpResponseStatusCodeC2ERKiRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  556|  22.5k|	{
  557|  22.5k|		if (statusMessage != "")
  ------------------
  |  Branch (557:7): [True: 22.5k, False: 0]
  ------------------
  558|  22.5k|		{
  559|  22.5k|			m_CustomizedMessage = statusMessage;
  560|  22.5k|		}
  561|       |
  562|  22.5k|		if (intStatusCodeMap.find(statusCodeNumber) != intStatusCodeMap.end())
  ------------------
  |  Branch (562:7): [True: 21.7k, False: 758]
  ------------------
  563|  21.7k|		{
  564|  21.7k|			m_Value = intStatusCodeMap.at(statusCodeNumber);
  565|  21.7k|			return;
  566|  21.7k|		}
  567|       |
  568|    758|		if (statusCodeNumber >= 100 && statusCodeNumber <= 199)
  ------------------
  |  Branch (568:7): [True: 433, False: 325]
  |  Branch (568:34): [True: 240, False: 193]
  ------------------
  569|    240|		{
  570|    240|			m_Value = HttpResponseStatusCode::HttpStatus1xxCodeUnknown;
  571|    240|		}
  572|    518|		else if (statusCodeNumber >= 200 && statusCodeNumber <= 299)
  ------------------
  |  Branch (572:12): [True: 193, False: 325]
  |  Branch (572:39): [True: 76, False: 117]
  ------------------
  573|     76|		{
  574|     76|			m_Value = HttpResponseStatusCode::HttpStatus2xxCodeUnknown;
  575|     76|		}
  576|    442|		else if (statusCodeNumber >= 300 && statusCodeNumber <= 399)
  ------------------
  |  Branch (576:12): [True: 117, False: 325]
  |  Branch (576:39): [True: 6, False: 111]
  ------------------
  577|      6|		{
  578|      6|			m_Value = HttpResponseStatusCode::HttpStatus3xxCodeUnknown;
  579|      6|		}
  580|    436|		else if (statusCodeNumber >= 400 && statusCodeNumber <= 499)
  ------------------
  |  Branch (580:12): [True: 111, False: 325]
  |  Branch (580:39): [True: 70, False: 41]
  ------------------
  581|     70|		{
  582|     70|			m_Value = HttpResponseStatusCode::HttpStatus4xxCodeUnknown;
  583|     70|		}
  584|    366|		else if (statusCodeNumber >= 500 && statusCodeNumber <= 599)
  ------------------
  |  Branch (584:12): [True: 41, False: 325]
  |  Branch (584:39): [True: 35, False: 6]
  ------------------
  585|     35|		{
  586|     35|			m_Value = HttpResponseStatusCode::HttpStatus5xxCodeUnknown;
  587|     35|		}
  588|    758|	}
_ZN4pcpp17HttpResponseLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  712|  10.8k|	    : HttpMessage(data, dataLen, prevLayer, packet, HTTPResponse)
  713|  10.8k|	{
  714|  10.8k|		m_FirstLine = new HttpResponseFirstLine(this);
  715|  10.8k|		setFieldsOffset(m_FirstLine->getSize());
  716|  10.8k|		parseFields();
  717|  10.8k|	}
_ZN4pcpp17HttpResponseLayerD2Ev:
  735|  10.8k|	{
  736|  10.8k|		delete m_FirstLine;
  737|  10.8k|	}
_ZNK4pcpp17HttpResponseLayer8toStringEv:
  790|  4.17k|	{
  791|  4.17k|		static const int maxLengthToPrint = 120;
  792|  4.17k|		std::string result = "HTTP response, ";
  793|  4.17k|		int size = m_FirstLine->getSize() - 2;  // the -2 is to remove \r\n at the end of the first line
  794|  4.17k|		if (size <= maxLengthToPrint)
  ------------------
  |  Branch (794:7): [True: 4.15k, False: 20]
  ------------------
  795|  4.15k|		{
  796|  4.15k|			char* firstLine = new char[size + 1];
  797|  4.15k|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), size);
  798|  4.15k|			firstLine[size] = 0;
  799|  4.15k|			result += std::string(firstLine);
  800|  4.15k|			delete[] firstLine;
  801|  4.15k|		}
  802|     20|		else
  803|     20|		{
  804|     20|			char firstLine[maxLengthToPrint + 1];
  805|     20|			strncpy(firstLine, reinterpret_cast<char*>(m_Data), maxLengthToPrint - 3);
  806|     20|			firstLine[maxLengthToPrint - 3] = '.';
  807|     20|			firstLine[maxLengthToPrint - 2] = '.';
  808|     20|			firstLine[maxLengthToPrint - 1] = '.';
  809|     20|			firstLine[maxLengthToPrint] = 0;
  810|     20|			result += std::string(firstLine);
  811|     20|		}
  812|       |
  813|  4.17k|		return result;
  814|  4.17k|	}
_ZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcm:
  917|  23.0k|	{
  918|       |		// minimum data should be 12B long: "HTTP/x.y XXX"
  919|  23.0k|		if (!data || dataLen < 12)
  ------------------
  |  Branch (919:7): [True: 0, False: 23.0k]
  |  Branch (919:16): [True: 70, False: 23.0k]
  ------------------
  920|     70|		{
  921|     70|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  922|     70|		}
  923|       |
  924|  23.0k|		const std::string codeString = std::string(data + 9, 3);
  925|       |
  926|  23.0k|		if (codeString.empty() || (std::find_if(codeString.begin(), codeString.end(),
  ------------------
  |  Branch (926:7): [True: 0, False: 23.0k]
  |  Branch (926:7): [True: 266, False: 22.7k]
  |  Branch (926:29): [True: 266, False: 22.7k]
  ------------------
  927|  23.0k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
  928|    266|		{
  929|    266|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  930|    266|		}
  931|       |
  932|  22.7k|		constexpr size_t messageOffset = 13;  // expect "HTTP/x.y XXX YYY", YYY starts from 13
  933|  22.7k|		size_t offset = messageOffset;
  934|  22.7k|		bool isMessageFound = false;
  935|   156k|		while (offset < dataLen)
  ------------------
  |  Branch (935:10): [True: 156k, False: 190]
  ------------------
  936|   156k|		{
  937|   156k|			if (data[offset] == '\n')
  ------------------
  |  Branch (937:8): [True: 22.5k, False: 133k]
  ------------------
  938|  22.5k|			{
  939|  22.5k|				isMessageFound = true;
  940|  22.5k|				break;
  941|  22.5k|			}
  942|   133k|			offset++;
  943|   133k|		}
  944|       |
  945|  22.7k|		if (!isMessageFound)
  ------------------
  |  Branch (945:7): [True: 190, False: 22.5k]
  ------------------
  946|    190|		{
  947|    190|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  948|    190|		}
  949|       |
  950|  22.5k|		std::string messageString(data + messageOffset, offset - messageOffset);
  951|  22.5k|		if (!messageString.empty() && messageString.back() == '\r')
  ------------------
  |  Branch (951:7): [True: 22.5k, False: 36]
  |  Branch (951:33): [True: 21.8k, False: 699]
  ------------------
  952|  21.8k|		{
  953|  21.8k|			messageString.pop_back();
  954|  21.8k|		}
  955|  22.5k|		if (messageString.empty())
  ------------------
  |  Branch (955:7): [True: 52, False: 22.5k]
  ------------------
  956|     52|		{
  957|     52|			return HttpResponseStatusCode::HttpStatusCodeUnknown;
  958|     52|		}
  959|       |
  960|  22.5k|		return HttpResponseStatusCode(std::stoi(codeString), messageString);
  961|  22.5k|	}
_ZN4pcpp21HttpResponseFirstLineC2EPNS_17HttpResponseLayerE:
  963|  10.8k|	HttpResponseFirstLine::HttpResponseFirstLine(HttpResponseLayer* httpResponse) : m_HttpResponse(httpResponse)
  964|  10.8k|	{
  965|  10.8k|		m_Version = parseVersion((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  966|  10.8k|		if (m_Version == HttpVersionUnknown)
  ------------------
  |  Branch (966:7): [True: 0, False: 10.8k]
  ------------------
  967|      0|		{
  968|      0|			m_StatusCode = HttpResponseStatusCode::HttpStatusCodeUnknown;
  969|      0|		}
  970|  10.8k|		else
  971|  10.8k|		{
  972|  10.8k|			m_StatusCode = parseStatusCode((char*)m_HttpResponse->m_Data, m_HttpResponse->getDataLen());
  973|  10.8k|		}
  974|       |
  975|  10.8k|		char* endOfFirstLine;
  976|  10.8k|		if ((endOfFirstLine = (char*)memchr((char*)(m_HttpResponse->m_Data), '\n', m_HttpResponse->m_DataLen)) !=
  ------------------
  |  Branch (976:7): [True: 10.8k, False: 0]
  ------------------
  977|  10.8k|		    nullptr)
  978|  10.8k|		{
  979|  10.8k|			m_FirstLineEndOffset = endOfFirstLine - (char*)m_HttpResponse->m_Data + 1;
  980|  10.8k|			m_IsComplete = true;
  981|  10.8k|		}
  982|      0|		else
  983|      0|		{
  984|      0|			m_FirstLineEndOffset = m_HttpResponse->getDataLen();
  985|      0|			m_IsComplete = false;
  986|      0|		}
  987|       |
  988|  10.8k|		if (Logger::getInstance().isDebugEnabled(PacketLogModuleHttpLayer))
  ------------------
  |  Branch (988:7): [True: 0, False: 10.8k]
  ------------------
  989|      0|		{
  990|      0|			std::string version = (m_Version == HttpVersionUnknown ? "Unknown" : VersionEnumToString[m_Version]);
  ------------------
  |  Branch (990:27): [True: 0, False: 0]
  ------------------
  991|      0|			int statusCode = (m_StatusCode == HttpResponseStatusCode::HttpStatusCodeUnknown ? 0 : m_StatusCode.toInt());
  ------------------
  |  Branch (991:22): [True: 0, False: 0]
  ------------------
  992|      0|			PCPP_LOG_DEBUG("Version='" << version << "'; Status code=" << statusCode << " '" << getStatusCodeString()
  ------------------
  |  |  427|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  993|      0|			                           << "'");
  994|      0|		}
  995|  10.8k|	}
_ZN4pcpp21HttpResponseFirstLine12parseVersionEPKcm:
 1031|  51.5k|	{
 1032|  51.5k|		if (!data || dataLen < 8)  // "HTTP/x.y"
  ------------------
  |  Branch (1032:7): [True: 0, False: 51.5k]
  |  Branch (1032:16): [True: 218, False: 51.3k]
  ------------------
 1033|    218|		{
 1034|    218|			PCPP_LOG_DEBUG("HTTP response length < 8, cannot identify version");
  ------------------
  |  |  427|    218|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    218|	do                                                                                                                 \
  |  |  |  |  415|    218|	{                                                                                                                  \
  |  |  |  |  416|    218|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    218|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    218|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 218]
  |  |  |  |  ------------------
  |  |  |  |  418|    218|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    218|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 218]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1035|    218|			return HttpVersionUnknown;
 1036|    218|		}
 1037|       |
 1038|  51.3k|		if (data[0] != 'H' || data[1] != 'T' || data[2] != 'T' || data[3] != 'P' || data[4] != '/')
  ------------------
  |  Branch (1038:7): [True: 26.6k, False: 24.6k]
  |  Branch (1038:25): [True: 475, False: 24.1k]
  |  Branch (1038:43): [True: 123, False: 24.0k]
  |  Branch (1038:61): [True: 226, False: 23.7k]
  |  Branch (1038:79): [True: 81, False: 23.7k]
  ------------------
 1039|  27.6k|		{
 1040|  27.6k|			PCPP_LOG_DEBUG("HTTP response does not begin with 'HTTP/'");
  ------------------
  |  |  427|  27.6k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  27.6k|	do                                                                                                                 \
  |  |  |  |  415|  27.6k|	{                                                                                                                  \
  |  |  |  |  416|  27.6k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  27.6k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  27.6k|#define LOG_MODULE PacketLogModuleHttpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 27.6k]
  |  |  |  |  ------------------
  |  |  |  |  418|  27.6k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  27.6k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 27.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1041|  27.6k|			return HttpVersionUnknown;
 1042|  27.6k|		}
 1043|       |
 1044|  23.7k|		const char* verPos = data + 5;
 1045|  23.7k|		auto versionAsEnum = HttpVersionStringToEnum.find(std::string(verPos, verPos + 3));
 1046|  23.7k|		if (versionAsEnum == HttpVersionStringToEnum.end())
  ------------------
  |  Branch (1046:7): [True: 615, False: 23.0k]
  ------------------
 1047|    615|		{
 1048|    615|			return HttpVersionUnknown;
 1049|    615|		}
 1050|  23.0k|		return versionAsEnum->second;
 1051|  23.7k|	}
HttpLayer.cpp:_ZZN4pcpp21HttpResponseFirstLine15parseStatusCodeEPKcmENK3$_0clEh:
  927|  68.7k|		                                        [](unsigned char c) { return !std::isdigit(c); }) != codeString.end()))
_ZNK4pcpp26HttpResponseStatusCodeHashclERKNS_22HttpResponseStatusCodeE:
  595|    178|		{
  596|    178|			return static_cast<int>(status);
  597|    178|		}

_ZN4pcpp7IPLayer12getIPVersionEPKhm:
    6|  2.15k|	{
    7|       |		// The data requires at least 1 byte of valid buffer
    8|  2.15k|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (8:7): [True: 0, False: 2.15k]
  |  Branch (8:26): [True: 0, False: 2.15k]
  ------------------
    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|  2.15k|		uint8_t version = data[0] >> 4;
   15|       |
   16|  2.15k|		switch (version)
   17|  2.15k|		{
   18|  1.79k|		case 4:
  ------------------
  |  Branch (18:3): [True: 1.79k, False: 363]
  ------------------
   19|  1.79k|			return IPv4;
   20|     91|		case 6:
  ------------------
  |  Branch (20:3): [True: 91, False: 2.06k]
  ------------------
   21|     91|			return IPv6;
   22|    272|		default:
  ------------------
  |  Branch (22:3): [True: 272, False: 1.88k]
  ------------------
   23|    272|			return UnknownProtocol;
   24|  2.15k|		}
   25|  2.15k|	}

_ZN4pcpp25AuthenticationHeaderLayer14parseNextLayerEv:
   55|  4.57k|	{
   56|  4.57k|		size_t headerLen = getHeaderLen();
   57|  4.57k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (57:7): [True: 4, False: 4.56k]
  ------------------
   58|      4|			return;
   59|       |
   60|  4.56k|		uint8_t* payload = m_Data + headerLen;
   61|  4.56k|		size_t payloadLen = m_DataLen - headerLen;
   62|       |
   63|  4.56k|		switch (getAHHeader()->nextHeader)
   64|  4.56k|		{
   65|      7|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (65:3): [True: 7, False: 4.56k]
  ------------------
   66|      7|		{
   67|      7|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
   68|      7|			break;
   69|      0|		}
   70|    157|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (70:3): [True: 157, False: 4.41k]
  ------------------
   71|    157|		{
   72|    157|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen);
   73|    157|			break;
   74|      0|		}
   75|     35|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (75:3): [True: 35, False: 4.53k]
  ------------------
   76|     35|		{
   77|     35|			uint8_t ipVersion = *payload >> 4;
   78|     35|			switch (ipVersion)
   79|     35|			{
   80|     13|			case 4:
  ------------------
  |  Branch (80:4): [True: 13, False: 22]
  ------------------
   81|     13|			{
   82|     13|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   83|     13|				break;
   84|      0|			}
   85|     15|			case 6:
  ------------------
  |  Branch (85:4): [True: 15, False: 20]
  ------------------
   86|     15|			{
   87|     15|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   88|     15|				break;
   89|      0|			}
   90|      7|			default:
  ------------------
  |  Branch (90:4): [True: 7, False: 28]
  ------------------
   91|      7|			{
   92|      7|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   93|      7|				break;
   94|      0|			}
   95|     35|			}
   96|     35|			break;
   97|     35|		}
   98|  2.19k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (98:3): [True: 2.19k, False: 2.37k]
  ------------------
   99|  2.19k|		{
  100|  2.19k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  101|  2.19k|			break;
  102|     35|		}
  103|  2.17k|		default:
  ------------------
  |  Branch (103:3): [True: 2.17k, False: 2.38k]
  ------------------
  104|  2.17k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  105|  4.56k|		}
  106|  4.56k|	}
_ZNK4pcpp25AuthenticationHeaderLayer8toStringEv:
  109|  1.47k|	{
  110|  1.47k|		return "Authentication Header Layer";
  111|  1.47k|	}
_ZNK4pcpp8ESPLayer6getSPIEv:
  131|  2.00k|	{
  132|       |		return be32toh(getESPHeader()->spi);
  133|  2.00k|	}
_ZN4pcpp8ESPLayer14parseNextLayerEv:
  141|  5.78k|	{
  142|  5.78k|		size_t headerLen = getHeaderLen();
  143|  5.78k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (143:7): [True: 1.79k, False: 3.98k]
  ------------------
  144|  1.79k|			return;
  145|       |
  146|  3.98k|		constructNextLayer<PayloadLayer>(m_Data + headerLen, m_DataLen - headerLen);
  147|  3.98k|	}
_ZNK4pcpp8ESPLayer8toStringEv:
  150|  2.00k|	{
  151|  2.00k|		std::ostringstream stream;
  152|  2.00k|		stream << "ESP Layer, SPI: 0x" << std::hex << getSPI();
  153|  2.00k|		return stream.str();
  154|  2.00k|	}

_ZN4pcpp9IPv4Layer17initLayerInPacketEb:
  231|  1.05M|	{
  232|  1.05M|		m_Protocol = IPv4;
  233|  1.05M|		m_NumOfTrailingBytes = 0;
  234|  1.05M|		m_TempHeaderExtension = 0;
  235|  1.05M|		if (setTotalLenAsDataLen)
  ------------------
  |  Branch (235:7): [True: 1.05M, False: 0]
  ------------------
  236|  1.05M|		{
  237|  1.05M|			size_t totalLen = be16toh(getIPv4Header()->totalLength);
  238|       |			// if totalLen == 0 this usually means TCP Segmentation Offload (TSO). In this case we should ignore the
  239|       |			// value of totalLen and look at the data captured on the wire
  240|  1.05M|			if ((totalLen < m_DataLen) && (totalLen != 0))
  ------------------
  |  Branch (240:8): [True: 239k, False: 812k]
  |  Branch (240:34): [True: 229k, False: 10.0k]
  ------------------
  241|   229k|			{
  242|   229k|				auto headerLen = (std::min)(getHeaderLen(), m_DataLen);
  243|       |				// Make sure totalLen is larger than header len, otherwise it's a malformed packet
  244|   229k|				m_DataLen = (std::max)(totalLen, headerLen);
  245|   229k|			}
  246|  1.05M|		}
  247|  1.05M|	}
_ZN4pcpp9IPv4LayerC2EPhmPNS_5LayerEPNS_6PacketE:
  268|  1.05M|	    : Layer(data, dataLen, prevLayer, packet)
  269|  1.05M|	{
  270|  1.05M|		initLayerInPacket(true);
  271|  1.05M|	}
_ZN4pcpp9IPv4Layer14parseNextLayerEv:
  296|  1.05M|	{
  297|  1.05M|		size_t hdrLen = getHeaderLen();
  298|  1.05M|		if (m_DataLen <= hdrLen || hdrLen == 0)
  ------------------
  |  Branch (298:7): [True: 1.64k, False: 1.05M]
  |  Branch (298:30): [True: 0, False: 1.05M]
  ------------------
  299|  1.64k|			return;
  300|       |
  301|  1.05M|		iphdr* ipHdr = getIPv4Header();
  302|       |
  303|  1.05M|		uint8_t* payload = m_Data + hdrLen;
  304|  1.05M|		size_t payloadLen = m_DataLen - hdrLen;
  305|       |
  306|       |		// If it's a fragment don't parse upper layers, unless if it's the first fragment
  307|       |		// TODO: assuming first fragment contains at least L4 header, what if it's not true?
  308|  1.05M|		if (isFragment())
  ------------------
  |  Branch (308:7): [True: 9.88k, False: 1.04M]
  ------------------
  309|  9.88k|		{
  310|  9.88k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  311|  9.88k|			return;
  312|  9.88k|		}
  313|       |
  314|  1.04M|		switch (ipHdr->protocol)
  ------------------
  |  Branch (314:11): [True: 1.03M, False: 1.87k]
  ------------------
  315|  1.04M|		{
  316|   384k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (316:3): [True: 384k, False: 656k]
  ------------------
  317|   384k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  318|   384k|			break;
  319|   473k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (319:3): [True: 473k, False: 567k]
  ------------------
  320|   473k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  321|   473k|			break;
  322|  46.3k|		case PACKETPP_IPPROTO_ICMP:
  ------------------
  |  Branch (322:3): [True: 46.3k, False: 994k]
  ------------------
  323|  46.3k|			tryConstructNextLayerWithFallback<IcmpLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  324|  46.3k|			break;
  325|  2.15k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (325:3): [True: 2.15k, False: 1.03M]
  ------------------
  326|  2.15k|		{
  327|       |			// todo: no tests for this case
  328|  2.15k|			switch (IPLayer::getIPVersion(payload, payloadLen))
  329|  2.15k|			{
  330|  1.79k|			case IPv4:
  ------------------
  |  Branch (330:4): [True: 1.79k, False: 363]
  ------------------
  331|  1.79k|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  332|  1.79k|				break;
  333|     91|			case IPv6:
  ------------------
  |  Branch (333:4): [True: 91, False: 2.06k]
  ------------------
  334|     91|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  335|     91|				break;
  336|    272|			default:
  ------------------
  |  Branch (336:4): [True: 272, False: 1.88k]
  ------------------
  337|    272|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  338|    272|				break;
  339|  2.15k|			}
  340|  2.15k|			break;
  341|  2.15k|		}
  342|   103k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (342:3): [True: 103k, False: 938k]
  ------------------
  343|   103k|		{
  344|   103k|			switch (GreLayer::getGREVersion(payload, payloadLen))
  345|   103k|			{
  346|  3.95k|			case GREv0:
  ------------------
  |  Branch (346:4): [True: 3.95k, False: 99.3k]
  ------------------
  347|  3.95k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  348|  3.95k|				break;
  349|  99.0k|			case GREv1:
  ------------------
  |  Branch (349:4): [True: 99.0k, False: 4.21k]
  ------------------
  350|  99.0k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  351|  99.0k|				break;
  352|    256|			default:
  ------------------
  |  Branch (352:4): [True: 256, False: 103k]
  ------------------
  353|    256|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  354|    256|				break;
  355|   103k|			};
  356|   103k|			break;
  357|   103k|		}
  358|  15.3k|		case PACKETPP_IPPROTO_IGMP:
  ------------------
  |  Branch (358:3): [True: 15.3k, False: 1.02M]
  ------------------
  359|  15.3k|		{
  360|  15.3k|			bool igmpQuery = false;
  361|  15.3k|			ProtocolType igmpVer = IgmpLayer::getIGMPVerFromData(
  362|  15.3k|			    payload, std::min<size_t>(payloadLen, be16toh(getIPv4Header()->totalLength) - hdrLen), igmpQuery);
  363|       |
  364|  15.3k|			switch (igmpVer)
  365|  15.3k|			{
  366|  3.50k|			case IGMPv1:
  ------------------
  |  Branch (366:4): [True: 3.50k, False: 11.8k]
  ------------------
  367|  3.50k|				tryConstructNextLayerWithFallback<IgmpV1Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  368|  3.50k|				break;
  369|  7.01k|			case IGMPv2:
  ------------------
  |  Branch (369:4): [True: 7.01k, False: 8.28k]
  ------------------
  370|  7.01k|				tryConstructNextLayerWithFallback<IgmpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  371|  7.01k|				break;
  372|  4.01k|			case IGMPv3:
  ------------------
  |  Branch (372:4): [True: 4.01k, False: 11.2k]
  ------------------
  373|  4.01k|			{
  374|  4.01k|				if (igmpQuery)
  ------------------
  |  Branch (374:9): [True: 1.78k, False: 2.22k]
  ------------------
  375|  1.78k|					tryConstructNextLayerWithFallback<IgmpV3QueryLayer, PayloadLayer>(payload, payloadLen,
  376|  1.78k|					                                                                  getAttachedPacket());
  377|  2.22k|				else
  378|  2.22k|					tryConstructNextLayerWithFallback<IgmpV3ReportLayer, PayloadLayer>(payload, payloadLen,
  379|  2.22k|					                                                                   getAttachedPacket());
  380|  4.01k|				break;
  381|      0|			}
  382|    775|			default:
  ------------------
  |  Branch (382:4): [True: 775, False: 14.5k]
  ------------------
  383|    775|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  384|    775|				break;
  385|  15.3k|			}
  386|  15.3k|			break;
  387|  15.3k|		}
  388|  15.3k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (388:3): [True: 4.98k, False: 1.03M]
  ------------------
  389|  4.98k|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen,
  390|  4.98k|			                                                                           getAttachedPacket());
  391|  4.98k|			break;
  392|  2.67k|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (392:3): [True: 2.67k, False: 1.03M]
  ------------------
  393|  2.67k|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  394|  2.67k|			break;
  395|    279|		case PACKETPP_IPPROTO_IPV6:
  ------------------
  |  Branch (395:3): [True: 279, False: 1.04M]
  ------------------
  396|    279|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  397|    279|			break;
  398|  5.66k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (398:3): [True: 5.66k, False: 1.03M]
  ------------------
  399|  5.66k|		{
  400|  5.66k|			switch (VrrpLayer::getVersionFromData(payload, payloadLen))
  401|  5.66k|			{
  402|  3.06k|			case VRRPv2:
  ------------------
  |  Branch (402:4): [True: 3.06k, False: 2.59k]
  ------------------
  403|  3.06k|				tryConstructNextLayerWithFallback<VrrpV2Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket());
  404|  3.06k|				break;
  405|  2.36k|			case VRRPv3:
  ------------------
  |  Branch (405:4): [True: 2.36k, False: 3.29k]
  ------------------
  406|  2.36k|				tryConstructNextLayerWithFallback<VrrpV3Layer, PayloadLayer>(payload, payloadLen, getAttachedPacket(),
  407|  2.36k|				                                                             IPAddress::IPv4AddressType);
  408|  2.36k|				break;
  409|    235|			default:
  ------------------
  |  Branch (409:4): [True: 235, False: 5.42k]
  ------------------
  410|    235|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  411|    235|				break;
  412|  5.66k|			}
  413|  5.66k|			break;
  414|  5.66k|		}
  415|  1.04M|		}
  416|       |
  417|       |		// If no next layer was constructed, assume it's a payload layer
  418|  1.04M|		if (!hasNextLayer())
  ------------------
  |  Branch (418:7): [True: 1.87k, False: 1.03M]
  ------------------
  419|  1.87k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  420|  1.04M|	}
_ZN4pcpp9IPv4Layer22computeCalculateFieldsEv:
  423|   172k|	{
  424|   172k|		auto* ipHdr = getIPv4Header();
  425|   172k|		ipHdr->ipVersion = (4 & 0x0f);
  426|   172k|		ipHdr->totalLength = htobe16(m_DataLen);
  427|   172k|		ipHdr->headerChecksum = 0;
  428|       |
  429|   172k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (429:7): [True: 172k, False: 224]
  ------------------
  430|   172k|		{
  431|   172k|			switch (m_NextLayer->getProtocol())
  432|   172k|			{
  433|  85.8k|			case TCP:
  ------------------
  |  Branch (433:4): [True: 85.8k, False: 86.2k]
  ------------------
  434|  85.8k|				ipHdr->protocol = PACKETPP_IPPROTO_TCP;
  435|  85.8k|				break;
  436|  57.3k|			case UDP:
  ------------------
  |  Branch (436:4): [True: 57.3k, False: 114k]
  ------------------
  437|  57.3k|				ipHdr->protocol = PACKETPP_IPPROTO_UDP;
  438|  57.3k|				break;
  439|  8.31k|			case ICMP:
  ------------------
  |  Branch (439:4): [True: 8.31k, False: 163k]
  ------------------
  440|  8.31k|				ipHdr->protocol = PACKETPP_IPPROTO_ICMP;
  441|  8.31k|				break;
  442|    732|			case GREv0:
  ------------------
  |  Branch (442:4): [True: 732, False: 171k]
  ------------------
  443|  10.0k|			case GREv1:
  ------------------
  |  Branch (443:4): [True: 9.35k, False: 162k]
  ------------------
  444|  10.0k|				ipHdr->protocol = PACKETPP_IPPROTO_GRE;
  445|  10.0k|				break;
  446|    724|			case IGMPv1:
  ------------------
  |  Branch (446:4): [True: 724, False: 171k]
  ------------------
  447|  2.13k|			case IGMPv2:
  ------------------
  |  Branch (447:4): [True: 1.41k, False: 170k]
  ------------------
  448|  3.02k|			case IGMPv3:
  ------------------
  |  Branch (448:4): [True: 893, False: 171k]
  ------------------
  449|  3.02k|				ipHdr->protocol = PACKETPP_IPPROTO_IGMP;
  450|  3.02k|				break;
  451|    739|			case VRRPv2:
  ------------------
  |  Branch (451:4): [True: 739, False: 171k]
  ------------------
  452|  1.29k|			case VRRPv3:
  ------------------
  |  Branch (452:4): [True: 560, False: 171k]
  ------------------
  453|  1.29k|				ipHdr->protocol = PACKETPP_IPPROTO_VRRP;
  454|  1.29k|				break;
  455|  6.16k|			default:
  ------------------
  |  Branch (455:4): [True: 6.16k, False: 165k]
  ------------------
  456|  6.16k|				break;
  457|   172k|			}
  458|   172k|		}
  459|       |
  460|   172k|		auto headerLen = (std::min)(static_cast<size_t>(ipHdr->internetHeaderLength * 4), m_DataLen);
  461|   172k|		ScalarBuffer<uint16_t> scalar = { reinterpret_cast<uint16_t*>(ipHdr), headerLen };
  462|       |		ipHdr->headerChecksum = htobe16(computeChecksum(&scalar, 1));
  463|   172k|	}
_ZNK4pcpp9IPv4Layer10isFragmentEv:
  466|  1.40M|	{
  467|  1.40M|		return ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) != 0 || getFragmentOffset() != 0);
  ------------------
  |  |  156|  1.40M|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (467:11): [True: 7.81k, False: 1.39M]
  |  Branch (467:65): [True: 13.9k, False: 1.38M]
  ------------------
  468|  1.40M|	}
_ZNK4pcpp9IPv4Layer15isFirstFragmentEv:
  471|  4.04k|	{
  472|  4.04k|		return isFragment() && (getFragmentOffset() == 0);
  ------------------
  |  Branch (472:10): [True: 4.04k, False: 0]
  |  Branch (472:26): [True: 250, False: 3.79k]
  ------------------
  473|  4.04k|	}
_ZNK4pcpp9IPv4Layer14isLastFragmentEv:
  476|  3.79k|	{
  477|  3.79k|		return isFragment() && ((getFragmentFlags() & PCPP_IP_MORE_FRAGMENTS) == 0);
  ------------------
  |  |  156|  3.79k|#define PCPP_IP_MORE_FRAGMENTS 0x20
  ------------------
  |  Branch (477:10): [True: 3.79k, False: 0]
  |  Branch (477:26): [True: 2.42k, False: 1.37k]
  ------------------
  478|  3.79k|	}
_ZNK4pcpp9IPv4Layer16getFragmentFlagsEv:
  481|  1.40M|	{
  482|  1.40M|		return getIPv4Header()->fragmentOffset & 0xE0;
  483|  1.40M|	}
_ZNK4pcpp9IPv4Layer17getFragmentOffsetEv:
  486|  1.40M|	{
  487|       |		return be16toh(getIPv4Header()->fragmentOffset & (uint16_t)0xFF1F) * 8;
  488|  1.40M|	}
_ZNK4pcpp9IPv4Layer8toStringEv:
  491|   344k|	{
  492|   344k|		std::string fragment = "";
  493|   344k|		if (isFragment())
  ------------------
  |  Branch (493:7): [True: 4.04k, False: 340k]
  ------------------
  494|  4.04k|		{
  495|  4.04k|			if (isFirstFragment())
  ------------------
  |  Branch (495:8): [True: 250, False: 3.79k]
  ------------------
  496|    250|				fragment = "First fragment";
  497|  3.79k|			else if (isLastFragment())
  ------------------
  |  Branch (497:13): [True: 2.42k, False: 1.37k]
  ------------------
  498|  2.42k|				fragment = "Last fragment";
  499|  1.37k|			else
  500|  1.37k|				fragment = "Fragment";
  501|       |
  502|  4.04k|			std::stringstream sstm;
  503|  4.04k|			sstm << fragment << " [offset= " << getFragmentOffset() << "], ";
  504|  4.04k|			fragment = sstm.str();
  505|  4.04k|		}
  506|       |
  507|   344k|		return "IPv4 Layer, " + fragment + "Src: " + getSrcIPv4Address().toString() +
  508|   344k|		       ", Dst: " + getDstIPv4Address().toString();
  509|   344k|	}

_ZNK4pcpp13IPv6Extension10getDataPtrEv:
   30|  69.9k|	{
   31|  69.9k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (31:7): [True: 69.9k, False: 0]
  ------------------
   32|  69.9k|			return m_DataContainer->getDataPtr(m_Offset);
   33|       |
   34|      0|		return m_ShadowData;
   35|  69.9k|	}
_ZN4pcpp13IPv6ExtensionD2Ev:
   43|  19.8k|	{
   44|  19.8k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (44:7): [True: 0, False: 19.8k]
  ------------------
   45|      0|			delete[] m_ShadowData;
   46|  19.8k|	}
_ZNK4pcpp13IPv6Extension24getExtensionTypeAsStringEv:
   49|  9.13k|	{
   50|  9.13k|		switch (m_ExtType)
   51|  9.13k|		{
   52|    174|		case IPv6Fragmentation:
  ------------------
  |  Branch (52:3): [True: 174, False: 8.96k]
  ------------------
   53|    174|			return "Fragment";
   54|  7.48k|		case IPv6HopByHop:
  ------------------
  |  Branch (54:3): [True: 7.48k, False: 1.65k]
  ------------------
   55|  7.48k|			return "Hop-By-Hop";
   56|     12|		case IPv6Destination:
  ------------------
  |  Branch (56:3): [True: 12, False: 9.12k]
  ------------------
   57|     12|			return "Destination";
   58|    754|		case IPv6Routing:
  ------------------
  |  Branch (58:3): [True: 754, False: 8.38k]
  ------------------
   59|    754|			return "Routing";
   60|    714|		case IPv6AuthenticationHdr:
  ------------------
  |  Branch (60:3): [True: 714, False: 8.42k]
  ------------------
   61|    714|			return "Authentication";
   62|      0|		default:
  ------------------
  |  Branch (62:3): [True: 0, False: 9.13k]
  ------------------
   63|      0|			return "Unknown";
   64|  9.13k|		}
   65|  9.13k|	}
_ZN4pcpp19IPv6TLVOptionHeaderC2EPNS_14IDataContainerEm:
  205|  17.3k|	    : IPv6Extension(dataContainer, offset)
  206|  17.3k|	{}

_ZN4pcpp9IPv6LayerC2EPhmPNS_5LayerEPNS_6PacketE:
   30|   171k|	    : Layer(data, dataLen, prevLayer, packet, IPv6)
   31|   171k|	{
   32|   171k|		m_FirstExtension = nullptr;
   33|   171k|		m_LastExtension = nullptr;
   34|   171k|		m_ExtensionsLen = 0;
   35|       |
   36|   171k|		parseExtensions();
   37|       |
   38|   171k|		size_t totalLen = be16toh(getIPv6Header()->payloadLength) + getHeaderLen();
   39|   171k|		if (totalLen < m_DataLen)
  ------------------
  |  Branch (39:7): [True: 95.1k, False: 76.4k]
  ------------------
   40|  95.1k|			m_DataLen = totalLen;
   41|   171k|	}
_ZN4pcpp9IPv6LayerD2Ev:
   65|   171k|	{
   66|   171k|		deleteExtensions();
   67|   171k|	}
_ZN4pcpp9IPv6Layer15parseExtensionsEv:
   81|   171k|	{
   82|   171k|		uint8_t nextHdr = getIPv6Header()->nextHeader;
   83|   171k|		IPv6Extension* curExt = nullptr;
   84|       |
   85|   171k|		size_t offset = sizeof(ip6_hdr);
   86|       |
   87|   191k|		while (offset <= m_DataLen - 2 * sizeof(uint8_t))  // 2*sizeof(uint8_t) is the min len for IPv6 extensions
  ------------------
  |  Branch (87:10): [True: 188k, False: 2.49k]
  ------------------
   88|   188k|		{
   89|   188k|			IPv6Extension* newExt = nullptr;
   90|       |
   91|   188k|			switch (nextHdr)
   92|   188k|			{
   93|    389|			case PACKETPP_IPPROTO_FRAGMENT:
  ------------------
  |  Branch (93:4): [True: 389, False: 188k]
  ------------------
   94|    389|			{
   95|    389|				newExt = new IPv6FragmentationHeader(this, offset);
   96|    389|				break;
   97|      0|			}
   98|  17.2k|			case PACKETPP_IPPROTO_HOPOPTS:
  ------------------
  |  Branch (98:4): [True: 17.2k, False: 171k]
  ------------------
   99|  17.2k|			{
  100|  17.2k|				newExt = new IPv6HopByHopHeader(this, offset);
  101|  17.2k|				break;
  102|      0|			}
  103|     24|			case PACKETPP_IPPROTO_DSTOPTS:
  ------------------
  |  Branch (103:4): [True: 24, False: 188k]
  ------------------
  104|     24|			{
  105|     24|				newExt = new IPv6DestinationHeader(this, offset);
  106|     24|				break;
  107|      0|			}
  108|  1.01k|			case PACKETPP_IPPROTO_ROUTING:
  ------------------
  |  Branch (108:4): [True: 1.01k, False: 187k]
  ------------------
  109|  1.01k|			{
  110|  1.01k|				newExt = new IPv6RoutingHeader(this, offset);
  111|  1.01k|				break;
  112|      0|			}
  113|  1.08k|			case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (113:4): [True: 1.08k, False: 187k]
  ------------------
  114|  1.08k|			{
  115|  1.08k|				newExt = new IPv6AuthenticationHeader(this, offset);
  116|  1.08k|				break;
  117|      0|			}
  118|   169k|			default:
  ------------------
  |  Branch (118:4): [True: 169k, False: 19.8k]
  ------------------
  119|   169k|			{
  120|   169k|				break;
  121|      0|			}
  122|   188k|			}
  123|       |
  124|   188k|			if (newExt == nullptr)
  ------------------
  |  Branch (124:8): [True: 169k, False: 19.8k]
  ------------------
  125|   169k|				break;
  126|       |
  127|  19.8k|			if (m_FirstExtension == nullptr)
  ------------------
  |  Branch (127:8): [True: 12.1k, False: 7.62k]
  ------------------
  128|  12.1k|			{
  129|  12.1k|				m_FirstExtension = newExt;
  130|  12.1k|				curExt = m_FirstExtension;
  131|  12.1k|			}
  132|  7.62k|			else
  133|  7.62k|			{
  134|  7.62k|				if (curExt == nullptr)
  ------------------
  |  Branch (134:9): [True: 0, False: 7.62k]
  ------------------
  135|      0|				{
  136|      0|					throw std::logic_error("curExt is nullptr");
  137|      0|				}
  138|  7.62k|				curExt->setNextHeader(newExt);
  139|  7.62k|				curExt = curExt->getNextHeader();
  140|  7.62k|			}
  141|       |
  142|  19.8k|			offset += newExt->getExtensionLen();
  143|  19.8k|			nextHdr = newExt->getBaseHeader()->nextHeader;
  144|  19.8k|			m_ExtensionsLen += newExt->getExtensionLen();
  145|  19.8k|		}
  146|       |
  147|   171k|		m_LastExtension = curExt;
  148|   171k|	}
_ZN4pcpp9IPv6Layer16deleteExtensionsEv:
  151|   171k|	{
  152|   171k|		IPv6Extension* curExt = m_FirstExtension;
  153|   191k|		while (curExt != nullptr)
  ------------------
  |  Branch (153:10): [True: 19.8k, False: 171k]
  ------------------
  154|  19.8k|		{
  155|  19.8k|			IPv6Extension* tmpExt = curExt->getNextHeader();
  156|  19.8k|			delete curExt;
  157|  19.8k|			curExt = tmpExt;
  158|  19.8k|		}
  159|       |
  160|   171k|		m_FirstExtension = nullptr;
  161|   171k|		m_LastExtension = nullptr;
  162|   171k|		m_ExtensionsLen = 0;
  163|   171k|	}
_ZN4pcpp9IPv6Layer14parseNextLayerEv:
  196|   171k|	{
  197|   171k|		size_t headerLen = getHeaderLen();
  198|       |
  199|   171k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (199:7): [True: 2.57k, False: 169k]
  ------------------
  200|  2.57k|			return;
  201|       |
  202|   169k|		uint8_t* payload = m_Data + headerLen;
  203|   169k|		size_t payloadLen = m_DataLen - headerLen;
  204|       |
  205|   169k|		uint8_t nextHdr;
  206|   169k|		if (m_LastExtension != nullptr)
  ------------------
  |  Branch (206:7): [True: 9.61k, False: 159k]
  ------------------
  207|  9.61k|		{
  208|  9.61k|			if (m_LastExtension->getExtensionType() == IPv6Extension::IPv6Fragmentation)
  ------------------
  |  Branch (208:8): [True: 31, False: 9.58k]
  ------------------
  209|     31|			{
  210|     31|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  211|     31|				return;
  212|     31|			}
  213|       |
  214|  9.58k|			nextHdr = m_LastExtension->getBaseHeader()->nextHeader;
  215|  9.58k|		}
  216|   159k|		else
  217|   159k|		{
  218|   159k|			nextHdr = getIPv6Header()->nextHeader;
  219|   159k|		}
  220|       |
  221|   169k|		switch (nextHdr)
  222|   169k|		{
  223|  33.6k|		case PACKETPP_IPPROTO_UDP:
  ------------------
  |  Branch (223:3): [True: 33.6k, False: 135k]
  ------------------
  224|  33.6k|		{
  225|  33.6k|			tryConstructNextLayerWithFallback<UdpLayer, PayloadLayer>(payload, payloadLen);
  226|  33.6k|			break;
  227|      0|		}
  228|   106k|		case PACKETPP_IPPROTO_TCP:
  ------------------
  |  Branch (228:3): [True: 106k, False: 62.6k]
  ------------------
  229|   106k|		{
  230|   106k|			tryConstructNextLayerWithFallback<TcpLayer, PayloadLayer>(payload, payloadLen);
  231|   106k|			break;
  232|      0|		}
  233|  2.82k|		case PACKETPP_IPPROTO_IPIP:
  ------------------
  |  Branch (233:3): [True: 2.82k, False: 166k]
  ------------------
  234|  2.82k|		{
  235|  2.82k|			uint8_t ipVersion = *payload >> 4;
  236|  2.82k|			switch (ipVersion)
  237|  2.82k|			{
  238|     72|			case 4:
  ------------------
  |  Branch (238:4): [True: 72, False: 2.75k]
  ------------------
  239|     72|			{
  240|     72|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
  241|     72|				break;
  242|      0|			}
  243|  2.54k|			case 6:
  ------------------
  |  Branch (243:4): [True: 2.54k, False: 279]
  ------------------
  244|  2.54k|			{
  245|  2.54k|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
  246|  2.54k|				break;
  247|      0|			}
  248|    207|			default:
  ------------------
  |  Branch (248:4): [True: 207, False: 2.61k]
  ------------------
  249|    207|			{
  250|    207|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  251|    207|				break;
  252|      0|			}
  253|  2.82k|			}
  254|  2.82k|			break;
  255|  2.82k|		}
  256|  10.1k|		case PACKETPP_IPPROTO_GRE:
  ------------------
  |  Branch (256:3): [True: 10.1k, False: 158k]
  ------------------
  257|  10.1k|		{
  258|  10.1k|			ProtocolType greVer = GreLayer::getGREVersion(payload, payloadLen);
  259|       |
  260|  10.1k|			switch (greVer)
  261|  10.1k|			{
  262|  4.10k|			case GREv0:
  ------------------
  |  Branch (262:4): [True: 4.10k, False: 6.09k]
  ------------------
  263|  4.10k|			{
  264|  4.10k|				tryConstructNextLayerWithFallback<GREv0Layer, PayloadLayer>(payload, payloadLen);
  265|  4.10k|				break;
  266|      0|			}
  267|  5.99k|			case GREv1:
  ------------------
  |  Branch (267:4): [True: 5.99k, False: 4.20k]
  ------------------
  268|  5.99k|			{
  269|  5.99k|				tryConstructNextLayerWithFallback<GREv1Layer, PayloadLayer>(payload, payloadLen);
  270|  5.99k|				break;
  271|      0|			}
  272|    100|			default:
  ------------------
  |  Branch (272:4): [True: 100, False: 10.0k]
  ------------------
  273|    100|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  274|    100|				break;
  275|  10.1k|			}
  276|  10.1k|			break;
  277|  10.1k|		}
  278|  10.1k|		case PACKETPP_IPPROTO_AH:
  ------------------
  |  Branch (278:3): [True: 0, False: 169k]
  ------------------
  279|      0|		{
  280|      0|			tryConstructNextLayerWithFallback<AuthenticationHeaderLayer, PayloadLayer>(payload, payloadLen);
  281|      0|			break;
  282|  10.1k|		}
  283|    990|		case PACKETPP_IPPROTO_ESP:
  ------------------
  |  Branch (283:3): [True: 990, False: 168k]
  ------------------
  284|    990|		{
  285|    990|			tryConstructNextLayerWithFallback<ESPLayer, PayloadLayer>(payload, payloadLen);
  286|    990|			break;
  287|  10.1k|		}
  288|  5.14k|		case PACKETPP_IPPROTO_ICMPV6:
  ------------------
  |  Branch (288:3): [True: 5.14k, False: 163k]
  ------------------
  289|  5.14k|		{
  290|  5.14k|			constructNextLayerFromFactory(IcmpV6Layer::parseIcmpV6Layer, payload, payloadLen);
  291|  5.14k|			break;
  292|  10.1k|		}
  293|  4.64k|		case PACKETPP_IPPROTO_VRRP:
  ------------------
  |  Branch (293:3): [True: 4.64k, False: 164k]
  ------------------
  294|  4.64k|		{
  295|  4.64k|			auto vrrpVer = VrrpLayer::getVersionFromData(payload, payloadLen);
  296|       |
  297|  4.64k|			if (vrrpVer == VRRPv3)
  ------------------
  |  Branch (297:8): [True: 4.37k, False: 271]
  ------------------
  298|  4.37k|			{
  299|  4.37k|				constructNextLayer<VrrpV3Layer>(payload, payloadLen, IPAddress::IPv6AddressType);
  300|  4.37k|			}
  301|    271|			else
  302|    271|			{
  303|    271|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  304|    271|			}
  305|  4.64k|			break;
  306|  10.1k|		}
  307|  5.22k|		default:
  ------------------
  |  Branch (307:3): [True: 5.22k, False: 163k]
  ------------------
  308|  5.22k|		{
  309|  5.22k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  310|  5.22k|			break;
  311|  10.1k|		}
  312|   169k|		}
  313|   169k|	}
_ZN4pcpp9IPv6Layer22computeCalculateFieldsEv:
  316|  31.3k|	{
  317|  31.3k|		ip6_hdr* ipHdr = getIPv6Header();
  318|  31.3k|		ipHdr->payloadLength = htobe16(m_DataLen - sizeof(ip6_hdr));
  319|  31.3k|		ipHdr->ipVersion = (6 & 0x0f);
  320|       |
  321|  31.3k|		if (m_NextLayer != nullptr)
  ------------------
  |  Branch (321:7): [True: 30.4k, False: 874]
  ------------------
  322|  30.4k|		{
  323|  30.4k|			uint8_t nextHeader = 0;
  324|  30.4k|			switch (m_NextLayer->getProtocol())
  325|  30.4k|			{
  326|  18.1k|			case TCP:
  ------------------
  |  Branch (326:4): [True: 18.1k, False: 12.3k]
  ------------------
  327|  18.1k|				nextHeader = PACKETPP_IPPROTO_TCP;
  328|  18.1k|				break;
  329|  5.98k|			case UDP:
  ------------------
  |  Branch (329:4): [True: 5.98k, False: 24.5k]
  ------------------
  330|  5.98k|				nextHeader = PACKETPP_IPPROTO_UDP;
  331|  5.98k|				break;
  332|      0|			case ICMP:
  ------------------
  |  Branch (332:4): [True: 0, False: 30.4k]
  ------------------
  333|      0|				nextHeader = PACKETPP_IPPROTO_ICMP;
  334|      0|				break;
  335|  1.18k|			case ICMPv6:
  ------------------
  |  Branch (335:4): [True: 1.18k, False: 29.3k]
  ------------------
  336|  1.18k|				nextHeader = PACKETPP_IPPROTO_ICMPV6;
  337|  1.18k|				break;
  338|    823|			case GREv0:
  ------------------
  |  Branch (338:4): [True: 823, False: 29.6k]
  ------------------
  339|  2.01k|			case GREv1:
  ------------------
  |  Branch (339:4): [True: 1.18k, False: 29.3k]
  ------------------
  340|  2.01k|				nextHeader = PACKETPP_IPPROTO_GRE;
  341|  2.01k|				break;
  342|    798|			case VRRPv3:
  ------------------
  |  Branch (342:4): [True: 798, False: 29.6k]
  ------------------
  343|    798|				nextHeader = PACKETPP_IPPROTO_VRRP;
  344|    798|				break;
  345|  2.39k|			default:
  ------------------
  |  Branch (345:4): [True: 2.39k, False: 28.1k]
  ------------------
  346|  2.39k|				break;
  347|  30.4k|			}
  348|       |
  349|  30.4k|			if (nextHeader != 0)
  ------------------
  |  Branch (349:8): [True: 28.1k, False: 2.39k]
  ------------------
  350|  28.1k|			{
  351|  28.1k|				if (m_LastExtension != nullptr)
  ------------------
  |  Branch (351:9): [True: 930, False: 27.1k]
  ------------------
  352|    930|					m_LastExtension->getBaseHeader()->nextHeader = nextHeader;
  353|  27.1k|				else
  354|  27.1k|					ipHdr->nextHeader = nextHeader;
  355|  28.1k|			}
  356|  30.4k|		}
  357|  31.3k|	}
_ZNK4pcpp9IPv6Layer8toStringEv:
  360|  62.7k|	{
  361|  62.7k|		std::string result =
  362|  62.7k|		    "IPv6 Layer, Src: " + getSrcIPv6Address().toString() + ", Dst: " + getDstIPv6Address().toString();
  363|  62.7k|		if (m_ExtensionsLen > 0)
  ------------------
  |  Branch (363:7): [True: 5.78k, False: 56.9k]
  ------------------
  364|  5.78k|		{
  365|  5.78k|			result += ", Options=[";
  366|  14.9k|			for (auto const* curExt = m_FirstExtension; curExt != nullptr; curExt = curExt->getNextHeader())
  ------------------
  |  Branch (366:48): [True: 9.13k, False: 5.78k]
  ------------------
  367|  9.13k|			{
  368|  9.13k|				result += curExt->getExtensionTypeAsString();
  369|  9.13k|				result += ",";
  370|  9.13k|			}
  371|       |
  372|       |			// replace the last ','
  373|  5.78k|			result[result.size() - 1] = ']';
  374|  5.78k|		}
  375|       |
  376|  62.7k|		return result;
  377|  62.7k|	}

_ZN4pcpp29icmp_router_address_structure16setRouterAddressENS_11IPv4AddressEj:
   29|    472|	{
   30|    472|		routerAddress = addr.toInt();
   31|       |		preferenceLevel = htobe32(preference);
   32|    472|	}
_ZNK4pcpp9IcmpLayer14getMessageTypeEv:
   41|   198k|	{
   42|   198k|		uint8_t type = getIcmpHeader()->type;
   43|   198k|		if (type > 18)
  ------------------
  |  Branch (43:7): [True: 0, False: 198k]
  ------------------
   44|      0|			return ICMP_UNSUPPORTED;
   45|       |
   46|   198k|		return static_cast<IcmpMessageType>(type);
   47|   198k|	}
_ZN4pcpp9IcmpLayer14cleanIcmpLayerEv:
   50|  5.66k|	{
   51|       |		// remove all layers after
   52|       |
   53|  5.66k|		if (getAttachedPacket() != nullptr)
  ------------------
  |  Branch (53:7): [True: 0, False: 5.66k]
  ------------------
   54|      0|		{
   55|      0|			bool res = getAttachedPacket()->removeAllLayersAfter(this);
   56|      0|			if (!res)
  ------------------
  |  Branch (56:8): [True: 0, False: 0]
  ------------------
   57|      0|				return false;
   58|      0|		}
   59|       |
   60|       |		// shorten layer to size of icmphdr
   61|       |
   62|  5.66k|		size_t headerLen = this->getHeaderLen();
   63|  5.66k|		if (headerLen > sizeof(icmphdr))
  ------------------
  |  Branch (63:7): [True: 4.80k, False: 863]
  ------------------
   64|  4.80k|		{
   65|  4.80k|			if (!this->shortenLayer(sizeof(icmphdr), headerLen - sizeof(icmphdr)))
  ------------------
  |  Branch (65:8): [True: 0, False: 4.80k]
  ------------------
   66|      0|				return false;
   67|  4.80k|		}
   68|       |
   69|  5.66k|		return true;
   70|  5.66k|	}
_ZN4pcpp9IcmpLayer16setIpAndL4LayersEPNS_9IPv4LayerEPNS_5LayerE:
  103|  1.25k|	{
  104|  1.25k|		if (getAttachedPacket() == nullptr)
  ------------------
  |  Branch (104:7): [True: 1.25k, False: 0]
  ------------------
  105|  1.25k|		{
  106|  1.25k|			PCPP_LOG_ERROR("Cannot set ICMP data that involves IP and L4 layers on a layer not attached to a packet. "
  ------------------
  |  |  445|  1.25k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  1.25k|	do                                                                                                                 \
  |  |  |  |  415|  1.25k|	{                                                                                                                  \
  |  |  |  |  416|  1.25k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.25k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.25k|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 1.25k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.25k|		{                                                                                                              \
  |  |  |  |  419|  1.25k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  1.25k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.25k|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  1.25k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  1.25k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  1.25k|		}                                                                                                              \
  |  |  |  |  424|  1.25k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|  1.25k|			               "Please add the ICMP layer to a packet and try again");
  108|  1.25k|			return false;
  109|  1.25k|		}
  110|       |
  111|      0|		if (ipLayer != nullptr && !getAttachedPacket()->addLayer(ipLayer))
  ------------------
  |  Branch (111:7): [True: 0, False: 0]
  |  Branch (111:29): [True: 0, False: 0]
  ------------------
  112|      0|		{
  113|      0|			PCPP_LOG_ERROR("Couldn't add IP layer to ICMP packet");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  114|      0|			return false;
  115|      0|		}
  116|       |
  117|      0|		if (l4Layer != nullptr && !getAttachedPacket()->addLayer(l4Layer))
  ------------------
  |  Branch (117:7): [True: 0, False: 0]
  |  Branch (117:29): [True: 0, False: 0]
  ------------------
  118|      0|		{
  119|      0|			PCPP_LOG_ERROR("Couldn't add L4 layer to ICMP packet");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  120|      0|			return false;
  121|      0|		}
  122|       |
  123|      0|		return true;
  124|      0|	}
_ZN4pcpp9IcmpLayer21getTimestampReplyDataEv:
  199|  2.40k|	{
  200|  2.40k|		if (!isMessageOfType(ICMP_TIMESTAMP_REPLY))
  ------------------
  |  Branch (200:7): [True: 0, False: 2.40k]
  ------------------
  201|      0|			return nullptr;
  202|       |
  203|  2.40k|		return reinterpret_cast<icmp_timestamp_reply*>(m_Data);
  204|  2.40k|	}
_ZN4pcpp9IcmpLayer21setTimestampReplyDataEtt7timevalS1_S1_:
  208|  1.20k|	{
  209|  1.20k|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (209:7): [True: 0, False: 1.20k]
  ------------------
  210|      0|			return nullptr;
  211|       |
  212|  1.20k|		if (!this->extendLayer(m_DataLen, sizeof(icmp_timestamp_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (212:7): [True: 0, False: 1.20k]
  ------------------
  213|      0|			return nullptr;
  214|       |
  215|  1.20k|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIMESTAMP_REPLY);
  216|       |
  217|  1.20k|		icmp_timestamp_reply* header = getTimestampReplyData();
  218|  1.20k|		header->code = 0;
  219|  1.20k|		header->id = htobe16(id);
  220|  1.20k|		header->sequence = htobe16(sequence);
  221|  1.20k|		header->originateTimestamp = htobe32(originateTimestamp.tv_sec * 1000 + originateTimestamp.tv_usec / 1000);
  222|  1.20k|		header->receiveTimestamp = htobe32(receiveTimestamp.tv_sec * 1000 + receiveTimestamp.tv_usec / 1000);
  223|  1.20k|		header->transmitTimestamp = htobe32(transmitTimestamp.tv_sec * 1000 + transmitTimestamp.tv_usec / 1000);
  224|       |
  225|  1.20k|		return header;
  226|  1.20k|	}
_ZN4pcpp9IcmpLayer22getDestUnreachableDataEv:
  229|  1.12k|	{
  230|  1.12k|		if (!isMessageOfType(ICMP_DEST_UNREACHABLE))
  ------------------
  |  Branch (230:7): [True: 0, False: 1.12k]
  ------------------
  231|      0|			return nullptr;
  232|       |
  233|  1.12k|		return reinterpret_cast<icmp_destination_unreachable*>(m_Data);
  234|  1.12k|	}
_ZN4pcpp9IcmpLayer22setDestUnreachableDataENS_24IcmpDestUnreachableCodesEtPNS_9IPv4LayerEPNS_5LayerE:
  238|    564|	{
  239|    564|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (239:7): [True: 0, False: 564]
  ------------------
  240|      0|			return nullptr;
  241|       |
  242|    564|		if (!this->extendLayer(m_DataLen, sizeof(icmp_destination_unreachable) - sizeof(icmphdr)))
  ------------------
  |  Branch (242:7): [True: 0, False: 564]
  ------------------
  243|      0|			return nullptr;
  244|       |
  245|    564|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_DEST_UNREACHABLE);
  246|       |
  247|    564|		icmp_destination_unreachable* header = getDestUnreachableData();
  248|    564|		header->code = code;
  249|    564|		header->nextHopMTU = htobe16(nextHopMTU);
  250|    564|		header->unused = 0;
  251|       |
  252|    564|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (252:7): [True: 564, False: 0]
  ------------------
  253|    564|			return nullptr;
  254|       |
  255|      0|		return header;
  256|    564|	}
_ZNK4pcpp9IcmpLayer26getRouterAdvertisementDataEv:
  321|  5.22k|	{
  322|  5.22k|		if (!isMessageOfType(ICMP_ROUTER_ADV))
  ------------------
  |  Branch (322:7): [True: 0, False: 5.22k]
  ------------------
  323|      0|			return nullptr;
  324|       |
  325|  5.22k|		m_RouterAdvData.header = reinterpret_cast<icmp_router_advertisement_hdr*>(m_Data);
  326|  5.22k|		m_RouterAdvData.dataLen = m_DataLen;
  327|       |
  328|  5.22k|		return &m_RouterAdvData;
  329|  5.22k|	}
_ZN4pcpp9IcmpLayer26setRouterAdvertisementDataEhtRKNSt3__16vectorINS_29icmp_router_address_structureENS1_9allocatorIS3_EEEE:
  333|    472|	{
  334|    472|		if (code != 0 && code != 16)
  ------------------
  |  Branch (334:7): [True: 472, False: 0]
  |  Branch (334:20): [True: 0, False: 472]
  ------------------
  335|      0|		{
  336|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  337|      0|			                               << " for ICMP router advertisement data (only codes 0 and 16 are legal)");
  338|      0|			return nullptr;
  339|      0|		}
  340|       |
  341|    472|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (341:7): [True: 0, False: 472]
  ------------------
  342|      0|			return nullptr;
  343|       |
  344|    472|		if (!this->extendLayer(m_DataLen, sizeof(icmp_router_advertisement_hdr) +
  ------------------
  |  Branch (344:7): [True: 0, False: 472]
  ------------------
  345|    472|		                                      (routerAddresses.size() * sizeof(icmp_router_address_structure)) -
  346|    472|		                                      sizeof(icmphdr)))
  347|      0|			return nullptr;
  348|       |
  349|    472|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ROUTER_ADV);
  350|       |
  351|    472|		icmp_router_advertisement* header = getRouterAdvertisementData();
  352|    472|		header->header->code = code;
  353|    472|		header->header->lifetime = htobe16(lifetimeInSeconds);
  354|    472|		header->header->advertisementCount = static_cast<uint8_t>(routerAddresses.size());
  355|    472|		header->header->addressEntrySize = 2;
  356|       |
  357|    472|		icmp_router_address_structure* curPos = reinterpret_cast<icmp_router_address_structure*>(
  358|    472|		    reinterpret_cast<uint8_t*>(header->header) + sizeof(icmp_router_advertisement_hdr));
  359|    472|		for (const auto& iter : routerAddresses)
  ------------------
  |  Branch (359:25): [True: 472, False: 472]
  ------------------
  360|    472|		{
  361|    472|			curPos->routerAddress = iter.routerAddress;
  362|    472|			curPos->preferenceLevel = iter.preferenceLevel;
  363|    472|			curPos += 1;
  364|    472|		}
  365|       |
  366|    472|		return header;
  367|    472|	}
_ZN4pcpp9IcmpLayer19getTimeExceededDataEv:
  391|  1.15k|	{
  392|  1.15k|		if (!isMessageOfType(ICMP_TIME_EXCEEDED))
  ------------------
  |  Branch (392:7): [True: 0, False: 1.15k]
  ------------------
  393|      0|			return nullptr;
  394|       |
  395|  1.15k|		return reinterpret_cast<icmp_time_exceeded*>(m_Data);
  396|  1.15k|	}
_ZN4pcpp9IcmpLayer19setTimeExceededDataEhPNS_9IPv4LayerEPNS_5LayerE:
  399|    575|	{
  400|    575|		if (code > 1)
  ------------------
  |  Branch (400:7): [True: 0, False: 575]
  ------------------
  401|      0|		{
  402|      0|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP time exceeded data");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  403|      0|			return nullptr;
  404|      0|		}
  405|       |
  406|    575|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (406:7): [True: 0, False: 575]
  ------------------
  407|      0|			return nullptr;
  408|       |
  409|    575|		if (!this->extendLayer(m_DataLen, sizeof(icmp_time_exceeded) - sizeof(icmphdr)))
  ------------------
  |  Branch (409:7): [True: 0, False: 575]
  ------------------
  410|      0|			return nullptr;
  411|       |
  412|    575|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_TIME_EXCEEDED);
  413|       |
  414|    575|		icmp_time_exceeded* header = getTimeExceededData();
  415|    575|		header->code = code;
  416|    575|		header->unused = 0;
  417|       |
  418|    575|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (418:7): [True: 575, False: 0]
  ------------------
  419|    575|			return nullptr;
  420|       |
  421|      0|		return header;
  422|    575|	}
_ZN4pcpp9IcmpLayer19getParamProblemDataEv:
  425|    723|	{
  426|    723|		if (!isMessageOfType(ICMP_PARAM_PROBLEM))
  ------------------
  |  Branch (426:7): [True: 0, False: 723]
  ------------------
  427|      0|			return nullptr;
  428|       |
  429|    723|		return reinterpret_cast<icmp_param_problem*>(m_Data);
  430|    723|	}
_ZN4pcpp9IcmpLayer19setParamProblemDataEhhPNS_9IPv4LayerEPNS_5LayerE:
  434|    603|	{
  435|    603|		if (code > 2)
  ------------------
  |  Branch (435:7): [True: 483, False: 120]
  ------------------
  436|    483|		{
  437|    483|			PCPP_LOG_ERROR("Unknown code " << (int)code << " for ICMP parameter problem data");
  ------------------
  |  |  445|    483|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|    483|	do                                                                                                                 \
  |  |  |  |  415|    483|	{                                                                                                                  \
  |  |  |  |  416|    483|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    483|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    483|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 483, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|    483|		{                                                                                                              \
  |  |  |  |  419|    483|			auto ctx =                                                                                                 \
  |  |  |  |  420|    483|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    483|#define LOG_MODULE PacketLogModuleIcmpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|    483|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|    483|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|    483|		}                                                                                                              \
  |  |  |  |  424|    483|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 483]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  438|    483|			return nullptr;
  439|    483|		}
  440|       |
  441|    120|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (441:7): [True: 0, False: 120]
  ------------------
  442|      0|			return nullptr;
  443|       |
  444|    120|		if (!this->extendLayer(m_DataLen, sizeof(icmp_param_problem) - sizeof(icmphdr)))
  ------------------
  |  Branch (444:7): [True: 0, False: 120]
  ------------------
  445|      0|			return nullptr;
  446|       |
  447|    120|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_PARAM_PROBLEM);
  448|       |
  449|    120|		icmp_param_problem* header = getParamProblemData();
  450|    120|		header->code = code;
  451|    120|		header->unused1 = 0;
  452|    120|		header->unused2 = 0;
  453|    120|		header->pointer = errorOctetPointer;
  454|       |
  455|    120|		if (!setIpAndL4Layers(ipHeader, l4Header))
  ------------------
  |  Branch (455:7): [True: 120, False: 0]
  ------------------
  456|    120|			return nullptr;
  457|       |
  458|      0|		return header;
  459|    120|	}
_ZN4pcpp9IcmpLayer25getAddressMaskRequestDataEv:
  462|  1.66k|	{
  463|  1.66k|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REQUEST))
  ------------------
  |  Branch (463:7): [True: 0, False: 1.66k]
  ------------------
  464|      0|			return nullptr;
  465|       |
  466|  1.66k|		return reinterpret_cast<icmp_address_mask_request*>(m_Data);
  467|  1.66k|	}
_ZN4pcpp9IcmpLayer25setAddressMaskRequestDataEttNS_11IPv4AddressE:
  470|    833|	{
  471|    833|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (471:7): [True: 0, False: 833]
  ------------------
  472|      0|			return nullptr;
  473|       |
  474|    833|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (474:7): [True: 0, False: 833]
  ------------------
  475|      0|			return nullptr;
  476|       |
  477|    833|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REQUEST);
  478|       |
  479|    833|		icmp_address_mask_request* header = getAddressMaskRequestData();
  480|    833|		header->code = 0;
  481|    833|		header->id = htobe16(id);
  482|    833|		header->sequence = htobe16(sequence);
  483|    833|		header->addressMask = mask.toInt();
  484|       |
  485|    833|		return header;
  486|    833|	}
_ZN4pcpp9IcmpLayer23getAddressMaskReplyDataEv:
  489|  2.07k|	{
  490|  2.07k|		if (!isMessageOfType(ICMP_ADDRESS_MASK_REPLY))
  ------------------
  |  Branch (490:7): [True: 0, False: 2.07k]
  ------------------
  491|      0|			return nullptr;
  492|       |
  493|  2.07k|		return reinterpret_cast<icmp_address_mask_reply*>(m_Data);
  494|  2.07k|	}
_ZN4pcpp9IcmpLayer23setAddressMaskReplyDataEttNS_11IPv4AddressE:
  497|  1.03k|	{
  498|  1.03k|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (498:7): [True: 0, False: 1.03k]
  ------------------
  499|      0|			return nullptr;
  500|       |
  501|  1.03k|		if (!this->extendLayer(m_DataLen, sizeof(icmp_address_mask_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (501:7): [True: 0, False: 1.03k]
  ------------------
  502|      0|			return nullptr;
  503|       |
  504|  1.03k|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_ADDRESS_MASK_REPLY);
  505|       |
  506|  1.03k|		icmp_address_mask_reply* header = getAddressMaskReplyData();
  507|  1.03k|		header->code = 0;
  508|  1.03k|		header->id = htobe16(id);
  509|  1.03k|		header->sequence = htobe16(sequence);
  510|  1.03k|		header->addressMask = htobe32(mask.toInt());
  511|       |
  512|  1.03k|		return header;
  513|  1.03k|	}
_ZN4pcpp9IcmpLayer18getInfoRequestDataEv:
  516|    928|	{
  517|    928|		if (!isMessageOfType(ICMP_INFO_REQUEST))
  ------------------
  |  Branch (517:7): [True: 0, False: 928]
  ------------------
  518|      0|			return nullptr;
  519|       |
  520|    928|		return reinterpret_cast<icmp_info_request*>(m_Data);
  521|    928|	}
_ZN4pcpp9IcmpLayer18setInfoRequestDataEtt:
  524|    464|	{
  525|    464|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (525:7): [True: 0, False: 464]
  ------------------
  526|      0|			return nullptr;
  527|       |
  528|    464|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_request) - sizeof(icmphdr)))
  ------------------
  |  Branch (528:7): [True: 0, False: 464]
  ------------------
  529|      0|			return nullptr;
  530|       |
  531|    464|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REQUEST);
  532|       |
  533|    464|		icmp_info_request* header = getInfoRequestData();
  534|    464|		header->code = 0;
  535|    464|		header->id = htobe16(id);
  536|    464|		header->sequence = htobe16(sequence);
  537|       |
  538|    464|		return header;
  539|    464|	}
_ZN4pcpp9IcmpLayer16getInfoReplyDataEv:
  542|    798|	{
  543|    798|		if (!isMessageOfType(ICMP_INFO_REPLY))
  ------------------
  |  Branch (543:7): [True: 0, False: 798]
  ------------------
  544|      0|			return nullptr;
  545|       |
  546|    798|		return reinterpret_cast<icmp_info_reply*>(m_Data);
  547|    798|	}
_ZN4pcpp9IcmpLayer16setInfoReplyDataEtt:
  550|    399|	{
  551|    399|		if (!cleanIcmpLayer())
  ------------------
  |  Branch (551:7): [True: 0, False: 399]
  ------------------
  552|      0|			return nullptr;
  553|       |
  554|    399|		if (!this->extendLayer(m_DataLen, sizeof(icmp_info_reply) - sizeof(icmphdr)))
  ------------------
  |  Branch (554:7): [True: 0, False: 399]
  ------------------
  555|      0|			return nullptr;
  556|       |
  557|    399|		getIcmpHeader()->type = static_cast<uint8_t>(ICMP_INFO_REPLY);
  558|       |
  559|    399|		icmp_info_reply* header = getInfoReplyData();
  560|    399|		header->code = 0;
  561|    399|		header->id = htobe16(id);
  562|    399|		header->sequence = htobe16(sequence);
  563|       |
  564|    399|		return header;
  565|    399|	}
_ZN4pcpp9IcmpLayer14parseNextLayerEv:
  568|  44.9k|	{
  569|  44.9k|		size_t headerLen = getHeaderLen();
  570|       |
  571|  44.9k|		auto payloadPtr = m_Data + headerLen;
  572|  44.9k|		auto payloadLen = m_DataLen - headerLen;
  573|       |
  574|  44.9k|		switch (getMessageType())
  575|  44.9k|		{
  576|  3.22k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (576:3): [True: 3.22k, False: 41.6k]
  ------------------
  577|  6.67k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (577:3): [True: 3.44k, False: 41.4k]
  ------------------
  578|  10.1k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (578:3): [True: 3.43k, False: 41.4k]
  ------------------
  579|  12.2k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (579:3): [True: 2.17k, False: 42.7k]
  ------------------
  580|  16.0k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (580:3): [True: 3.72k, False: 41.1k]
  ------------------
  581|  16.0k|		{
  582|  16.0k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payloadPtr, payloadLen);
  583|  16.0k|			break;
  584|  12.2k|		}
  585|  28.9k|		default:
  ------------------
  |  Branch (585:3): [True: 28.9k, False: 16.0k]
  ------------------
  586|  28.9k|			if (m_DataLen > headerLen)
  ------------------
  |  Branch (586:8): [True: 23.2k, False: 5.66k]
  ------------------
  587|  23.2k|			{
  588|  23.2k|				constructNextLayer<PayloadLayer>(payloadPtr, payloadLen);
  589|  23.2k|			}
  590|  28.9k|			break;
  591|  44.9k|		}
  592|  44.9k|	}
_ZNK4pcpp9IcmpLayer12getHeaderLenEv:
  595|  75.5k|	{
  596|  75.5k|		IcmpMessageType type = getMessageType();
  597|  75.5k|		size_t routerAdvSize = 0;
  598|  75.5k|		switch (type)
  599|  75.5k|		{
  600|    672|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (600:3): [True: 672, False: 74.8k]
  ------------------
  601|  6.08k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (601:3): [True: 5.41k, False: 70.0k]
  ------------------
  602|  6.08k|			return m_DataLen;
  603|    518|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (603:3): [True: 518, False: 74.9k]
  ------------------
  604|  11.3k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (604:3): [True: 10.8k, False: 64.6k]
  ------------------
  605|  11.3k|			return sizeof(icmp_timestamp_request);
  606|  2.67k|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (606:3): [True: 2.67k, False: 72.8k]
  ------------------
  607|  7.29k|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (607:3): [True: 4.61k, False: 70.8k]
  ------------------
  608|  11.6k|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (608:3): [True: 4.37k, False: 71.1k]
  ------------------
  609|  11.6k|		case ICMP_UNSUPPORTED:
  ------------------
  |  Branch (609:3): [True: 0, False: 75.5k]
  ------------------
  610|  11.6k|			return sizeof(icmphdr);
  611|  9.31k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (611:3): [True: 9.31k, False: 66.1k]
  ------------------
  612|  16.8k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (612:3): [True: 7.50k, False: 68.0k]
  ------------------
  613|  16.8k|			return sizeof(icmp_address_mask_request);
  614|  5.48k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (614:3): [True: 5.48k, False: 70.0k]
  ------------------
  615|  5.48k|			return sizeof(icmp_destination_unreachable);
  616|  3.27k|		case ICMP_REDIRECT:
  ------------------
  |  Branch (616:3): [True: 3.27k, False: 72.2k]
  ------------------
  617|  3.27k|			return sizeof(icmp_redirect);
  618|  5.73k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (618:3): [True: 5.73k, False: 69.7k]
  ------------------
  619|  10.9k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (619:3): [True: 5.17k, False: 70.3k]
  ------------------
  620|  10.9k|			return sizeof(icmp_time_exceeded);
  621|  5.65k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (621:3): [True: 5.65k, False: 69.8k]
  ------------------
  622|  5.65k|			return sizeof(icmp_param_problem);
  623|  4.28k|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (623:3): [True: 4.28k, False: 71.2k]
  ------------------
  624|       |			// clang-format off
  625|  4.28k|			routerAdvSize = sizeof(icmp_router_advertisement_hdr) + (getRouterAdvertisementData()->header->advertisementCount * sizeof(icmp_router_address_structure));
  626|       |			// clang-format on
  627|  4.28k|			if (routerAdvSize > m_DataLen)
  ------------------
  |  Branch (627:8): [True: 0, False: 4.28k]
  ------------------
  628|      0|				return m_DataLen;
  629|  4.28k|			return routerAdvSize;
  630|      0|		default:
  ------------------
  |  Branch (630:3): [True: 0, False: 75.5k]
  ------------------
  631|      0|			return sizeof(icmphdr);
  632|  75.5k|		}
  633|  75.5k|	}
_ZN4pcpp9IcmpLayer22computeCalculateFieldsEv:
  636|  8.31k|	{
  637|       |		// calculate checksum
  638|  8.31k|		getIcmpHeader()->checksum = 0;
  639|       |
  640|  8.31k|		size_t icmpLen = 0;
  641|  8.31k|		Layer* curLayer = this;
  642|  27.7k|		while (curLayer != nullptr)
  ------------------
  |  Branch (642:10): [True: 19.4k, False: 8.31k]
  ------------------
  643|  19.4k|		{
  644|  19.4k|			icmpLen += curLayer->getHeaderLen();
  645|  19.4k|			curLayer = curLayer->getNextLayer();
  646|  19.4k|		}
  647|       |
  648|  8.31k|		ScalarBuffer<uint16_t> buffer;
  649|  8.31k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIcmpHeader());
  650|  8.31k|		buffer.len = icmpLen;
  651|  8.31k|		size_t checksum = computeChecksum(&buffer, 1);
  652|       |
  653|       |		getIcmpHeader()->checksum = htobe16(checksum);
  654|  8.31k|	}
_ZNK4pcpp9IcmpLayer8toStringEv:
  657|  16.6k|	{
  658|  16.6k|		std::string messageTypeAsString;
  659|  16.6k|		IcmpMessageType type = getMessageType();
  660|  16.6k|		switch (type)
  661|  16.6k|		{
  662|  1.54k|		case ICMP_ECHO_REPLY:
  ------------------
  |  Branch (662:3): [True: 1.54k, False: 15.0k]
  ------------------
  663|  1.54k|			messageTypeAsString = "Echo (ping) reply";
  664|  1.54k|			break;
  665|  1.12k|		case ICMP_DEST_UNREACHABLE:
  ------------------
  |  Branch (665:3): [True: 1.12k, False: 15.4k]
  ------------------
  666|  1.12k|			messageTypeAsString = "Destination unreachable";
  667|  1.12k|			break;
  668|  1.15k|		case ICMP_SOURCE_QUENCH:
  ------------------
  |  Branch (668:3): [True: 1.15k, False: 15.4k]
  ------------------
  669|  1.15k|			messageTypeAsString = "Source quench (flow control)";
  670|  1.15k|			break;
  671|    730|		case ICMP_REDIRECT:
  ------------------
  |  Branch (671:3): [True: 730, False: 15.8k]
  ------------------
  672|    730|			messageTypeAsString = "Redirect";
  673|    730|			break;
  674|    172|		case ICMP_ECHO_REQUEST:
  ------------------
  |  Branch (674:3): [True: 172, False: 16.4k]
  ------------------
  675|    172|			messageTypeAsString = "Echo (ping) request";
  676|    172|			break;
  677|    944|		case ICMP_ROUTER_ADV:
  ------------------
  |  Branch (677:3): [True: 944, False: 15.6k]
  ------------------
  678|    944|			messageTypeAsString = "Router advertisement";
  679|    944|			break;
  680|    596|		case ICMP_ROUTER_SOL:
  ------------------
  |  Branch (680:3): [True: 596, False: 16.0k]
  ------------------
  681|    596|			messageTypeAsString = "Router solicitation";
  682|    596|			break;
  683|  1.15k|		case ICMP_TIME_EXCEEDED:
  ------------------
  |  Branch (683:3): [True: 1.15k, False: 15.4k]
  ------------------
  684|  1.15k|			messageTypeAsString = "Time-to-live exceeded";
  685|  1.15k|			break;
  686|  1.20k|		case ICMP_PARAM_PROBLEM:
  ------------------
  |  Branch (686:3): [True: 1.20k, False: 15.4k]
  ------------------
  687|  1.20k|			messageTypeAsString = "Parameter problem: bad IP header";
  688|  1.20k|			break;
  689|    130|		case ICMP_TIMESTAMP_REQUEST:
  ------------------
  |  Branch (689:3): [True: 130, False: 16.4k]
  ------------------
  690|    130|			messageTypeAsString = "Timestamp request";
  691|    130|			break;
  692|  2.40k|		case ICMP_TIMESTAMP_REPLY:
  ------------------
  |  Branch (692:3): [True: 2.40k, False: 14.2k]
  ------------------
  693|  2.40k|			messageTypeAsString = "Timestamp reply";
  694|  2.40k|			break;
  695|    928|		case ICMP_INFO_REQUEST:
  ------------------
  |  Branch (695:3): [True: 928, False: 15.6k]
  ------------------
  696|    928|			messageTypeAsString = "Information request";
  697|    928|			break;
  698|    798|		case ICMP_INFO_REPLY:
  ------------------
  |  Branch (698:3): [True: 798, False: 15.8k]
  ------------------
  699|    798|			messageTypeAsString = "Information reply";
  700|    798|			break;
  701|  1.66k|		case ICMP_ADDRESS_MASK_REQUEST:
  ------------------
  |  Branch (701:3): [True: 1.66k, False: 14.9k]
  ------------------
  702|  1.66k|			messageTypeAsString = "Address mask request";
  703|  1.66k|			break;
  704|  2.07k|		case ICMP_ADDRESS_MASK_REPLY:
  ------------------
  |  Branch (704:3): [True: 2.07k, False: 14.5k]
  ------------------
  705|  2.07k|			messageTypeAsString = "Address mask reply";
  706|  2.07k|			break;
  707|      0|		default:
  ------------------
  |  Branch (707:3): [True: 0, False: 16.6k]
  ------------------
  708|      0|			messageTypeAsString = "Unknown";
  709|      0|			break;
  710|  16.6k|		}
  711|       |
  712|  16.6k|		std::ostringstream typeStream;
  713|  16.6k|		typeStream << (int)getIcmpHeader()->type;
  714|       |
  715|  16.6k|		return "ICMP Layer, " + messageTypeAsString + " (type: " + typeStream.str() + ")";
  716|  16.6k|	}

_ZN4pcpp11IcmpV6Layer16parseIcmpV6LayerEPhmPNS_5LayerEPNS_6PacketE:
   18|  5.14k|	{
   19|  5.14k|		if (dataLen < sizeof(icmpv6hdr))
  ------------------
  |  Branch (19:7): [True: 73, False: 5.07k]
  ------------------
   20|     73|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   21|       |
   22|  5.07k|		icmpv6hdr* hdr = (icmpv6hdr*)data;
   23|  5.07k|		ICMPv6MessageType messageType = static_cast<ICMPv6MessageType>(hdr->type);
   24|       |
   25|  5.07k|		switch (messageType)
   26|  5.07k|		{
   27|      4|		case ICMPv6MessageType::ICMPv6_ECHO_REQUEST:
  ------------------
  |  Branch (27:3): [True: 4, False: 5.06k]
  ------------------
   28|  1.03k|		case ICMPv6MessageType::ICMPv6_ECHO_REPLY:
  ------------------
  |  Branch (28:3): [True: 1.02k, False: 4.04k]
  ------------------
   29|  1.03k|			return new ICMPv6EchoLayer(data, dataLen, prevLayer, packet);
   30|  1.99k|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_SOLICITATION:
  ------------------
  |  Branch (30:3): [True: 1.99k, False: 3.07k]
  ------------------
   31|  1.99k|			if (!NDPNeighborSolicitationLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (31:8): [True: 38, False: 1.95k]
  ------------------
   32|     38|				return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   33|  1.95k|			return new NDPNeighborSolicitationLayer(data, dataLen, prevLayer, packet);
   34|     60|		case ICMPv6MessageType::ICMPv6_NEIGHBOR_ADVERTISEMENT:
  ------------------
  |  Branch (34:3): [True: 60, False: 5.01k]
  ------------------
   35|     60|			if (!NDPNeighborAdvertisementLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (35:8): [True: 16, False: 44]
  ------------------
   36|     16|				return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   37|     44|			return new NDPNeighborAdvertisementLayer(data, dataLen, prevLayer, packet);
   38|    195|		case ICMPv6MessageType::ICMPv6_UNKNOWN_MESSAGE:
  ------------------
  |  Branch (38:3): [True: 195, False: 4.87k]
  ------------------
   39|    195|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   40|  1.79k|		default:
  ------------------
  |  Branch (40:3): [True: 1.79k, False: 3.28k]
  ------------------
   41|  1.79k|			return new IcmpV6Layer(data, dataLen, prevLayer, packet);
   42|  5.07k|		}
   43|  5.07k|	}
_ZNK4pcpp11IcmpV6Layer14getMessageTypeEv:
   59|  1.38k|	{
   60|  1.38k|		return static_cast<ICMPv6MessageType>(getIcmpv6Header()->type);
   61|  1.38k|	}
_ZN4pcpp11IcmpV6Layer22computeCalculateFieldsEv:
   74|  1.18k|	{
   75|  1.18k|		calculateChecksum();
   76|  1.18k|	}
_ZN4pcpp11IcmpV6Layer17calculateChecksumEv:
   79|  1.18k|	{
   80|       |		// Pseudo header of 40 bytes which is composed as follows(in order):
   81|       |		// - 16 bytes for the source address
   82|       |		// - 16 bytes for the destination address
   83|       |		// - 4 bytes big endian payload length(the same value as in the IPv6 header)
   84|       |		// - 3 bytes zero + 1 byte nextheader( 58 decimal) big endian
   85|       |
   86|  1.18k|		getIcmpv6Header()->checksum = 0;
   87|       |
   88|  1.18k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (88:7): [True: 1.18k, False: 0]
  ------------------
   89|  1.18k|		{
   90|  1.18k|			auto prevLayerAsIPv6 = static_cast<IPv6Layer*>(m_PrevLayer);
   91|       |
   92|  1.18k|			ScalarBuffer<uint16_t> vec[2];
   93|       |
   94|  1.18k|			vec[0].buffer = (uint16_t*)m_Data;
   95|  1.18k|			vec[0].len = m_DataLen;
   96|       |
   97|  1.18k|			const unsigned int pseudoHeaderLen = 40;
   98|  1.18k|			const unsigned int bigEndianLen = htobe32(m_DataLen);
   99|  1.18k|			const unsigned int bigEndianNextHeader = htobe32(PACKETPP_IPPROTO_ICMPV6);
  100|       |
  101|  1.18k|			uint16_t pseudoHeader[pseudoHeaderLen / 2];
  102|  1.18k|			prevLayerAsIPv6->getSrcIPv6Address().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader));
  103|  1.18k|			prevLayerAsIPv6->getDstIPv6Address().copyTo(reinterpret_cast<uint8_t*>(pseudoHeader + 8));
  104|  1.18k|			memcpy(&pseudoHeader[16], &bigEndianLen, sizeof(uint32_t));
  105|  1.18k|			memcpy(&pseudoHeader[18], &bigEndianNextHeader, sizeof(uint32_t));
  106|  1.18k|			vec[1].buffer = pseudoHeader;
  107|  1.18k|			vec[1].len = pseudoHeaderLen;
  108|       |
  109|       |			// Calculate and write checksum
  110|       |			getIcmpv6Header()->checksum = htobe16(computeChecksum(vec, 2));
  111|  1.18k|		}
  112|  1.18k|	}
_ZNK4pcpp11IcmpV6Layer8toStringEv:
  115|    872|	{
  116|    872|		std::ostringstream typeStream;
  117|    872|		typeStream << (int)getMessageType();
  118|    872|		return "ICMPv6 Layer, Message type: " + typeStream.str();
  119|    872|	}
_ZNK4pcpp15ICMPv6EchoLayer8toStringEv:
  164|    512|	{
  165|    512|		std::ostringstream typeStream;
  166|    512|		typeStream << (int)getMessageType();
  167|    512|		return "ICMPv6 Layer, Echo Request/Reply Message (type: " + typeStream.str() + ")";
  168|    512|	}

_ZNK4pcpp9IgmpLayer7getTypeEv:
   30|  6.05k|	{
   31|  6.05k|		uint8_t type = getIgmpHeader()->type;
   32|  6.05k|		if (type < (uint8_t)IgmpType_MembershipQuery ||
  ------------------
  |  Branch (32:7): [True: 0, False: 6.05k]
  ------------------
   33|  6.05k|		    (type > (uint8_t)IgmpType_LeaveGroup && type < (uint8_t)IgmpType_MulticastTracerouteResponse) ||
  ------------------
  |  Branch (33:8): [True: 894, False: 5.16k]
  |  Branch (33:47): [True: 0, False: 894]
  ------------------
   34|  6.05k|		    (type > (uint8_t)IgmpType_MulticastTraceroute && type < (uint8_t)IgmpType_MembershipReportV3) ||
  ------------------
  |  Branch (34:8): [True: 894, False: 5.16k]
  |  Branch (34:56): [True: 0, False: 894]
  ------------------
   35|  6.05k|		    (type > (uint8_t)IgmpType_MembershipReportV3 && type < (uint8_t)IgmpType_MulticastRouterAdvertisement) ||
  ------------------
  |  Branch (35:8): [True: 0, False: 6.05k]
  |  Branch (35:55): [True: 0, False: 0]
  ------------------
   36|  6.05k|		    type > IgmpType_MulticastRouterTermination)
  ------------------
  |  Branch (36:7): [True: 0, False: 6.05k]
  ------------------
   37|      0|		{
   38|      0|			return IgmpType_Unknown;
   39|      0|		}
   40|       |
   41|  6.05k|		return (IgmpType)type;
   42|  6.05k|	}
_ZN4pcpp9IgmpLayer18getIGMPVerFromDataEPhmRb:
   54|  15.3k|	{
   55|  15.3k|		isQuery = false;
   56|       |
   57|  15.3k|		if (dataLen < 8 || data == nullptr)
  ------------------
  |  Branch (57:7): [True: 205, False: 15.1k]
  |  Branch (57:22): [True: 0, False: 15.1k]
  ------------------
   58|    205|			return UnknownProtocol;
   59|       |
   60|  15.1k|		switch ((int)data[0])
   61|  15.1k|		{
   62|  1.65k|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (62:3): [True: 1.65k, False: 13.4k]
  ------------------
   63|  3.57k|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (63:3): [True: 1.92k, False: 13.1k]
  ------------------
   64|  3.57k|			return IGMPv2;
   65|  1.65k|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (65:3): [True: 1.65k, False: 13.4k]
  ------------------
   66|  1.65k|			return IGMPv1;
   67|  2.22k|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (67:3): [True: 2.22k, False: 12.8k]
  ------------------
   68|  2.22k|			return IGMPv3;
   69|  7.07k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (69:3): [True: 7.07k, False: 8.02k]
  ------------------
   70|  7.07k|		{
   71|  7.07k|			isQuery = true;
   72|       |
   73|  7.07k|			if (dataLen >= sizeof(igmpv3_query_header))
  ------------------
  |  Branch (73:8): [True: 1.78k, False: 5.29k]
  ------------------
   74|  1.78k|				return IGMPv3;
   75|       |
   76|  5.29k|			if (data[1] == 0)
  ------------------
  |  Branch (76:8): [True: 1.85k, False: 3.44k]
  ------------------
   77|  1.85k|				return IGMPv1;
   78|  3.44k|			else
   79|  3.44k|				return IGMPv2;
   80|  5.29k|		}
   81|    570|		default:
  ------------------
  |  Branch (81:3): [True: 570, False: 14.5k]
  ------------------
   82|    570|			return UnknownProtocol;
   83|  15.1k|		}
   84|  15.1k|	}
_ZN4pcpp9IgmpLayer17calculateChecksumEv:
   87|  3.02k|	{
   88|  3.02k|		ScalarBuffer<uint16_t> buffer;
   89|  3.02k|		buffer.buffer = reinterpret_cast<uint16_t*>(getIgmpHeader());
   90|  3.02k|		buffer.len = getHeaderLen();
   91|  3.02k|		return computeChecksum(&buffer, 1);
   92|  3.02k|	}
_ZNK4pcpp9IgmpLayer8toStringEv:
  111|  6.05k|	{
  112|  6.05k|		std::string igmpVer = "";
  113|  6.05k|		switch (getProtocol())
  114|  6.05k|		{
  115|  1.44k|		case IGMPv1:
  ------------------
  |  Branch (115:3): [True: 1.44k, False: 4.60k]
  ------------------
  116|  1.44k|			igmpVer = "1";
  117|  1.44k|			break;
  118|  2.82k|		case IGMPv2:
  ------------------
  |  Branch (118:3): [True: 2.82k, False: 3.23k]
  ------------------
  119|  2.82k|			igmpVer = "2";
  120|  2.82k|			break;
  121|  1.78k|		default:
  ------------------
  |  Branch (121:3): [True: 1.78k, False: 4.26k]
  ------------------
  122|  1.78k|			igmpVer = "3";
  123|  6.05k|		}
  124|       |
  125|  6.05k|		std::string msgType;
  126|       |
  127|  6.05k|		switch (getType())
  128|  6.05k|		{
  129|  3.01k|		case IgmpType_MembershipQuery:
  ------------------
  |  Branch (129:3): [True: 3.01k, False: 3.04k]
  ------------------
  130|  3.01k|			msgType = "Membership Query";
  131|  3.01k|			break;
  132|    708|		case IgmpType_MembershipReportV1:
  ------------------
  |  Branch (132:3): [True: 708, False: 5.34k]
  ------------------
  133|    708|			msgType = "Membership Report";
  134|    708|			break;
  135|      0|		case IgmpType_DVMRP:
  ------------------
  |  Branch (135:3): [True: 0, False: 6.05k]
  ------------------
  136|      0|			msgType = "DVMRP";
  137|      0|			break;
  138|      0|		case IgmpType_P1Mv1:
  ------------------
  |  Branch (138:3): [True: 0, False: 6.05k]
  ------------------
  139|      0|			msgType = "PIMv1";
  140|      0|			break;
  141|      0|		case IgmpType_CiscoTrace:
  ------------------
  |  Branch (141:3): [True: 0, False: 6.05k]
  ------------------
  142|      0|			msgType = "Cisco Trace";
  143|      0|			break;
  144|    668|		case IgmpType_MembershipReportV2:
  ------------------
  |  Branch (144:3): [True: 668, False: 5.38k]
  ------------------
  145|    668|			msgType = "Membership Report";
  146|    668|			break;
  147|    774|		case IgmpType_LeaveGroup:
  ------------------
  |  Branch (147:3): [True: 774, False: 5.28k]
  ------------------
  148|    774|			msgType = "Leave Group";
  149|    774|			break;
  150|      0|		case IgmpType_MulticastTracerouteResponse:
  ------------------
  |  Branch (150:3): [True: 0, False: 6.05k]
  ------------------
  151|      0|			msgType = "Multicast Traceroute Response";
  152|      0|			break;
  153|      0|		case IgmpType_MulticastTraceroute:
  ------------------
  |  Branch (153:3): [True: 0, False: 6.05k]
  ------------------
  154|      0|			msgType = "Multicast Traceroute";
  155|      0|			break;
  156|    894|		case IgmpType_MembershipReportV3:
  ------------------
  |  Branch (156:3): [True: 894, False: 5.16k]
  ------------------
  157|    894|			msgType = "Membership Report";
  158|    894|			break;
  159|      0|		case IgmpType_MulticastRouterAdvertisement:
  ------------------
  |  Branch (159:3): [True: 0, False: 6.05k]
  ------------------
  160|      0|			msgType = "Multicast Router Advertisement";
  161|      0|			break;
  162|      0|		case IgmpType_MulticastRouterSolicitation:
  ------------------
  |  Branch (162:3): [True: 0, False: 6.05k]
  ------------------
  163|      0|			msgType = "Multicast Router Solicitation";
  164|      0|			break;
  165|      0|		case IgmpType_MulticastRouterTermination:
  ------------------
  |  Branch (165:3): [True: 0, False: 6.05k]
  ------------------
  166|      0|			msgType = "Multicast Router Termination";
  167|      0|			break;
  168|      0|		default:
  ------------------
  |  Branch (168:3): [True: 0, False: 6.05k]
  ------------------
  169|      0|			msgType = "Unknown";
  170|      0|			break;
  171|  6.05k|		}
  172|       |
  173|  6.05k|		std::string result = "IGMPv" + igmpVer + " Layer, " + msgType + " message";
  174|  6.05k|		return result;
  175|  6.05k|	}
_ZN4pcpp11IgmpV1Layer22computeCalculateFieldsEv:
  180|    724|	{
  181|    724|		igmp_header* hdr = getIgmpHeader();
  182|    724|		hdr->checksum = 0;
  183|       |		hdr->checksum = htobe16(calculateChecksum());
  184|    724|		hdr->maxResponseTime = 0;
  185|    724|	}
_ZN4pcpp11IgmpV2Layer22computeCalculateFieldsEv:
  190|  1.41k|	{
  191|  1.41k|		igmp_header* hdr = getIgmpHeader();
  192|  1.41k|		hdr->checksum = 0;
  193|       |		hdr->checksum = htobe16(calculateChecksum());
  194|  1.41k|	}
_ZN4pcpp16IgmpV3QueryLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  199|  1.78k|	    : IgmpLayer(data, dataLen, prevLayer, packet, IGMPv3)
  200|  1.78k|	{}
_ZNK4pcpp16IgmpV3QueryLayer21getSourceAddressCountEv:
  209|    892|	{
  210|       |		return be16toh(getIgmpV3QueryHeader()->numOfSources);
  211|    892|	}
_ZNK4pcpp16IgmpV3QueryLayer12getHeaderLenEv:
  229|    892|	{
  230|    892|		uint16_t numOfSources = getSourceAddressCount();
  231|       |
  232|    892|		int headerLen = numOfSources * sizeof(uint32_t) + sizeof(igmpv3_query_header);
  233|       |
  234|       |		// verify numOfRecords is a reasonable number that points to data within the packet
  235|    892|		if ((size_t)headerLen > getDataLen())
  ------------------
  |  Branch (235:7): [True: 246, False: 646]
  ------------------
  236|    246|			return getDataLen();
  237|       |
  238|    646|		return (size_t)headerLen;
  239|    892|	}
_ZN4pcpp16IgmpV3QueryLayer22computeCalculateFieldsEv:
  242|    446|	{
  243|    446|		igmpv3_query_header* hdr = getIgmpV3QueryHeader();
  244|    446|		hdr->checksum = 0;
  245|       |		hdr->checksum = htobe16(calculateChecksum());
  246|    446|	}
_ZN4pcpp17IgmpV3ReportLayer22computeCalculateFieldsEv:
  364|    447|	{
  365|    447|		igmpv3_report_header* hdr = getReportHeader();
  366|    447|		hdr->checksum = 0;
  367|       |		hdr->checksum = htobe16(calculateChecksum());
  368|    447|	}

_ZN4pcpp8LLCLayer14parseNextLayerEv:
   25|  3.58k|	{
   26|  3.58k|		if (m_DataLen <= sizeof(llc_header))
  ------------------
  |  Branch (26:7): [True: 11, False: 3.57k]
  ------------------
   27|     11|			return;
   28|       |
   29|  3.57k|		llc_header* hdr = getLlcHeader();
   30|  3.57k|		uint8_t* payload = m_Data + sizeof(llc_header);
   31|  3.57k|		size_t payloadLen = m_DataLen - sizeof(llc_header);
   32|       |
   33|  3.57k|		if (hdr->dsap == 0x42 && hdr->ssap == 0x42 && StpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (33:7): [True: 286, False: 3.28k]
  |  Branch (33:28): [True: 22, False: 264]
  |  Branch (33:49): [True: 22, False: 0]
  ------------------
   34|     22|		{
   35|     22|			constructNextLayerFromFactory(StpLayer::parseStpLayer, payload, payloadLen);
   36|     22|		}
   37|       |
   38|  3.57k|		if (!hasNextLayer())
  ------------------
  |  Branch (38:7): [True: 3.56k, False: 10]
  ------------------
   39|  3.56k|		{
   40|  3.56k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   41|  3.56k|		}
   42|  3.57k|	}
_ZNK4pcpp8LLCLayer8toStringEv:
   45|  1.63k|	{
   46|  1.63k|		return "Logical Link Control";
   47|  1.63k|	}
_ZN4pcpp8LLCLayer11isDataValidEPKhm:
   50|  3.99k|	{
   51|  3.99k|		return dataLen >= sizeof(llc_header) && !(data[0] == 0xFF && data[1] == 0xFF);
  ------------------
  |  Branch (51:10): [True: 3.77k, False: 216]
  |  Branch (51:45): [True: 219, False: 3.55k]
  |  Branch (51:64): [True: 194, False: 25]
  ------------------
   52|  3.99k|	}

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

_ZNK4pcpp17LdapOperationType8toStringEv:
   64|  19.1k|	{
   65|  19.1k|		return LdapOperationTypeToString.at(m_Value);
   66|  19.1k|	}
_ZN4pcpp17LdapOperationType13fromUintValueEh:
   69|  80.7k|	{
   70|  80.7k|		auto result = UintToLdapOperationType.find(value);
   71|  80.7k|		if (result != UintToLdapOperationType.end())
  ------------------
  |  Branch (71:7): [True: 79.0k, False: 1.63k]
  ------------------
   72|  79.0k|		{
   73|  79.0k|			return result->second;
   74|  79.0k|		}
   75|       |
   76|  1.63k|		return LdapOperationType::Unknown;
   77|  80.7k|	}
_ZNK4pcpp14LdapResultCode8toStringEv:
  172|  5.10k|	{
  173|  5.10k|		return LdapResultCodeToString.at(m_Value);
  174|  5.10k|	}
_ZN4pcpp14LdapResultCode13fromUintValueEh:
  177|  5.10k|	{
  178|  5.10k|		auto result = UintToLdapResultCode.find(value);
  179|  5.10k|		if (result != UintToLdapResultCode.end())
  ------------------
  |  Branch (179:7): [True: 5.10k, False: 0]
  ------------------
  180|  5.10k|		{
  181|  5.10k|			return result->second;
  182|  5.10k|		}
  183|       |
  184|      0|		return LdapResultCode::Unknown;
  185|  5.10k|	}
_ZN4pcpp9LdapLayerC2ENSt3__110unique_ptrINS_10Asn1RecordENS1_14default_deleteIS3_EEEEPhmPNS_5LayerEPNS_6PacketE:
  199|  61.9k|	    : Layer(data, dataLen, prevLayer, packet, LDAP)
  200|  61.9k|	{
  201|  61.9k|		m_Asn1Record = std::move(asn1Record);
  202|  61.9k|	}
_ZNK4pcpp9LdapLayer8toStringEv:
  258|  19.1k|	{
  259|  19.1k|		auto extendedInfo = getExtendedInfoString();
  260|  19.1k|		return "LDAP Layer, " + getLdapOperationType().toString() + (extendedInfo.empty() ? "" : ", " + extendedInfo);
  ------------------
  |  Branch (260:64): [True: 11.5k, False: 7.61k]
  ------------------
  261|  19.1k|	}
_ZN4pcpp9LdapLayer16parseLdapMessageEPhmPNS_5LayerEPNS_6PacketE:
  264|  78.0k|	{
  265|  78.0k|		try
  266|  78.0k|		{
  267|  78.0k|			auto asn1Record = Asn1Record::decode(data, dataLen, true);
  268|  78.0k|			auto operationType = LdapOperationType::fromUintValue(
  269|  78.0k|			    asn1Record->castAs<Asn1SequenceRecord>()->getSubRecords().at(operationTypeIndex)->getTagType());
  270|  78.0k|			switch (operationType)
  271|  78.0k|			{
  272|  3.36k|			case LdapOperationType::BindRequest:
  ------------------
  |  Branch (272:4): [True: 3.36k, False: 74.6k]
  ------------------
  273|  3.36k|				return new LdapBindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  274|    516|			case LdapOperationType::BindResponse:
  ------------------
  |  Branch (274:4): [True: 516, False: 77.5k]
  ------------------
  275|    516|				return new LdapBindResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  276|  3.75k|			case LdapOperationType::UnbindRequest:
  ------------------
  |  Branch (276:4): [True: 3.75k, False: 74.2k]
  ------------------
  277|  3.75k|				return new LdapUnbindRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  278|  2.89k|			case LdapOperationType::SearchRequest:
  ------------------
  |  Branch (278:4): [True: 2.89k, False: 75.1k]
  ------------------
  279|  2.89k|				return new LdapSearchRequestLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  280|  1.60k|			case LdapOperationType::SearchResultEntry:
  ------------------
  |  Branch (280:4): [True: 1.60k, False: 76.4k]
  ------------------
  281|  1.60k|				return new LdapSearchResultEntryLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  282|  9.18k|			case LdapOperationType::SearchResultDone:
  ------------------
  |  Branch (282:4): [True: 9.18k, False: 68.8k]
  ------------------
  283|  9.18k|				return new LdapSearchResultDoneLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  284|  1.56k|			case LdapOperationType::ModifyResponse:
  ------------------
  |  Branch (284:4): [True: 1.56k, False: 76.4k]
  ------------------
  285|  1.56k|				return new LdapModifyResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  286|    115|			case LdapOperationType::AddResponse:
  ------------------
  |  Branch (286:4): [True: 115, False: 77.9k]
  ------------------
  287|    115|				return new LdapAddResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  288|    152|			case LdapOperationType::DeleteResponse:
  ------------------
  |  Branch (288:4): [True: 152, False: 77.8k]
  ------------------
  289|    152|				return new LdapDeleteResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  290|  2.82k|			case LdapOperationType::ModifyDNResponse:
  ------------------
  |  Branch (290:4): [True: 2.82k, False: 75.2k]
  ------------------
  291|  2.82k|				return new LdapModifyDNResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  292|  1.50k|			case LdapOperationType::CompareResponse:
  ------------------
  |  Branch (292:4): [True: 1.50k, False: 76.5k]
  ------------------
  293|  1.50k|				return new LdapCompareResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  294|  1.10k|			case LdapOperationType::Unknown:
  ------------------
  |  Branch (294:4): [True: 1.10k, False: 76.9k]
  ------------------
  295|  1.10k|				return nullptr;
  296|  34.4k|			default:
  ------------------
  |  Branch (296:4): [True: 34.4k, False: 43.5k]
  ------------------
  297|  34.4k|				return new LdapLayer(std::move(asn1Record), data, dataLen, prevLayer, packet);
  298|  78.0k|			}
  299|  78.0k|		}
  300|  78.0k|		catch (...)
  301|  78.0k|		{
  302|  14.9k|			return nullptr;
  303|  14.9k|		}
  304|  78.0k|	}
_ZNK4pcpp9LdapLayer17getRootAsn1RecordEv:
  307|  27.7k|	{
  308|  27.7k|		return m_Asn1Record->castAs<Asn1SequenceRecord>();
  309|  27.7k|	}
_ZNK4pcpp9LdapLayer26getLdapOperationAsn1RecordEv:
  312|  27.7k|	{
  313|  27.7k|		return getRootAsn1Record()->getSubRecords().at(operationTypeIndex)->castAs<Asn1ConstructedRecord>();
  314|  27.7k|	}
_ZNK4pcpp9LdapLayer20getLdapOperationTypeEv:
  352|  17.6k|	{
  353|  17.6k|		uint8_t tagType;
  354|  17.6k|		try
  355|  17.6k|		{
  356|  17.6k|			tagType = getLdapOperationAsn1Record()->getTagType();
  357|  17.6k|		}
  358|  17.6k|		catch (...)
  359|  17.6k|		{
  360|    532|			tagType = LdapOperationType::Unknown;
  361|    532|		}
  362|       |
  363|  17.6k|		return LdapOperationType::fromUintValue(tagType);
  364|  17.6k|	}
_ZN4pcpp9LdapLayer14parseNextLayerEv:
  367|  61.9k|	{
  368|  61.9k|		size_t headerLen = getHeaderLen();
  369|  61.9k|		if (m_DataLen <= headerLen || headerLen == 0)
  ------------------
  |  Branch (369:7): [True: 30.8k, False: 31.1k]
  |  Branch (369:33): [True: 0, False: 31.1k]
  ------------------
  370|  30.8k|			return;
  371|       |
  372|  31.1k|		uint8_t* payload = m_Data + headerLen;
  373|  31.1k|		size_t payloadLen = m_DataLen - headerLen;
  374|       |
  375|  31.1k|		constructNextLayerFromFactory(LdapLayer::parseLdapMessage, payload, payloadLen);
  376|  31.1k|	}
_ZNK4pcpp17LdapResponseLayer13getResultCodeEv:
  427|  5.10k|	{
  428|  5.10k|		return LdapResultCode::fromUintValue(getLdapOperationAsn1Record()
  429|  5.10k|		                                         ->getSubRecords()
  430|  5.10k|		                                         .at(resultCodeIndex)
  431|  5.10k|		                                         ->castAs<Asn1EnumeratedRecord>()
  432|  5.10k|		                                         ->getIntValue<uint8_t>());
  433|  5.10k|	}
_ZNK4pcpp17LdapResponseLayer21getExtendedInfoStringEv:
  477|  5.10k|	{
  478|  5.10k|		return getResultCode().toString();
  479|  5.10k|	}
_ZNK4pcpp20LdapBindRequestLayer21getAuthenticationTypeEv:
  548|  1.34k|	{
  549|  1.34k|		if (getLdapOperationAsn1Record()->getSubRecords().size() <= credentialIndex)
  ------------------
  |  Branch (549:7): [True: 14, False: 1.33k]
  ------------------
  550|     14|		{
  551|     14|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  552|     14|		}
  553|       |
  554|  1.33k|		auto authType = getLdapOperationAsn1Record()->getSubRecords().at(credentialIndex)->getTagType();
  555|  1.33k|		switch (authType)
  556|  1.33k|		{
  557|  1.25k|		case 0:
  ------------------
  |  Branch (557:3): [True: 1.25k, False: 80]
  ------------------
  558|  1.25k|			return LdapBindRequestLayer::AuthenticationType::Simple;
  559|     64|		case 3:
  ------------------
  |  Branch (559:3): [True: 64, False: 1.26k]
  ------------------
  560|     64|			return LdapBindRequestLayer::AuthenticationType::Sasl;
  561|     16|		default:
  ------------------
  |  Branch (561:3): [True: 16, False: 1.31k]
  ------------------
  562|     16|			return LdapBindRequestLayer::AuthenticationType::NotApplicable;
  563|  1.33k|		}
  564|  1.33k|	}
_ZNK4pcpp20LdapBindRequestLayer21getExtendedInfoStringEv:
  605|  1.34k|	{
  606|  1.34k|		switch (getAuthenticationType())
  607|  1.34k|		{
  608|  1.25k|		case AuthenticationType::Simple:
  ------------------
  |  Branch (608:3): [True: 1.25k, False: 94]
  ------------------
  609|  1.25k|			return "simple";
  610|     64|		case AuthenticationType::Sasl:
  ------------------
  |  Branch (610:3): [True: 64, False: 1.28k]
  ------------------
  611|     64|			return "sasl";
  612|     30|		default:
  ------------------
  |  Branch (612:3): [True: 30, False: 1.31k]
  ------------------
  613|     30|			return "Unknown";
  614|  1.34k|		}
  615|  1.34k|	}
_ZNK4pcpp22LdapSearchRequestLayer18SearchRequestScope8toStringEv:
  689|  1.15k|	{
  690|  1.15k|		return SearchRequestScopeToString.at(m_Value);
  691|  1.15k|	}
_ZN4pcpp22LdapSearchRequestLayer18SearchRequestScope13fromUintValueEh:
  694|  1.15k|	{
  695|  1.15k|		if (value <= 2)
  ------------------
  |  Branch (695:7): [True: 1.08k, False: 70]
  ------------------
  696|  1.08k|		{
  697|  1.08k|			return static_cast<LdapSearchRequestLayer::SearchRequestScope::Value>(value);
  698|  1.08k|		}
  699|       |
  700|     70|		return LdapSearchRequestLayer::SearchRequestScope::Unknown;
  701|  1.15k|	}
_ZNK4pcpp22LdapSearchRequestLayer13getBaseObjectEv:
  745|  1.15k|	{
  746|  1.15k|		return getLdapOperationAsn1Record()
  747|  1.15k|		    ->getSubRecords()
  748|  1.15k|		    .at(baseObjectIndex)
  749|  1.15k|		    ->castAs<Asn1OctetStringRecord>()
  750|  1.15k|		    ->getValue();
  751|  1.15k|	}
_ZNK4pcpp22LdapSearchRequestLayer8getScopeEv:
  754|  1.15k|	{
  755|  1.15k|		return LdapSearchRequestLayer::SearchRequestScope::fromUintValue(getLdapOperationAsn1Record()
  756|  1.15k|		                                                                     ->getSubRecords()
  757|  1.15k|		                                                                     .at(scopeIndex)
  758|  1.15k|		                                                                     ->castAs<Asn1EnumeratedRecord>()
  759|  1.15k|		                                                                     ->getIntValue<uint8_t>());
  760|  1.15k|	}
_ZNK4pcpp22LdapSearchRequestLayer21getExtendedInfoStringEv:
  822|  1.15k|	{
  823|  1.15k|		auto baseObject = getBaseObject();
  824|  1.15k|		if (baseObject.empty())
  ------------------
  |  Branch (824:7): [True: 0, False: 1.15k]
  ------------------
  825|      0|		{
  826|      0|			baseObject = "ROOT";
  827|      0|		}
  828|       |
  829|  1.15k|		return "\"" + baseObject + "\", " + getScope().toString();
  830|  1.15k|	}

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

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

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

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

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

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

_ZNK4pcpp17NullLoopbackLayer9getFamilyEv:
   24|  8.88k|	{
   25|  8.88k|		uint32_t family = *(reinterpret_cast<uint32_t*>(m_Data));
   26|  8.88k|		if ((family & 0xFFFF'0000) != 0)
  ------------------
  |  Branch (26:7): [True: 6.92k, False: 1.96k]
  ------------------
   27|  6.92k|		{
   28|  6.92k|			if ((family & 0xFF00'0000) == 0 && (family & 0x00FF'0000) < 0x0006'0000)
  ------------------
  |  Branch (28:8): [True: 3.02k, False: 3.89k]
  |  Branch (28:39): [True: 1.45k, False: 1.57k]
  ------------------
   29|  1.45k|			{
   30|  1.45k|				family >>= 16;
   31|  1.45k|			}
   32|  5.47k|			else
   33|  5.47k|			{
   34|  5.47k|				family = BSWAP32(family);
  ------------------
  |  |   11|  5.47k|#define BSWAP32(x) (((x) >> 24) | (((x) & 0x00FF'0000) >> 8) | (((x) & 0x0000'FF00) << 8) | ((x) << 24))
  ------------------
   35|  5.47k|			}
   36|  6.92k|		}
   37|  1.96k|		else if ((family & 0x0000'00FF) == 0 && (family & 0x0000'FF00) < 0x0000'0600)
  ------------------
  |  Branch (37:12): [True: 636, False: 1.32k]
  |  Branch (37:43): [True: 429, False: 207]
  ------------------
   38|    429|		{
   39|    429|			family = BSWAP16(family & 0xFFFF);
  ------------------
  |  |   10|    429|#define BSWAP16(x) (((x) >> 8) | ((x) << 8))
  ------------------
   40|    429|		}
   41|       |
   42|  8.88k|		return family;
   43|  8.88k|	}
_ZN4pcpp17NullLoopbackLayer14parseNextLayerEv:
   51|  8.88k|	{
   52|  8.88k|		uint8_t* payload = m_Data + sizeof(uint32_t);
   53|  8.88k|		size_t payloadLen = m_DataLen - sizeof(uint32_t);
   54|       |
   55|  8.88k|		uint32_t family = getFamily();
   56|  8.88k|		if (family > Ieee8023MaxLength)
  ------------------
  |  Branch (56:7): [True: 3.42k, False: 5.46k]
  ------------------
   57|  3.42k|		{
   58|  3.42k|			uint16_t ethType = static_cast<uint16_t>(family);
   59|  3.42k|			switch (ethType)
   60|  3.42k|			{
   61|    585|			case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|    585|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:4): [True: 585, False: 2.83k]
  ------------------
   62|    585|			{
   63|    585|				tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|    585|				return;
   65|      0|			}
   66|      9|			case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|      9|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:4): [True: 9, False: 3.41k]
  ------------------
   67|      9|			{
   68|      9|				tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|      9|				return;
   70|      0|			}
   71|  2.82k|			default:
  ------------------
  |  Branch (71:4): [True: 2.82k, False: 594]
  ------------------
   72|  2.82k|			{
   73|  2.82k|				constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|  2.82k|				return;
   75|      0|			}
   76|  3.42k|			}
   77|  3.42k|		}
   78|       |
   79|  5.46k|		switch (family)
   80|  5.46k|		{
   81|  1.08k|		case PCPP_BSD_AF_INET:
  ------------------
  |  |   13|  1.08k|#define PCPP_BSD_AF_INET 2
  ------------------
  |  Branch (81:3): [True: 1.08k, False: 4.37k]
  ------------------
   82|  1.08k|		{
   83|  1.08k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   84|  1.08k|			break;
   85|      0|		}
   86|    322|		case PCPP_BSD_AF_INET6_BSD:
  ------------------
  |  |   23|    322|#define PCPP_BSD_AF_INET6_BSD 24
  ------------------
  |  Branch (86:3): [True: 322, False: 5.14k]
  ------------------
   87|    391|		case PCPP_BSD_AF_INET6_FREEBSD:
  ------------------
  |  |   25|    391|#define PCPP_BSD_AF_INET6_FREEBSD 28
  ------------------
  |  Branch (87:3): [True: 69, False: 5.39k]
  ------------------
   88|  2.42k|		case PCPP_BSD_AF_INET6_DARWIN:
  ------------------
  |  |   27|  2.42k|#define PCPP_BSD_AF_INET6_DARWIN 30
  ------------------
  |  Branch (88:3): [True: 2.03k, False: 3.42k]
  ------------------
   89|  2.42k|		{
   90|  2.42k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   91|  2.42k|			break;
   92|    391|		}
   93|  1.95k|		default:
  ------------------
  |  Branch (93:3): [True: 1.95k, False: 3.51k]
  ------------------
   94|  1.95k|		{
   95|  1.95k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   96|  1.95k|			break;
   97|    391|		}
   98|  5.46k|		}
   99|  5.46k|	}
_ZNK4pcpp17NullLoopbackLayer8toStringEv:
  102|  5.60k|	{
  103|  5.60k|		return "Null/Loopback";
  104|  5.60k|	}

_ZN4pcpp10PPPoELayer22computeCalculateFieldsEv:
   33|  6.22k|	{
   34|  6.22k|		pppoe_header* pppoeHdr = getPPPoEHeader();
   35|       |		pppoeHdr->payloadLength = htobe16(m_DataLen - sizeof(pppoe_header));
   36|  6.22k|	}
_ZN4pcpp17PPPoESessionLayer14parseNextLayerEv:
   56|  58.7k|	{
   57|  58.7k|		size_t headerLen = getHeaderLen();
   58|  58.7k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (58:7): [True: 70, False: 58.6k]
  ------------------
   59|     70|			return;
   60|       |
   61|  58.6k|		uint8_t* payload = m_Data + headerLen;
   62|  58.6k|		size_t payloadLen = m_DataLen - headerLen;
   63|       |
   64|  58.6k|		switch (getPPPNextProtocol())
   65|  58.6k|		{
   66|  55.4k|		case PCPP_PPP_IP:
  ------------------
  |  |  457|  55.4k|#define PCPP_PPP_IP 0x21
  ------------------
  |  Branch (66:3): [True: 55.4k, False: 3.24k]
  ------------------
   67|  55.4k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   68|  55.4k|			break;
   69|     36|		case PCPP_PPP_IPV6:
  ------------------
  |  |  509|     36|#define PCPP_PPP_IPV6 0x57
  ------------------
  |  Branch (69:3): [True: 36, False: 58.6k]
  ------------------
   70|     36|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   71|     36|			break;
   72|  3.20k|		default:
  ------------------
  |  Branch (72:3): [True: 3.20k, False: 55.4k]
  ------------------
   73|  3.20k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
   74|  3.20k|			break;
   75|  58.6k|		}
   76|  58.6k|	}
_ZNK4pcpp17PPPoESessionLayer18getPPPNextProtocolEv:
   79|  70.7k|	{
   80|  70.7k|		if (m_DataLen < getHeaderLen())
  ------------------
  |  Branch (80:7): [True: 0, False: 70.7k]
  ------------------
   81|      0|		{
   82|      0|			PCPP_LOG_ERROR("ERROR: size of layer is smaller then PPPoE session header");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModulePPPoELayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|      0|			return 0;
   84|      0|		}
   85|       |
   86|  70.7k|		uint16_t pppNextProto = *reinterpret_cast<uint16_t*>(m_Data + sizeof(pppoe_header));
   87|       |		return be16toh(pppNextProto);
   88|  70.7k|	}
_ZN4pcpp29createPPPNextProtoToStringMapEv:
  103|      2|	{
  104|      2|		std::unordered_map<uint16_t, std::string> tempMap;
  105|      2|		tempMap[PCPP_PPP_PADDING] = "Padding Protocol";
  ------------------
  |  |  451|      2|#define PCPP_PPP_PADDING 0x1
  ------------------
  106|      2|		tempMap[PCPP_PPP_ROHC_SCID] = "ROHC small-CID";
  ------------------
  |  |  453|      2|#define PCPP_PPP_ROHC_SCID 0x3
  ------------------
  107|      2|		tempMap[PCPP_PPP_ROHC_LCID] = "ROHC large-CID";
  ------------------
  |  |  455|      2|#define PCPP_PPP_ROHC_LCID 0x5
  ------------------
  108|      2|		tempMap[PCPP_PPP_IP] = "Internet Protocol version 4";
  ------------------
  |  |  457|      2|#define PCPP_PPP_IP 0x21
  ------------------
  109|      2|		tempMap[PCPP_PPP_OSI] = "OSI Network Layer";
  ------------------
  |  |  459|      2|#define PCPP_PPP_OSI 0x23
  ------------------
  110|      2|		tempMap[PCPP_PPP_XNSIDP] = "Xerox NS IDP";
  ------------------
  |  |  461|      2|#define PCPP_PPP_XNSIDP 0x25
  ------------------
  111|      2|		tempMap[PCPP_PPP_DEC4] = "DECnet Phase IV";
  ------------------
  |  |  463|      2|#define PCPP_PPP_DEC4 0x27
  ------------------
  112|      2|		tempMap[PCPP_PPP_AT] = "Appletalk";
  ------------------
  |  |  465|      2|#define PCPP_PPP_AT 0x29
  ------------------
  113|      2|		tempMap[PCPP_PPP_IPX] = "Novell IPX";
  ------------------
  |  |  467|      2|#define PCPP_PPP_IPX 0x2b
  ------------------
  114|      2|		tempMap[PCPP_PPP_VJC_COMP] = "Van Jacobson Compressed TCP/IP";
  ------------------
  |  |  469|      2|#define PCPP_PPP_VJC_COMP 0x2d
  ------------------
  115|      2|		tempMap[PCPP_PPP_VJC_UNCOMP] = "Van Jacobson Uncompressed TCP/IP";
  ------------------
  |  |  471|      2|#define PCPP_PPP_VJC_UNCOMP 0x2f
  ------------------
  116|      2|		tempMap[PCPP_PPP_BCP] = "Bridging PDU";
  ------------------
  |  |  473|      2|#define PCPP_PPP_BCP 0x31
  ------------------
  117|      2|		tempMap[PCPP_PPP_ST] = "Stream Protocol (ST-II)";
  ------------------
  |  |  475|      2|#define PCPP_PPP_ST 0x33
  ------------------
  118|      2|		tempMap[PCPP_PPP_VINES] = "Banyan Vines";
  ------------------
  |  |  477|      2|#define PCPP_PPP_VINES 0x35
  ------------------
  119|      2|		tempMap[PCPP_PPP_AT_EDDP] = "AppleTalk EDDP";
  ------------------
  |  |  479|      2|#define PCPP_PPP_AT_EDDP 0x39
  ------------------
  120|      2|		tempMap[PCPP_PPP_AT_SB] = "AppleTalk SmartBuffered";
  ------------------
  |  |  481|      2|#define PCPP_PPP_AT_SB 0x3b
  ------------------
  121|      2|		tempMap[PCPP_PPP_MP] = "Multi-Link";
  ------------------
  |  |  483|      2|#define PCPP_PPP_MP 0x3d
  ------------------
  122|      2|		tempMap[PCPP_PPP_NB] = "NETBIOS Framing";
  ------------------
  |  |  485|      2|#define PCPP_PPP_NB 0x3f
  ------------------
  123|      2|		tempMap[PCPP_PPP_CISCO] = "Cisco Systems";
  ------------------
  |  |  487|      2|#define PCPP_PPP_CISCO 0x41
  ------------------
  124|      2|		tempMap[PCPP_PPP_ASCOM] = "Ascom Timeplex";
  ------------------
  |  |  489|      2|#define PCPP_PPP_ASCOM 0x43
  ------------------
  125|      2|		tempMap[PCPP_PPP_LBLB] = "Fujitsu Link Backup and Load Balancing (LBLB)";
  ------------------
  |  |  491|      2|#define PCPP_PPP_LBLB 0x45
  ------------------
  126|      2|		tempMap[PCPP_PPP_RL] = "DCA Remote Lan";
  ------------------
  |  |  493|      2|#define PCPP_PPP_RL 0x47
  ------------------
  127|      2|		tempMap[PCPP_PPP_SDTP] = "Serial Data Transport Protocol (PPP-SDTP)";
  ------------------
  |  |  495|      2|#define PCPP_PPP_SDTP 0x49
  ------------------
  128|      2|		tempMap[PCPP_PPP_LLC] = "SNA over 802.2";
  ------------------
  |  |  497|      2|#define PCPP_PPP_LLC 0x4b
  ------------------
  129|      2|		tempMap[PCPP_PPP_SNA] = "SNA";
  ------------------
  |  |  499|      2|#define PCPP_PPP_SNA 0x4d
  ------------------
  130|      2|		tempMap[PCPP_PPP_IPV6HC] = "IPv6 Header Compression ";
  ------------------
  |  |  501|      2|#define PCPP_PPP_IPV6HC 0x4f
  ------------------
  131|      2|		tempMap[PCPP_PPP_KNX] = "KNX Bridging Data";
  ------------------
  |  |  503|      2|#define PCPP_PPP_KNX 0x51
  ------------------
  132|      2|		tempMap[PCPP_PPP_ENCRYPT] = "Encryption";
  ------------------
  |  |  505|      2|#define PCPP_PPP_ENCRYPT 0x53
  ------------------
  133|      2|		tempMap[PCPP_PPP_ILE] = "Individual Link Encryption";
  ------------------
  |  |  507|      2|#define PCPP_PPP_ILE 0x55
  ------------------
  134|      2|		tempMap[PCPP_PPP_IPV6] = "Internet Protocol version 6";
  ------------------
  |  |  509|      2|#define PCPP_PPP_IPV6 0x57
  ------------------
  135|      2|		tempMap[PCPP_PPP_MUX] = "PPP Muxing";
  ------------------
  |  |  511|      2|#define PCPP_PPP_MUX 0x59
  ------------------
  136|      2|		tempMap[PCPP_PPP_VSNP] = "Vendor-Specific Network Protocol (VSNP)";
  ------------------
  |  |  513|      2|#define PCPP_PPP_VSNP 0x5b
  ------------------
  137|      2|		tempMap[PCPP_PPP_TNP] = "TRILL Network Protocol (TNP)";
  ------------------
  |  |  515|      2|#define PCPP_PPP_TNP 0x5d
  ------------------
  138|      2|		tempMap[PCPP_PPP_RTP_FH] = "RTP IPHC Full Header";
  ------------------
  |  |  517|      2|#define PCPP_PPP_RTP_FH 0x61
  ------------------
  139|      2|		tempMap[PCPP_PPP_RTP_CTCP] = "RTP IPHC Compressed TCP";
  ------------------
  |  |  519|      2|#define PCPP_PPP_RTP_CTCP 0x63
  ------------------
  140|      2|		tempMap[PCPP_PPP_RTP_CNTCP] = "RTP IPHC Compressed Non TCP";
  ------------------
  |  |  521|      2|#define PCPP_PPP_RTP_CNTCP 0x65
  ------------------
  141|      2|		tempMap[PCPP_PPP_RTP_CUDP8] = "RTP IPHC Compressed UDP 8";
  ------------------
  |  |  523|      2|#define PCPP_PPP_RTP_CUDP8 0x67
  ------------------
  142|      2|		tempMap[PCPP_PPP_RTP_CRTP8] = "RTP IPHC Compressed RTP 8";
  ------------------
  |  |  525|      2|#define PCPP_PPP_RTP_CRTP8 0x69
  ------------------
  143|      2|		tempMap[PCPP_PPP_STAMPEDE] = "Stampede Bridging";
  ------------------
  |  |  527|      2|#define PCPP_PPP_STAMPEDE 0x6f
  ------------------
  144|      2|		tempMap[PCPP_PPP_MPPLUS] = "MP+ Protocol";
  ------------------
  |  |  529|      2|#define PCPP_PPP_MPPLUS 0x73
  ------------------
  145|      2|		tempMap[PCPP_PPP_NTCITS_IPI] = "NTCITS IPI";
  ------------------
  |  |  531|      2|#define PCPP_PPP_NTCITS_IPI 0xc1
  ------------------
  146|      2|		tempMap[PCPP_PPP_ML_SLCOMP] = "Single link compression in multilink";
  ------------------
  |  |  533|      2|#define PCPP_PPP_ML_SLCOMP 0xfb
  ------------------
  147|      2|		tempMap[PCPP_PPP_COMP] = "Compressed datagram";
  ------------------
  |  |  535|      2|#define PCPP_PPP_COMP 0xfd
  ------------------
  148|      2|		tempMap[PCPP_PPP_STP_HELLO] = "802.1d Hello Packets";
  ------------------
  |  |  537|      2|#define PCPP_PPP_STP_HELLO 0x0201
  ------------------
  149|      2|		tempMap[PCPP_PPP_IBM_SR] = "IBM Source Routing BPDU";
  ------------------
  |  |  539|      2|#define PCPP_PPP_IBM_SR 0x0203
  ------------------
  150|      2|		tempMap[PCPP_PPP_DEC_LB] = "DEC LANBridge100 Spanning Tree";
  ------------------
  |  |  541|      2|#define PCPP_PPP_DEC_LB 0x0205
  ------------------
  151|      2|		tempMap[PCPP_PPP_CDP] = "Cisco Discovery Protocol";
  ------------------
  |  |  543|      2|#define PCPP_PPP_CDP 0x0207
  ------------------
  152|      2|		tempMap[PCPP_PPP_NETCS] = "Netcs Twin Routing";
  ------------------
  |  |  545|      2|#define PCPP_PPP_NETCS 0x0209
  ------------------
  153|      2|		tempMap[PCPP_PPP_STP] = "STP - Scheduled Transfer Protocol";
  ------------------
  |  |  547|      2|#define PCPP_PPP_STP 0x020b
  ------------------
  154|      2|		tempMap[PCPP_PPP_EDP] = "EDP - Extreme Discovery Protocol";
  ------------------
  |  |  549|      2|#define PCPP_PPP_EDP 0x020d
  ------------------
  155|      2|		tempMap[PCPP_PPP_OSCP] = "Optical Supervisory Channel Protocol (OSCP)";
  ------------------
  |  |  551|      2|#define PCPP_PPP_OSCP 0x0211
  ------------------
  156|      2|		tempMap[PCPP_PPP_OSCP2] = "Optical Supervisory Channel Protocol (OSCP)";
  ------------------
  |  |  553|      2|#define PCPP_PPP_OSCP2 0x0213
  ------------------
  157|      2|		tempMap[PCPP_PPP_LUXCOM] = "Luxcom";
  ------------------
  |  |  555|      2|#define PCPP_PPP_LUXCOM 0x0231
  ------------------
  158|      2|		tempMap[PCPP_PPP_SIGMA] = "Sigma Network Systems";
  ------------------
  |  |  557|      2|#define PCPP_PPP_SIGMA 0x0233
  ------------------
  159|      2|		tempMap[PCPP_PPP_ACSP] = "Apple Client Server Protocol";
  ------------------
  |  |  559|      2|#define PCPP_PPP_ACSP 0x0235
  ------------------
  160|      2|		tempMap[PCPP_PPP_MPLS_UNI] = "MPLS Unicast";
  ------------------
  |  |  561|      2|#define PCPP_PPP_MPLS_UNI 0x0281
  ------------------
  161|      2|		tempMap[PCPP_PPP_MPLS_MULTI] = "MPLS Multicast";
  ------------------
  |  |  563|      2|#define PCPP_PPP_MPLS_MULTI 0x0283
  ------------------
  162|      2|		tempMap[PCPP_PPP_P12844] = "IEEE p1284.4 standard - data packets";
  ------------------
  |  |  565|      2|#define PCPP_PPP_P12844 0x0285
  ------------------
  163|      2|		tempMap[PCPP_PPP_TETRA] = "ETSI TETRA Network Protocol Type 1";
  ------------------
  |  |  567|      2|#define PCPP_PPP_TETRA 0x0287
  ------------------
  164|      2|		tempMap[PCPP_PPP_MFTP] = "Multichannel Flow Treatment Protocol";
  ------------------
  |  |  569|      2|#define PCPP_PPP_MFTP 0x0289
  ------------------
  165|      2|		tempMap[PCPP_PPP_RTP_CTCPND] = "RTP IPHC Compressed TCP No Delta";
  ------------------
  |  |  571|      2|#define PCPP_PPP_RTP_CTCPND 0x2063
  ------------------
  166|      2|		tempMap[PCPP_PPP_RTP_CS] = "RTP IPHC Context State";
  ------------------
  |  |  573|      2|#define PCPP_PPP_RTP_CS 0x2065
  ------------------
  167|      2|		tempMap[PCPP_PPP_RTP_CUDP16] = "RTP IPHC Compressed UDP 16";
  ------------------
  |  |  575|      2|#define PCPP_PPP_RTP_CUDP16 0x2067
  ------------------
  168|      2|		tempMap[PCPP_PPP_RTP_CRDP16] = "RTP IPHC Compressed RTP 16";
  ------------------
  |  |  577|      2|#define PCPP_PPP_RTP_CRDP16 0x2069
  ------------------
  169|      2|		tempMap[PCPP_PPP_CCCP] = "Cray Communications Control Protocol";
  ------------------
  |  |  579|      2|#define PCPP_PPP_CCCP 0x4001
  ------------------
  170|      2|		tempMap[PCPP_PPP_CDPD_MNRP] = "CDPD Mobile Network Registration Protocol";
  ------------------
  |  |  581|      2|#define PCPP_PPP_CDPD_MNRP 0x4003
  ------------------
  171|      2|		tempMap[PCPP_PPP_EXPANDAP] = "Expand accelerator protocol";
  ------------------
  |  |  583|      2|#define PCPP_PPP_EXPANDAP 0x4005
  ------------------
  172|      2|		tempMap[PCPP_PPP_ODSICP] = "ODSICP NCP";
  ------------------
  |  |  585|      2|#define PCPP_PPP_ODSICP 0x4007
  ------------------
  173|      2|		tempMap[PCPP_PPP_DOCSIS] = "DOCSIS DLL";
  ------------------
  |  |  587|      2|#define PCPP_PPP_DOCSIS 0x4009
  ------------------
  174|      2|		tempMap[PCPP_PPP_CETACEANNDP] = "Cetacean Network Detection Protocol";
  ------------------
  |  |  589|      2|#define PCPP_PPP_CETACEANNDP 0x400b
  ------------------
  175|      2|		tempMap[PCPP_PPP_LZS] = "Stacker LZS";
  ------------------
  |  |  591|      2|#define PCPP_PPP_LZS 0x4021
  ------------------
  176|      2|		tempMap[PCPP_PPP_REFTEK] = "RefTek Protocol";
  ------------------
  |  |  593|      2|#define PCPP_PPP_REFTEK 0x4023
  ------------------
  177|      2|		tempMap[PCPP_PPP_FC] = "Fibre Channel";
  ------------------
  |  |  595|      2|#define PCPP_PPP_FC 0x4025
  ------------------
  178|      2|		tempMap[PCPP_PPP_EMIT] = "EMIT Protocols";
  ------------------
  |  |  597|      2|#define PCPP_PPP_EMIT 0x4027
  ------------------
  179|      2|		tempMap[PCPP_PPP_VSP] = "Vendor-Specific Protocol (VSP)";
  ------------------
  |  |  599|      2|#define PCPP_PPP_VSP 0x405b
  ------------------
  180|      2|		tempMap[PCPP_PPP_TLSP] = "TRILL Link State Protocol (TLSP)";
  ------------------
  |  |  601|      2|#define PCPP_PPP_TLSP 0x405d
  ------------------
  181|      2|		tempMap[PCPP_PPP_IPCP] = "Internet Protocol Control Protocol";
  ------------------
  |  |  603|      2|#define PCPP_PPP_IPCP 0x8021
  ------------------
  182|      2|		tempMap[PCPP_PPP_OSINLCP] = "OSI Network Layer Control Protocol";
  ------------------
  |  |  605|      2|#define PCPP_PPP_OSINLCP 0x8023
  ------------------
  183|      2|		tempMap[PCPP_PPP_XNSIDPCP] = "Xerox NS IDP Control Protocol";
  ------------------
  |  |  607|      2|#define PCPP_PPP_XNSIDPCP 0x8025
  ------------------
  184|      2|		tempMap[PCPP_PPP_DECNETCP] = "DECnet Phase IV Control Protocol";
  ------------------
  |  |  609|      2|#define PCPP_PPP_DECNETCP 0x8027
  ------------------
  185|      2|		tempMap[PCPP_PPP_ATCP] = "AppleTalk Control Protocol";
  ------------------
  |  |  611|      2|#define PCPP_PPP_ATCP 0x8029
  ------------------
  186|      2|		tempMap[PCPP_PPP_IPXCP] = "Novell IPX Control Protocol";
  ------------------
  |  |  613|      2|#define PCPP_PPP_IPXCP 0x802b
  ------------------
  187|      2|		tempMap[PCPP_PPP_BRIDGENCP] = "Bridging NCP";
  ------------------
  |  |  615|      2|#define PCPP_PPP_BRIDGENCP 0x8031
  ------------------
  188|      2|		tempMap[PCPP_PPP_SPCP] = "Stream Protocol Control Protocol";
  ------------------
  |  |  617|      2|#define PCPP_PPP_SPCP 0x8033
  ------------------
  189|      2|		tempMap[PCPP_PPP_BVCP] = "Banyan Vines Control Protocol";
  ------------------
  |  |  619|      2|#define PCPP_PPP_BVCP 0x8035
  ------------------
  190|      2|		tempMap[PCPP_PPP_MLCP] = "Multi-Link Control Protocol";
  ------------------
  |  |  621|      2|#define PCPP_PPP_MLCP 0x803d
  ------------------
  191|      2|		tempMap[PCPP_PPP_NBCP] = "NETBIOS Framing Control Protocol";
  ------------------
  |  |  623|      2|#define PCPP_PPP_NBCP 0x803f
  ------------------
  192|      2|		tempMap[PCPP_PPP_CISCOCP] = "Cisco Systems Control Protocol";
  ------------------
  |  |  625|      2|#define PCPP_PPP_CISCOCP 0x8041
  ------------------
  193|      2|		tempMap[PCPP_PPP_ASCOMCP] = "Ascom Timeplex";
  ------------------
  |  |  627|      2|#define PCPP_PPP_ASCOMCP 0x8043
  ------------------
  194|      2|		tempMap[PCPP_PPP_LBLBCP] = "Fujitsu LBLB Control Protocol";
  ------------------
  |  |  629|      2|#define PCPP_PPP_LBLBCP 0x8045
  ------------------
  195|      2|		tempMap[PCPP_PPP_RLNCP] = "DCA Remote Lan Network Control Protocol (RLNCP)";
  ------------------
  |  |  631|      2|#define PCPP_PPP_RLNCP 0x8047
  ------------------
  196|      2|		tempMap[PCPP_PPP_SDCP] = "Serial Data Control Protocol (PPP-SDCP)";
  ------------------
  |  |  633|      2|#define PCPP_PPP_SDCP 0x8049
  ------------------
  197|      2|		tempMap[PCPP_PPP_LLCCP] = "SNA over 802.2 Control Protocol";
  ------------------
  |  |  635|      2|#define PCPP_PPP_LLCCP 0x804b
  ------------------
  198|      2|		tempMap[PCPP_PPP_SNACP] = "SNA Control Protocol";
  ------------------
  |  |  637|      2|#define PCPP_PPP_SNACP 0x804d
  ------------------
  199|      2|		tempMap[PCPP_PPP_IP6HCCP] = "IP6 Header Compression Control Protocol";
  ------------------
  |  |  639|      2|#define PCPP_PPP_IP6HCCP 0x804f
  ------------------
  200|      2|		tempMap[PCPP_PPP_KNXCP] = "KNX Bridging Control Protocol";
  ------------------
  |  |  641|      2|#define PCPP_PPP_KNXCP 0x8051
  ------------------
  201|      2|		tempMap[PCPP_PPP_ECP] = "Encryption Control Protocol";
  ------------------
  |  |  643|      2|#define PCPP_PPP_ECP 0x8053
  ------------------
  202|      2|		tempMap[PCPP_PPP_ILECP] = "Individual Link Encryption Control Protocol";
  ------------------
  |  |  645|      2|#define PCPP_PPP_ILECP 0x8055
  ------------------
  203|      2|		tempMap[PCPP_PPP_IPV6CP] = "IPv6 Control Protocol";
  ------------------
  |  |  647|      2|#define PCPP_PPP_IPV6CP 0x8057
  ------------------
  204|      2|		tempMap[PCPP_PPP_MUXCP] = "PPP Muxing Control Protocol";
  ------------------
  |  |  649|      2|#define PCPP_PPP_MUXCP 0x8059
  ------------------
  205|      2|		tempMap[PCPP_PPP_VSNCP] = "Vendor-Specific Network Control Protocol (VSNCP)";
  ------------------
  |  |  651|      2|#define PCPP_PPP_VSNCP 0x805b
  ------------------
  206|      2|		tempMap[PCPP_PPP_TNCP] = "TRILL Network Control Protocol";
  ------------------
  |  |  653|      2|#define PCPP_PPP_TNCP 0x805d
  ------------------
  207|      2|		tempMap[PCPP_PPP_STAMPEDECP] = "Stampede Bridging Control Protocol";
  ------------------
  |  |  655|      2|#define PCPP_PPP_STAMPEDECP 0x806f
  ------------------
  208|      2|		tempMap[PCPP_PPP_MPPCP] = "MP+ Control Protocol";
  ------------------
  |  |  657|      2|#define PCPP_PPP_MPPCP 0x8073
  ------------------
  209|      2|		tempMap[PCPP_PPP_IPICP] = "NTCITS IPI Control Protocol";
  ------------------
  |  |  659|      2|#define PCPP_PPP_IPICP 0x80c1
  ------------------
  210|      2|		tempMap[PCPP_PPP_SLCC] = "Single link compression in multilink control";
  ------------------
  |  |  661|      2|#define PCPP_PPP_SLCC 0x80fb
  ------------------
  211|      2|		tempMap[PCPP_PPP_CCP] = "Compression Control Protocol";
  ------------------
  |  |  663|      2|#define PCPP_PPP_CCP 0x80fd
  ------------------
  212|      2|		tempMap[PCPP_PPP_CDPCP] = "Cisco Discovery Protocol Control Protocol";
  ------------------
  |  |  665|      2|#define PCPP_PPP_CDPCP 0x8207
  ------------------
  213|      2|		tempMap[PCPP_PPP_NETCSCP] = "Netcs Twin Routing";
  ------------------
  |  |  667|      2|#define PCPP_PPP_NETCSCP 0x8209
  ------------------
  214|      2|		tempMap[PCPP_PPP_STPCP] = "STP - Control Protocol";
  ------------------
  |  |  669|      2|#define PCPP_PPP_STPCP 0x820b
  ------------------
  215|      2|		tempMap[PCPP_PPP_EDPCP] = "EDPCP - Extreme Discovery Protocol Control Protocol";
  ------------------
  |  |  671|      2|#define PCPP_PPP_EDPCP 0x820d
  ------------------
  216|      2|		tempMap[PCPP_PPP_ACSPC] = "Apple Client Server Protocol Control";
  ------------------
  |  |  673|      2|#define PCPP_PPP_ACSPC 0x8235
  ------------------
  217|      2|		tempMap[PCPP_PPP_MPLSCP] = "MPLS Control Protocol";
  ------------------
  |  |  675|      2|#define PCPP_PPP_MPLSCP 0x8281
  ------------------
  218|      2|		tempMap[PCPP_PPP_P12844CP] = "IEEE p1284.4 standard - Protocol Control";
  ------------------
  |  |  677|      2|#define PCPP_PPP_P12844CP 0x8285
  ------------------
  219|      2|		tempMap[PCPP_PPP_TETRACP] = "ETSI TETRA TNP1 Control Protocol";
  ------------------
  |  |  679|      2|#define PCPP_PPP_TETRACP 0x8287
  ------------------
  220|      2|		tempMap[PCPP_PPP_MFTPCP] = "Multichannel Flow Treatment Protocol";
  ------------------
  |  |  681|      2|#define PCPP_PPP_MFTPCP 0x8289
  ------------------
  221|      2|		tempMap[PCPP_PPP_LCP] = "Link Control Protocol";
  ------------------
  |  |  683|      2|#define PCPP_PPP_LCP 0xc021
  ------------------
  222|      2|		tempMap[PCPP_PPP_PAP] = "Password Authentication Protocol";
  ------------------
  |  |  685|      2|#define PCPP_PPP_PAP 0xc023
  ------------------
  223|      2|		tempMap[PCPP_PPP_LQR] = "Link Quality Report";
  ------------------
  |  |  687|      2|#define PCPP_PPP_LQR 0xc025
  ------------------
  224|      2|		tempMap[PCPP_PPP_SPAP] = "Shiva Password Authentication Protocol";
  ------------------
  |  |  689|      2|#define PCPP_PPP_SPAP 0xc027
  ------------------
  225|      2|		tempMap[PCPP_PPP_CBCP] = "Callback Control Protocol (CBCP)";
  ------------------
  |  |  691|      2|#define PCPP_PPP_CBCP 0xc029
  ------------------
  226|      2|		tempMap[PCPP_PPP_BACP] = "BACP Bandwidth Allocation Control Protocol";
  ------------------
  |  |  693|      2|#define PCPP_PPP_BACP 0xc02b
  ------------------
  227|      2|		tempMap[PCPP_PPP_BAP] = "BAP Bandwidth Allocation Protocol";
  ------------------
  |  |  695|      2|#define PCPP_PPP_BAP 0xc02d
  ------------------
  228|      2|		tempMap[PCPP_PPP_VSAP] = "Vendor-Specific Authentication Protocol (VSAP)";
  ------------------
  |  |  697|      2|#define PCPP_PPP_VSAP 0xc05b
  ------------------
  229|      2|		tempMap[PCPP_PPP_CONTCP] = "Container Control Protocol";
  ------------------
  |  |  699|      2|#define PCPP_PPP_CONTCP 0xc081
  ------------------
  230|      2|		tempMap[PCPP_PPP_CHAP] = "Challenge Handshake Authentication Protocol";
  ------------------
  |  |  701|      2|#define PCPP_PPP_CHAP 0xc223
  ------------------
  231|      2|		tempMap[PCPP_PPP_RSAAP] = "RSA Authentication Protocol";
  ------------------
  |  |  703|      2|#define PCPP_PPP_RSAAP 0xc225
  ------------------
  232|      2|		tempMap[PCPP_PPP_EAP] = "Extensible Authentication Protocol";
  ------------------
  |  |  705|      2|#define PCPP_PPP_EAP 0xc227
  ------------------
  233|      2|		tempMap[PCPP_PPP_SIEP] = "Mitsubishi Security Information Exchange Protocol (SIEP)";
  ------------------
  |  |  707|      2|#define PCPP_PPP_SIEP 0xc229
  ------------------
  234|      2|		tempMap[PCPP_PPP_SBAP] = "Stampede Bridging Authorization Protocol";
  ------------------
  |  |  709|      2|#define PCPP_PPP_SBAP 0xc26f
  ------------------
  235|      2|		tempMap[PCPP_PPP_PRPAP] = "Proprietary Authentication Protocol";
  ------------------
  |  |  711|      2|#define PCPP_PPP_PRPAP 0xc281
  ------------------
  236|      2|		tempMap[PCPP_PPP_PRPAP2] = "Proprietary Authentication Protocol";
  ------------------
  |  |  713|      2|#define PCPP_PPP_PRPAP2 0xc283
  ------------------
  237|      2|		tempMap[PCPP_PPP_PRPNIAP] = "Proprietary Node ID Authentication Protocol";
  ------------------
  |  |  715|      2|#define PCPP_PPP_PRPNIAP 0xc481
  ------------------
  238|      2|		return tempMap;
  239|      2|	}
_ZNK4pcpp17PPPoESessionLayer8toStringEv:
  244|  11.1k|	{
  245|  11.1k|		auto findResult = PPPNextProtoToString.find(getPPPNextProtocol());
  246|  11.1k|		std::string nextProtocol;
  247|  11.1k|		if (findResult != PPPNextProtoToString.end())
  ------------------
  |  Branch (247:7): [True: 10.2k, False: 908]
  ------------------
  248|  10.2k|			nextProtocol = findResult->second;
  249|    908|		else
  250|    908|		{
  251|    908|			std::ostringstream stream;
  252|    908|			stream << "Unknown (0x" << std::hex << getPPPNextProtocol() << ")";
  253|    908|			nextProtocol = stream.str();
  254|    908|		}
  255|       |
  256|  11.1k|		return "PPP-over-Ethernet Session (followed by '" + nextProtocol + "')";
  257|  11.1k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12getHeaderLenEv:
  378|  3.92k|	{
  379|  3.92k|		size_t payloadLen = sizeof(pppoe_header) + be16toh(getPPPoEHeader()->payloadLength);
  380|  3.92k|		if (payloadLen > m_DataLen)
  ------------------
  |  Branch (380:7): [True: 310, False: 3.61k]
  ------------------
  381|    310|			return m_DataLen;
  382|       |
  383|  3.61k|		return payloadLen;
  384|  3.92k|	}
_ZNK4pcpp19PPPoEDiscoveryLayer12codeToStringENS_10PPPoELayer9PPPoECodeE:
  424|  1.31k|	{
  425|  1.31k|		switch (code)
  426|  1.31k|		{
  427|    482|		case PPPoELayer::PPPOE_CODE_SESSION:
  ------------------
  |  Branch (427:3): [True: 482, False: 828]
  ------------------
  428|    482|			return std::string("PPPoE Session");
  429|      2|		case PPPoELayer::PPPOE_CODE_PADO:
  ------------------
  |  Branch (429:3): [True: 2, False: 1.30k]
  ------------------
  430|      2|			return std::string("PADO");
  431|      2|		case PPPoELayer::PPPOE_CODE_PADI:
  ------------------
  |  Branch (431:3): [True: 2, False: 1.30k]
  ------------------
  432|      2|			return std::string("PADI");
  433|      2|		case PPPoELayer::PPPOE_CODE_PADG:
  ------------------
  |  Branch (433:3): [True: 2, False: 1.30k]
  ------------------
  434|      2|			return std::string("PADG");
  435|      2|		case PPPoELayer::PPPOE_CODE_PADC:
  ------------------
  |  Branch (435:3): [True: 2, False: 1.30k]
  ------------------
  436|      2|			return std::string("PADC");
  437|     14|		case PPPoELayer::PPPOE_CODE_PADQ:
  ------------------
  |  Branch (437:3): [True: 14, False: 1.29k]
  ------------------
  438|     14|			return std::string("PADQ");
  439|    702|		case PPPoELayer::PPPOE_CODE_PADR:
  ------------------
  |  Branch (439:3): [True: 702, False: 608]
  ------------------
  440|    702|			return std::string("PADR");
  441|     30|		case PPPoELayer::PPPOE_CODE_PADS:
  ------------------
  |  Branch (441:3): [True: 30, False: 1.28k]
  ------------------
  442|     30|			return std::string("PADS");
  443|      0|		case PPPoELayer::PPPOE_CODE_PADT:
  ------------------
  |  Branch (443:3): [True: 0, False: 1.31k]
  ------------------
  444|      0|			return std::string("PADT");
  445|      6|		case PPPoELayer::PPPOE_CODE_PADM:
  ------------------
  |  Branch (445:3): [True: 6, False: 1.30k]
  ------------------
  446|      6|			return std::string("PADM");
  447|      2|		case PPPoELayer::PPPOE_CODE_PADN:
  ------------------
  |  Branch (447:3): [True: 2, False: 1.30k]
  ------------------
  448|      2|			return std::string("PADN");
  449|     66|		default:
  ------------------
  |  Branch (449:3): [True: 66, False: 1.24k]
  ------------------
  450|     66|			return std::string("Unknown PPPoE code");
  451|  1.31k|		}
  452|  1.31k|	}

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

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

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

_ZNK4pcpp12PayloadLayer8toStringEv:
   72|   137k|	{
   73|   137k|		std::ostringstream dataLenStream;
   74|   137k|		dataLenStream << m_DataLen;
   75|       |
   76|   137k|		return "Payload Layer, Data length: " + dataLenStream.str() + " [Bytes]";
   77|   137k|	}

_ZN4pcpp15PostgresMessage27parsePostgresBackendMessageEPKhm:
  309|    706|	{
  310|    706|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (310:7): [True: 0, False: 706]
  |  Branch (310:26): [True: 0, False: 706]
  ------------------
  311|      0|		{
  312|      0|			return nullptr;
  313|      0|		}
  314|       |
  315|    706|		if (dataLen < 5)
  ------------------
  |  Branch (315:7): [True: 2, False: 704]
  ------------------
  316|      2|		{
  317|      2|			return std::unique_ptr<PostgresMessage>(
  318|      2|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  319|      2|		}
  320|       |
  321|       |		// The length covers itself (4 bytes) but not the message type byte, so the smallest valid length is 4 (for
  322|       |		// example ParseComplete) and the message takes messageLength + 1 bytes.
  323|       |		// The check doesn't add 1: with a 32-bit size_t, 0xFFFFFFFF + 1 wraps around to 0.
  324|    704|		size_t messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  325|    704|		if (messageLength < sizeof(uint32_t) || messageLength >= dataLen)
  ------------------
  |  Branch (325:7): [True: 6, False: 698]
  |  Branch (325:43): [True: 63, False: 635]
  ------------------
  326|     69|		{
  327|     69|			return std::unique_ptr<PostgresMessage>(
  328|     69|			    new PostgresMessage(data, dataLen, PostgresMessageType::Backend_Unknown));
  329|     69|		}
  330|       |
  331|    635|		auto messageTypeValue = data[0];
  332|    635|		auto messageType = PostgresMessageType::Backend_Unknown;
  333|       |
  334|    635|		switch (messageTypeValue)
  335|    635|		{
  336|     69|		case PostgresBackendMessage_R:
  ------------------
  |  Branch (336:3): [True: 69, False: 566]
  ------------------
  337|     69|		{
  338|     69|			uint32_t authType = be32toh(*reinterpret_cast<const uint32_t*>(data + 5));
  339|     69|			switch (authType)
  340|     69|			{
  341|     33|			case 0:
  ------------------
  |  Branch (341:4): [True: 33, False: 36]
  ------------------
  342|     33|			{
  343|     33|				messageType = PostgresMessageType::Backend_AuthenticationOk;
  344|     33|				break;
  345|      0|			}
  346|      3|			case 1:
  ------------------
  |  Branch (346:4): [True: 3, False: 66]
  ------------------
  347|      3|			{
  348|      3|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV4;
  349|      3|				break;
  350|      0|			}
  351|      1|			case 2:
  ------------------
  |  Branch (351:4): [True: 1, False: 68]
  ------------------
  352|      1|			{
  353|      1|				messageType = PostgresMessageType::Backend_AuthenticationKerberosV5;
  354|      1|				break;
  355|      0|			}
  356|      0|			case 3:
  ------------------
  |  Branch (356:4): [True: 0, False: 69]
  ------------------
  357|      0|			{
  358|      0|				messageType = PostgresMessageType::Backend_AuthenticationCleartextPassword;
  359|      0|				break;
  360|      0|			}
  361|      1|			case 5:
  ------------------
  |  Branch (361:4): [True: 1, False: 68]
  ------------------
  362|      1|			{
  363|      1|				messageType = PostgresMessageType::Backend_AuthenticationMD5Password;
  364|      1|				break;
  365|      0|			}
  366|      1|			case 7:
  ------------------
  |  Branch (366:4): [True: 1, False: 68]
  ------------------
  367|      1|			{
  368|      1|				messageType = PostgresMessageType::Backend_AuthenticationGSS;
  369|      1|				break;
  370|      0|			}
  371|      1|			case 8:
  ------------------
  |  Branch (371:4): [True: 1, False: 68]
  ------------------
  372|      1|			{
  373|      1|				messageType = PostgresMessageType::Backend_AuthenticationGSSContinue;
  374|      1|				break;
  375|      0|			}
  376|      3|			case 9:
  ------------------
  |  Branch (376:4): [True: 3, False: 66]
  ------------------
  377|      3|			{
  378|      3|				messageType = PostgresMessageType::Backend_AuthenticationSSPI;
  379|      3|				break;
  380|      0|			}
  381|      1|			case 10:
  ------------------
  |  Branch (381:4): [True: 1, False: 68]
  ------------------
  382|      1|			{
  383|      1|				messageType = PostgresMessageType::Backend_AuthenticationSASL;
  384|      1|				break;
  385|      0|			}
  386|      0|			case 11:
  ------------------
  |  Branch (386:4): [True: 0, False: 69]
  ------------------
  387|      0|			{
  388|      0|				messageType = PostgresMessageType::Backend_AuthenticationSASLContinue;
  389|      0|				break;
  390|      0|			}
  391|      3|			case 12:
  ------------------
  |  Branch (391:4): [True: 3, False: 66]
  ------------------
  392|      3|			{
  393|      3|				messageType = PostgresMessageType::Backend_AuthenticationSASLFinal;
  394|      3|				break;
  395|      0|			}
  396|     22|			default:
  ------------------
  |  Branch (396:4): [True: 22, False: 47]
  ------------------
  397|     22|			{
  398|     22|				break;
  399|      0|			}
  400|     69|			}
  401|     69|			break;
  402|     69|		}
  403|     69|		case PostgresBackendMessage_K:
  ------------------
  |  Branch (403:3): [True: 10, False: 625]
  ------------------
  404|     10|		{
  405|     10|			messageType = PostgresMessageType::Backend_BackendKeyData;
  406|     10|			break;
  407|     69|		}
  408|      1|		case PostgresBackendMessage_2:
  ------------------
  |  Branch (408:3): [True: 1, False: 634]
  ------------------
  409|      1|		{
  410|      1|			messageType = PostgresMessageType::Backend_BindComplete;
  411|      1|			break;
  412|     69|		}
  413|      6|		case PostgresBackendMessage_3:
  ------------------
  |  Branch (413:3): [True: 6, False: 629]
  ------------------
  414|      6|		{
  415|      6|			messageType = PostgresMessageType::Backend_CloseComplete;
  416|      6|			break;
  417|     69|		}
  418|    375|		case PostgresBackendMessage_S:
  ------------------
  |  Branch (418:3): [True: 375, False: 260]
  ------------------
  419|    375|		{
  420|    375|			return std::make_unique<PostgresParameterStatus>(data, messageLength + 1);
  421|     69|		}
  422|     11|		case PostgresBackendMessage_Z:
  ------------------
  |  Branch (422:3): [True: 11, False: 624]
  ------------------
  423|     11|		{
  424|     11|			messageType = PostgresMessageType::Backend_ReadyForQuery;
  425|     11|			break;
  426|     69|		}
  427|      3|		case PostgresBackendMessage_C:
  ------------------
  |  Branch (427:3): [True: 3, False: 632]
  ------------------
  428|      3|		{
  429|      3|			messageType = PostgresMessageType::Backend_CommandComplete;
  430|      3|			break;
  431|     69|		}
  432|      4|		case PostgresBackendMessage_d:
  ------------------
  |  Branch (432:3): [True: 4, False: 631]
  ------------------
  433|      4|		{
  434|      4|			messageType = PostgresMessageType::Backend_CopyData;
  435|      4|			break;
  436|     69|		}
  437|      6|		case PostgresBackendMessage_c:
  ------------------
  |  Branch (437:3): [True: 6, False: 629]
  ------------------
  438|      6|		{
  439|      6|			messageType = PostgresMessageType::Backend_CopyDone;
  440|      6|			break;
  441|     69|		}
  442|      3|		case PostgresBackendMessage_G:
  ------------------
  |  Branch (442:3): [True: 3, False: 632]
  ------------------
  443|      3|		{
  444|      3|			messageType = PostgresMessageType::Backend_CopyInResponse;
  445|      3|			break;
  446|     69|		}
  447|     19|		case PostgresBackendMessage_H:
  ------------------
  |  Branch (447:3): [True: 19, False: 616]
  ------------------
  448|     19|		{
  449|     19|			messageType = PostgresMessageType::Backend_CopyOutResponse;
  450|     19|			break;
  451|     69|		}
  452|     10|		case PostgresBackendMessage_W:
  ------------------
  |  Branch (452:3): [True: 10, False: 625]
  ------------------
  453|     10|		{
  454|     10|			messageType = PostgresMessageType::Backend_CopyBothResponse;
  455|     10|			break;
  456|     69|		}
  457|      6|		case PostgresBackendMessage_D:
  ------------------
  |  Branch (457:3): [True: 6, False: 629]
  ------------------
  458|      6|		{
  459|      6|			return std::make_unique<PostgresDataRowMessage>(data, messageLength + 1);
  460|     69|		}
  461|     12|		case PostgresBackendMessage_I:
  ------------------
  |  Branch (461:3): [True: 12, False: 623]
  ------------------
  462|     12|		{
  463|     12|			messageType = PostgresMessageType::Backend_EmptyQueryResponse;
  464|     12|			break;
  465|     69|		}
  466|      1|		case PostgresBackendMessage_E:
  ------------------
  |  Branch (466:3): [True: 1, False: 634]
  ------------------
  467|      1|		{
  468|      1|			return std::make_unique<PostgresErrorResponseMessage>(data, messageLength + 1);
  469|     69|		}
  470|      5|		case PostgresBackendMessage_V:
  ------------------
  |  Branch (470:3): [True: 5, False: 630]
  ------------------
  471|      5|		{
  472|      5|			messageType = PostgresMessageType::Backend_FunctionCallResponse;
  473|      5|			break;
  474|     69|		}
  475|      4|		case PostgresBackendMessage_v:
  ------------------
  |  Branch (475:3): [True: 4, False: 631]
  ------------------
  476|      4|		{
  477|      4|			messageType = PostgresMessageType::Backend_NegotiateProtocolVersion;
  478|      4|			break;
  479|     69|		}
  480|      7|		case PostgresBackendMessage_n:
  ------------------
  |  Branch (480:3): [True: 7, False: 628]
  ------------------
  481|      7|		{
  482|      7|			messageType = PostgresMessageType::Backend_NoData;
  483|      7|			break;
  484|     69|		}
  485|      6|		case PostgresBackendMessage_N:
  ------------------
  |  Branch (485:3): [True: 6, False: 629]
  ------------------
  486|      6|		{
  487|      6|			messageType = PostgresMessageType::Backend_NoticeResponse;
  488|      6|			break;
  489|     69|		}
  490|     12|		case PostgresBackendMessage_A:
  ------------------
  |  Branch (490:3): [True: 12, False: 623]
  ------------------
  491|     12|		{
  492|     12|			messageType = PostgresMessageType::Backend_NotificationResponse;
  493|     12|			break;
  494|     69|		}
  495|      6|		case PostgresBackendMessage_t:
  ------------------
  |  Branch (495:3): [True: 6, False: 629]
  ------------------
  496|      6|		{
  497|      6|			messageType = PostgresMessageType::Backend_ParameterDescription;
  498|      6|			break;
  499|     69|		}
  500|      6|		case PostgresBackendMessage_1:
  ------------------
  |  Branch (500:3): [True: 6, False: 629]
  ------------------
  501|      6|		{
  502|      6|			messageType = PostgresMessageType::Backend_ParseComplete;
  503|      6|			break;
  504|     69|		}
  505|      9|		case PostgresBackendMessage_s:
  ------------------
  |  Branch (505:3): [True: 9, False: 626]
  ------------------
  506|      9|		{
  507|      9|			messageType = PostgresMessageType::Backend_PortalSuspended;
  508|      9|			break;
  509|     69|		}
  510|      6|		case PostgresBackendMessage_T:
  ------------------
  |  Branch (510:3): [True: 6, False: 629]
  ------------------
  511|      6|		{
  512|      6|			return std::make_unique<PostgresRowDescriptionMessage>(data, messageLength + 1);
  513|     69|		}
  514|     38|		default:
  ------------------
  |  Branch (514:3): [True: 38, False: 597]
  ------------------
  515|     38|		{
  516|     38|			break;
  517|     69|		}
  518|    635|		}
  519|       |
  520|    247|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  521|    635|	}
_ZN4pcpp15PostgresMessage28parsePostgresFrontendMessageEPKhm:
  524|    760|	{
  525|    760|		if (data == nullptr || dataLen < 1)
  ------------------
  |  Branch (525:7): [True: 0, False: 760]
  |  Branch (525:26): [True: 0, False: 760]
  ------------------
  526|      0|		{
  527|      0|			return nullptr;
  528|      0|		}
  529|       |
  530|    760|		uint8_t messageTypeValue = data[0];
  531|    760|		if (messageTypeValue == PostgresMessage_0)
  ------------------
  |  Branch (531:7): [True: 459, False: 301]
  ------------------
  532|    459|		{
  533|    459|			if (dataLen < 8)
  ------------------
  |  Branch (533:8): [True: 262, False: 197]
  ------------------
  534|    262|			{
  535|    262|				return std::unique_ptr<PostgresMessage>(
  536|    262|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  537|    262|			}
  538|       |
  539|       |			// The length covers itself and the 4 byte tag
  540|    197|			size_t messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data));
  541|    197|			if (messageLength < 2 * sizeof(uint32_t) || messageLength > dataLen)
  ------------------
  |  Branch (541:8): [True: 3, False: 194]
  |  Branch (541:48): [True: 77, False: 117]
  ------------------
  542|     80|			{
  543|     80|				return std::unique_ptr<PostgresMessage>(
  544|     80|				    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  545|     80|			}
  546|       |
  547|    117|			auto messageTag = be32toh(*reinterpret_cast<const uint32_t*>(data + 4));
  548|    117|			auto messageType = PostgresMessageType::Frontend_Unknown;
  549|       |
  550|    117|			switch (messageTag)
  551|    117|			{
  552|     33|			case PostgresFrontendTag_StartupMessage:
  ------------------
  |  Branch (552:4): [True: 33, False: 84]
  ------------------
  553|     33|			{
  554|     33|				return std::make_unique<PostgresStartupMessage>(data, messageLength);
  555|      0|			}
  556|      0|			case PostgresFrontendTag_SSLRequest:
  ------------------
  |  Branch (556:4): [True: 0, False: 117]
  ------------------
  557|      0|			{
  558|      0|				messageType = PostgresMessageType::Frontend_SSLRequest;
  559|      0|				break;
  560|      0|			}
  561|      0|			case PostgresFrontendTag_CancelRequest:
  ------------------
  |  Branch (561:4): [True: 0, False: 117]
  ------------------
  562|      0|			{
  563|      0|				messageType = PostgresMessageType::Frontend_CancelRequest;
  564|      0|				break;
  565|      0|			}
  566|      1|			case PostgresFrontendTag_GSSENCRequest:
  ------------------
  |  Branch (566:4): [True: 1, False: 116]
  ------------------
  567|      1|			{
  568|      1|				messageType = PostgresMessageType::Frontend_GSSENCRequest;
  569|      1|				break;
  570|      0|			}
  571|     83|			default:
  ------------------
  |  Branch (571:4): [True: 83, False: 34]
  ------------------
  572|     83|			{
  573|     83|				break;
  574|      0|			}
  575|    117|			}
  576|       |
  577|     84|			return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength, messageType));
  578|    117|		}
  579|       |
  580|    301|		if (dataLen < 5)
  ------------------
  |  Branch (580:7): [True: 19, False: 282]
  ------------------
  581|     19|		{
  582|     19|			return std::unique_ptr<PostgresMessage>(
  583|     19|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  584|     19|		}
  585|       |
  586|       |		// The length covers itself (4 bytes) but not the message type byte, so the smallest valid length is 4 (for
  587|       |		// example a Sync message) and the message takes messageLength + 1 bytes.
  588|       |		// The check doesn't add 1: with a 32-bit size_t, 0xFFFFFFFF + 1 wraps around to 0.
  589|    282|		size_t messageLength = be32toh(*reinterpret_cast<const uint32_t*>(data + 1));
  590|    282|		if (messageLength < sizeof(uint32_t) || messageLength >= dataLen)
  ------------------
  |  Branch (590:7): [True: 1, False: 281]
  |  Branch (590:43): [True: 114, False: 167]
  ------------------
  591|    115|		{
  592|    115|			return std::unique_ptr<PostgresMessage>(
  593|    115|			    new PostgresMessage(data, dataLen, PostgresMessageType::Frontend_Unknown));
  594|    115|		}
  595|       |
  596|    167|		auto messageType = PostgresMessageType::Frontend_Unknown;
  597|    167|		switch (messageTypeValue)
  598|    167|		{
  599|      1|		case PostgresFrontendMessage_Q:
  ------------------
  |  Branch (599:3): [True: 1, False: 166]
  ------------------
  600|      1|		{
  601|      1|			return std::make_unique<PostgresQueryMessage>(data, messageLength + 1);
  602|      0|		}
  603|      1|		case PostgresFrontendMessage_P:
  ------------------
  |  Branch (603:3): [True: 1, False: 166]
  ------------------
  604|      1|		{
  605|      1|			messageType = PostgresMessageType::Frontend_Parse;
  606|      1|			break;
  607|      0|		}
  608|      1|		case PostgresFrontendMessage_B:
  ------------------
  |  Branch (608:3): [True: 1, False: 166]
  ------------------
  609|      1|		{
  610|      1|			messageType = PostgresMessageType::Frontend_Bind;
  611|      1|			break;
  612|      0|		}
  613|      1|		case PostgresFrontendMessage_E:
  ------------------
  |  Branch (613:3): [True: 1, False: 166]
  ------------------
  614|      1|		{
  615|      1|			messageType = PostgresMessageType::Frontend_Execute;
  616|      1|			break;
  617|      0|		}
  618|      3|		case PostgresFrontendMessage_C:
  ------------------
  |  Branch (618:3): [True: 3, False: 164]
  ------------------
  619|      3|		{
  620|      3|			messageType = PostgresMessageType::Frontend_Close;
  621|      3|			break;
  622|      0|		}
  623|      2|		case PostgresFrontendMessage_D:
  ------------------
  |  Branch (623:3): [True: 2, False: 165]
  ------------------
  624|      2|		{
  625|      2|			messageType = PostgresMessageType::Frontend_Describe;
  626|      2|			break;
  627|      0|		}
  628|      1|		case PostgresFrontendMessage_F:
  ------------------
  |  Branch (628:3): [True: 1, False: 166]
  ------------------
  629|      1|		{
  630|      1|			messageType = PostgresMessageType::Frontend_FunctionCall;
  631|      1|			break;
  632|      0|		}
  633|      1|		case PostgresFrontendMessage_H:
  ------------------
  |  Branch (633:3): [True: 1, False: 166]
  ------------------
  634|      1|		{
  635|      1|			messageType = PostgresMessageType::Frontend_Flush;
  636|      1|			break;
  637|      0|		}
  638|      1|		case PostgresFrontendMessage_S:
  ------------------
  |  Branch (638:3): [True: 1, False: 166]
  ------------------
  639|      1|		{
  640|      1|			messageType = PostgresMessageType::Frontend_Sync;
  641|      1|			break;
  642|      0|		}
  643|      1|		case PostgresFrontendMessage_d:
  ------------------
  |  Branch (643:3): [True: 1, False: 166]
  ------------------
  644|      1|		{
  645|      1|			messageType = PostgresMessageType::Frontend_CopyData;
  646|      1|			break;
  647|      0|		}
  648|      1|		case PostgresFrontendMessage_c:
  ------------------
  |  Branch (648:3): [True: 1, False: 166]
  ------------------
  649|      1|		{
  650|      1|			messageType = PostgresMessageType::Frontend_CopyDone;
  651|      1|			break;
  652|      0|		}
  653|     68|		case PostgresFrontendMessage_f:
  ------------------
  |  Branch (653:3): [True: 68, False: 99]
  ------------------
  654|     68|		{
  655|     68|			messageType = PostgresMessageType::Frontend_CopyFail;
  656|     68|			break;
  657|      0|		}
  658|      1|		case PostgresFrontendMessage_X:
  ------------------
  |  Branch (658:3): [True: 1, False: 166]
  ------------------
  659|      1|		{
  660|      1|			messageType = PostgresMessageType::Frontend_Terminate;
  661|      1|			break;
  662|      0|		}
  663|     84|		default:
  ------------------
  |  Branch (663:3): [True: 84, False: 83]
  ------------------
  664|     84|		{
  665|     84|			break;
  666|      0|		}
  667|    167|		}
  668|       |
  669|    166|		return std::unique_ptr<PostgresMessage>(new PostgresMessage(data, messageLength + 1, messageType));
  670|    167|	}
_ZN4pcpp13PostgresLayer28parsePostgresBackendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1016|    433|	{
 1017|    433|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Backend);
 1018|    433|	}
_ZN4pcpp13PostgresLayer29parsePostgresFrontendMessagesEPhmPNS_5LayerEPNS_6PacketE:
 1022|  2.92k|	{
 1023|  2.92k|		return new PostgresLayer(data, dataLen, prevLayer, packet, PostgresMessageOrigin::Frontend);
 1024|  2.92k|	}
_ZNK4pcpp13PostgresLayer19getPostgresMessagesEv:
 1027|  1.22k|	{
 1028|  1.22k|		if (!m_MessagesInitialized)
  ------------------
  |  Branch (1028:7): [True: 610, False: 610]
  ------------------
 1029|    610|		{
 1030|    610|			auto parseFunc = (m_MessageOrigin == PostgresMessageOrigin::Backend)
  ------------------
  |  Branch (1030:21): [True: 84, False: 526]
  ------------------
 1031|    610|			                     ? &PostgresMessage::parsePostgresBackendMessage
 1032|    610|			                     : &PostgresMessage::parsePostgresFrontendMessage;
 1033|       |
 1034|    610|			auto data = m_Data;
 1035|    610|			auto dataLen = m_DataLen;
 1036|       |
 1037|  2.07k|			while (dataLen > 0)
  ------------------
  |  Branch (1037:11): [True: 1.46k, False: 610]
  ------------------
 1038|  1.46k|			{
 1039|  1.46k|				auto curMessage = parseFunc(data, dataLen);
 1040|  1.46k|				if (curMessage == nullptr)
  ------------------
  |  Branch (1040:9): [True: 0, False: 1.46k]
  ------------------
 1041|      0|				{
 1042|      0|					break;
 1043|      0|				}
 1044|       |
 1045|  1.46k|				dataLen -= curMessage->getTotalMessageLength();
 1046|  1.46k|				data += curMessage->getTotalMessageLength();
 1047|  1.46k|				m_Messages.pushBack(std::move(curMessage));
 1048|  1.46k|			}
 1049|       |
 1050|    610|			m_MessagesInitialized = true;
 1051|    610|		}
 1052|       |
 1053|  1.22k|		return m_Messages;
 1054|  1.22k|	}
_ZNK4pcpp13PostgresLayer8toStringEv:
 1067|  1.22k|	{
 1068|  1.22k|		const auto& messages = getPostgresMessages();
 1069|  1.22k|		return std::string("PostgreSQL ") +
 1070|  1.22k|		       (m_MessageOrigin == PostgresMessageOrigin::Frontend ? "Frontend" : "Backend") + " Layer, " +
  ------------------
  |  Branch (1070:11): [True: 1.05k, False: 168]
  ------------------
 1071|  1.22k|		       std::to_string(messages.size()) + " message(s)";
 1072|  1.22k|	}

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

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

_ZN4pcpp9RawPacketD2Ev:
   22|   950k|	{
   23|   950k|		RawPacket::clear();
   24|   950k|	}
_ZN4pcpp9RawPacketC2ERKS0_:
   27|   936k|	{
   28|   936k|		m_RawData = nullptr;
   29|   936k|		copyDataFrom(other, true);
   30|   936k|	}
_ZN4pcpp9RawPacket12copyDataFromERKS0_b:
   50|   936k|	{
   51|   936k|		if (!other.m_RawPacketSet)
  ------------------
  |  Branch (51:7): [True: 0, False: 936k]
  ------------------
   52|      0|			return;
   53|       |
   54|   936k|		m_TimeStamp = other.m_TimeStamp;
   55|       |
   56|   936k|		if (allocateData)
  ------------------
  |  Branch (56:7): [True: 936k, False: 0]
  ------------------
   57|   936k|		{
   58|   936k|			m_OwnsRawData = true;
   59|   936k|			m_RawData = new uint8_t[other.m_RawDataLen];
   60|   936k|			m_RawDataLen = other.m_RawDataLen;
   61|   936k|		}
   62|       |
   63|   936k|		memcpy(m_RawData, other.m_RawData, other.m_RawDataLen);
   64|   936k|		m_LinkLayerType = other.m_LinkLayerType;
   65|   936k|		m_FrameLength = other.m_FrameLength;
   66|   936k|		m_RawPacketSet = true;
   67|   936k|	}
_ZN4pcpp9RawPacket10setRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
   97|   209k|	{
   98|   209k|		return doSetRawData(pRawData, rawDataLen, takeOwnership, timestamp, layerType, frameLength);
   99|   209k|	}
_ZN4pcpp9RawPacket12doSetRawDataEPKhib8timespecNS_13LinkLayerTypeEi:
  103|   209k|	{
  104|   209k|		clear();
  105|       |
  106|   209k|		m_OwnsRawData = takeOwnership;
  107|   209k|		m_FrameLength = (frameLength == -1) ? rawDataLen : frameLength;
  ------------------
  |  Branch (107:19): [True: 834, False: 208k]
  ------------------
  108|   209k|		m_RawData = (uint8_t*)pRawData;
  109|   209k|		m_RawDataLen = rawDataLen;
  110|   209k|		m_TimeStamp = timestamp;
  111|   209k|		m_RawPacketSet = true;
  112|   209k|		m_LinkLayerType = layerType;
  113|   209k|		return true;
  114|   209k|	}
_ZN4pcpp9RawPacket5clearEv:
  123|  1.15M|	{
  124|  1.15M|		if (m_RawData != nullptr && m_OwnsRawData)
  ------------------
  |  Branch (124:7): [True: 1.14M, False: 14.3k]
  |  Branch (124:31): [True: 1.14M, False: 0]
  ------------------
  125|  1.14M|			delete[] m_RawData;
  126|       |
  127|  1.15M|		m_RawData = nullptr;
  128|  1.15M|		m_RawDataLen = 0;
  129|  1.15M|		m_FrameLength = 0;
  130|  1.15M|		m_RawPacketSet = false;
  131|  1.15M|	}
_ZN4pcpp9RawPacket10insertDataEiPKhm:
  141|   114k|	{
  142|   114k|		if (atIndex < 0 || atIndex > m_RawDataLen)
  ------------------
  |  Branch (142:7): [True: 0, False: 114k]
  |  Branch (142:22): [True: 0, False: 114k]
  ------------------
  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|   114k|		memmove((uint8_t*)m_RawData + atIndex + dataToInsertLen, (uint8_t*)m_RawData + atIndex, m_RawDataLen - atIndex);
  152|       |
  153|   114k|		if (dataToInsert != nullptr)
  ------------------
  |  Branch (153:7): [True: 0, False: 114k]
  ------------------
  154|      0|		{
  155|       |			// insert data
  156|      0|			memcpy((uint8_t*)m_RawData + atIndex, dataToInsert, dataToInsertLen);
  157|      0|		}
  158|       |
  159|   114k|		m_RawDataLen += dataToInsertLen;
  160|   114k|		m_FrameLength = m_RawDataLen;
  161|   114k|	}
_ZN4pcpp9RawPacket14reallocateDataEm:
  164|  20.1k|	{
  165|  20.1k|		if ((int)newBufferLength == m_RawDataLen)
  ------------------
  |  Branch (165:7): [True: 0, False: 20.1k]
  ------------------
  166|      0|			return true;
  167|       |
  168|  20.1k|		if ((int)newBufferLength < m_RawDataLen)
  ------------------
  |  Branch (168:7): [True: 0, False: 20.1k]
  ------------------
  169|      0|		{
  170|      0|			PCPP_LOG_ERROR("Cannot reallocate raw packet to a smaller size. Current data length: "
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|      0|			               << m_RawDataLen << "; requested length: " << newBufferLength);
  172|      0|			return false;
  173|      0|		}
  174|       |
  175|  20.1k|		uint8_t* newBuffer = new uint8_t[newBufferLength];
  176|  20.1k|		memset(newBuffer, 0, newBufferLength);
  177|  20.1k|		if (m_RawDataLen > 0)
  ------------------
  |  Branch (177:7): [True: 20.1k, False: 0]
  ------------------
  178|  20.1k|		{
  179|  20.1k|			memcpy(newBuffer, m_RawData, m_RawDataLen);
  180|  20.1k|		}
  181|  20.1k|		if (m_OwnsRawData)
  ------------------
  |  Branch (181:7): [True: 20.1k, False: 0]
  ------------------
  182|  20.1k|			delete[] m_RawData;
  183|       |
  184|  20.1k|		m_OwnsRawData = true;
  185|  20.1k|		m_RawData = newBuffer;
  186|       |
  187|  20.1k|		return true;
  188|  20.1k|	}
_ZN4pcpp9RawPacket10removeDataEim:
  191|  74.8k|	{
  192|  74.8k|		if (atIndex < 0 || atIndex + (int)numOfBytesToRemove > m_RawDataLen)
  ------------------
  |  Branch (192:7): [True: 3, False: 74.8k]
  |  Branch (192:22): [True: 0, False: 74.8k]
  ------------------
  193|      3|		{
  194|      3|			PCPP_LOG_ERROR("Remove section is out of raw packet bound. Removes can only happen in range [0, " +
  ------------------
  |  |  445|      3|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      3|	do                                                                                                                 \
  |  |  |  |  415|      3|	{                                                                                                                  \
  |  |  |  |  416|      3|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      3|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      3|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 3, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      3|		{                                                                                                              \
  |  |  |  |  419|      3|			auto ctx =                                                                                                 \
  |  |  |  |  420|      3|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      3|#define LOG_MODULE PacketLogModuleRawPacket
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|      3|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      3|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      3|		}                                                                                                              \
  |  |  |  |  424|      3|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 3]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|      3|			               std::to_string(m_RawDataLen) + ')');
  196|      3|			return false;
  197|      3|		}
  198|       |
  199|  74.8k|		if (numOfBytesToRemove == 0)
  ------------------
  |  Branch (199:7): [True: 0, False: 74.8k]
  ------------------
  200|      0|			return true;
  201|       |
  202|       |		// only move data if we are removing data somewhere in the layer, not at the end of the last layer
  203|       |		// this is so that resizing of the last layer can occur fast by just reducing the fictional length of the packet
  204|       |		// (m_RawDataLen) by the given amount
  205|  74.8k|		if ((atIndex + (int)numOfBytesToRemove) != m_RawDataLen)
  ------------------
  |  Branch (205:7): [True: 48.0k, False: 26.7k]
  ------------------
  206|       |			// memmove copies data as if there was an intermediate buffer in between - so it allows for copying
  207|       |			// processes on overlapping src/dest ptrs
  208|  48.0k|			memmove((uint8_t*)m_RawData + atIndex, (uint8_t*)m_RawData + atIndex + numOfBytesToRemove,
  209|  48.0k|			        m_RawDataLen - (atIndex + numOfBytesToRemove));
  210|       |
  211|  74.8k|		m_RawDataLen -= numOfBytesToRemove;
  212|  74.8k|		m_FrameLength = m_RawDataLen;
  213|  74.8k|		return true;
  214|  74.8k|	}

_ZNK4pcpp11S7CommLayer8toStringEv:
   51|  2.48k|	{
   52|  2.48k|		std::ostringstream str;
   53|  2.48k|		str << "S7Comm Layer, ";
   54|       |
   55|  2.48k|		switch (getS7commHeader()->msgType)
   56|  2.48k|		{
   57|    964|		case 0x01:
  ------------------
  |  Branch (57:3): [True: 964, False: 1.51k]
  ------------------
   58|    964|			str << "Job Request";
   59|    964|			break;
   60|      6|		case 0x02:
  ------------------
  |  Branch (60:3): [True: 6, False: 2.47k]
  ------------------
   61|      6|			str << "Ack";
   62|      6|			break;
   63|    752|		case 0x03:
  ------------------
  |  Branch (63:3): [True: 752, False: 1.72k]
  ------------------
   64|    752|			str << "Ack-Data";
   65|    752|			break;
   66|    600|		case 0x07:
  ------------------
  |  Branch (66:3): [True: 600, False: 1.88k]
  ------------------
   67|    600|			str << "Userdata";
   68|    600|			break;
   69|    158|		default:
  ------------------
  |  Branch (69:3): [True: 158, False: 2.32k]
  ------------------
   70|    158|			str << "Unknown message";
   71|  2.48k|		}
   72|       |
   73|  2.48k|		return str.str();
   74|  2.48k|	}
_ZN4pcpp11S7CommLayer11isDataValidEPKhm:
  120|  10.0k|	{
  121|  10.0k|		if (!data || dataSize < sizeof(s7commhdr))
  ------------------
  |  Branch (121:7): [True: 0, False: 10.0k]
  |  Branch (121:16): [True: 331, False: 9.67k]
  ------------------
  122|    331|			return false;
  123|       |
  124|  9.67k|		return data[0] == 0x32;
  125|  10.0k|	}

_ZN4pcpp8SSHLayer16createSSHMessageEPhmPNS_5LayerEPNS_6PacketE:
   19|  19.2k|	{
   20|  19.2k|		SSHIdentificationMessage* sshIdnetMsg = SSHIdentificationMessage::tryParse(data, dataLen, prevLayer, packet);
   21|  19.2k|		if (sshIdnetMsg != nullptr)
  ------------------
  |  Branch (21:7): [True: 4.68k, False: 14.5k]
  ------------------
   22|  4.68k|			return sshIdnetMsg;
   23|       |
   24|  14.5k|		SSHHandshakeMessage* sshHandshakeMessage = SSHHandshakeMessage::tryParse(data, dataLen, prevLayer, packet);
   25|  14.5k|		if (sshHandshakeMessage != nullptr)
  ------------------
  |  Branch (25:7): [True: 9.34k, False: 5.20k]
  ------------------
   26|  9.34k|			return sshHandshakeMessage;
   27|       |
   28|  5.20k|		return new SSHEncryptedMessage(data, dataLen, prevLayer, packet);
   29|  14.5k|	}
_ZN4pcpp8SSHLayer14parseNextLayerEv:
   32|  19.2k|	{
   33|  19.2k|		size_t headerLen = getHeaderLen();
   34|  19.2k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (34:7): [True: 16.5k, False: 2.66k]
  ------------------
   35|  16.5k|			return;
   36|       |
   37|  2.66k|		constructNextLayerFromFactory(SSHLayer::createSSHMessage, m_Data + headerLen, m_DataLen - headerLen);
   38|  2.66k|	}
_ZN4pcpp24SSHIdentificationMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
   46|  19.2k|	{
   47|       |		// Payload must be at least as long as the string "SSH-"
   48|  19.2k|		if (dataLen < 5)
  ------------------
  |  Branch (48:7): [True: 1.83k, False: 17.4k]
  ------------------
   49|  1.83k|			return nullptr;
   50|       |
   51|       |		// Payload must begin with "SSH-" and end with "\n"
   52|  17.4k|		if (data[0] == 0x53 && data[1] == 0x53 && data[2] == 0x48 && data[3] == 0x2d && data[dataLen - 1] == 0x0a)
  ------------------
  |  Branch (52:7): [True: 5.56k, False: 11.8k]
  |  Branch (52:26): [True: 5.48k, False: 88]
  |  Branch (52:45): [True: 5.31k, False: 170]
  |  Branch (52:64): [True: 5.23k, False: 75]
  |  Branch (52:83): [True: 4.68k, False: 550]
  ------------------
   53|  4.68k|			return new SSHIdentificationMessage(data, dataLen, prevLayer, packet);
   54|       |
   55|  12.7k|		return nullptr;
   56|  17.4k|	}
_ZNK4pcpp24SSHIdentificationMessage8toStringEv:
   66|  1.86k|	{
   67|  1.86k|		return std::string(SshLayerBaseString) + ", " + "Identification message";
   68|  1.86k|	}
_ZNK4pcpp19SSHHandshakeMessage14getMessageTypeEv:
   75|  3.39k|	{
   76|  3.39k|		uint8_t messageCode = getMsgBaseHeader()->messageCode;
   77|  3.39k|		if (messageCode == 20 || messageCode == 21 || (messageCode >= 30 && messageCode <= 34))
  ------------------
  |  Branch (77:7): [True: 56, False: 3.33k]
  |  Branch (77:28): [True: 1.49k, False: 1.84k]
  |  Branch (77:50): [True: 1.84k, False: 0]
  |  Branch (77:71): [True: 1.77k, False: 64]
  ------------------
   78|  3.32k|			return static_cast<SSHHandshakeMessage::SSHHandshakeMessageType>(messageCode);
   79|     64|		return SSHHandshakeMessage::SSH_MSG_UNKNOWN;
   80|  3.39k|	}
_ZNK4pcpp19SSHHandshakeMessage17getMessageTypeStrEv:
   83|  3.39k|	{
   84|  3.39k|		switch (getMessageType())
   85|  3.39k|		{
   86|     56|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (86:3): [True: 56, False: 3.33k]
  ------------------
   87|     56|			return "Key Exchange Init";
   88|  1.49k|		case SSHHandshakeMessage::SSH_MSG_NEW_KEYS:
  ------------------
  |  Branch (88:3): [True: 1.49k, False: 1.89k]
  ------------------
   89|  1.49k|			return "New Keys";
   90|      6|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_INIT:
  ------------------
  |  Branch (90:3): [True: 6, False: 3.38k]
  ------------------
   91|      6|			return "Diffie-Hellman Key Exchange Init";
   92|     46|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_REPLY:
  ------------------
  |  Branch (92:3): [True: 46, False: 3.34k]
  ------------------
   93|     46|			return "Diffie-Hellman Key Exchange Reply";
   94|    806|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_INIT:
  ------------------
  |  Branch (94:3): [True: 806, False: 2.58k]
  ------------------
   95|    806|			return "Diffie-Hellman Group Exchange Init";
   96|    758|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REPLY:
  ------------------
  |  Branch (96:3): [True: 758, False: 2.63k]
  ------------------
   97|    758|			return "Diffie-Hellman Group Exchange Reply";
   98|    162|		case SSHHandshakeMessage::SSH_MSG_KEX_DH_GEX_REQUEST:
  ------------------
  |  Branch (98:3): [True: 162, False: 3.23k]
  ------------------
   99|    162|			return "Diffie-Hellman Group Exchange Request";
  100|     64|		default:
  ------------------
  |  Branch (100:3): [True: 64, False: 3.32k]
  ------------------
  101|     64|			return "Unknown";
  102|  3.39k|		}
  103|  3.39k|	}
_ZNK4pcpp19SSHHandshakeMessage12getHeaderLenEv:
  130|  11.0k|	{
  131|       |		return (size_t)be32toh(getMsgBaseHeader()->packetLength) + sizeof(uint32_t);
  132|  11.0k|	}
_ZNK4pcpp19SSHHandshakeMessage8toStringEv:
  135|  3.39k|	{
  136|  3.39k|		return std::string(SshLayerBaseString) + ", " + "Handshake Message: " + getMessageTypeStr();
  137|  3.39k|	}
_ZN4pcpp19SSHHandshakeMessage8tryParseEPhmPNS_5LayerEPNS_6PacketE:
  140|  14.5k|	{
  141|  14.5k|		if (dataLen < sizeof(SSHHandshakeMessage::ssh_message_base))
  ------------------
  |  Branch (141:7): [True: 1.83k, False: 12.7k]
  ------------------
  142|  1.83k|		{
  143|  1.83k|			PCPP_LOG_DEBUG(
  ------------------
  |  |  427|  1.83k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  1.83k|	do                                                                                                                 \
  |  |  |  |  415|  1.83k|	{                                                                                                                  \
  |  |  |  |  416|  1.83k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  1.83k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  1.83k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 1.83k]
  |  |  |  |  ------------------
  |  |  |  |  418|  1.83k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  1.83k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 1.83k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  1.83k|			    "Data length is smaller than the minimum size of an SSH handshake message. It's probably not an SSH handshake message");
  145|  1.83k|			return nullptr;
  146|  1.83k|		}
  147|       |
  148|  12.7k|		SSHHandshakeMessage::ssh_message_base* msgBase = (SSHHandshakeMessage::ssh_message_base*)data;
  149|       |
  150|  12.7k|		uint32_t msgLength = be32toh(msgBase->packetLength);
  151|  12.7k|		if (msgLength + sizeof(uint32_t) > dataLen)
  ------------------
  |  Branch (151:7): [True: 2.81k, False: 9.90k]
  ------------------
  152|  2.81k|		{
  153|  2.81k|			PCPP_LOG_DEBUG("Message size is larger than layer size. It's probably not an SSH handshake message");
  ------------------
  |  |  427|  2.81k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  2.81k|	do                                                                                                                 \
  |  |  |  |  415|  2.81k|	{                                                                                                                  \
  |  |  |  |  416|  2.81k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  2.81k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  2.81k|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 2.81k]
  |  |  |  |  ------------------
  |  |  |  |  418|  2.81k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  2.81k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 2.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  154|  2.81k|			return nullptr;
  155|  2.81k|		}
  156|       |
  157|  9.90k|		if (msgBase->paddingLength > msgLength)
  ------------------
  |  Branch (157:7): [True: 121, False: 9.78k]
  ------------------
  158|    121|		{
  159|    121|			PCPP_LOG_DEBUG("Message padding is larger than message size. It's probably not an SSH handshake message");
  ------------------
  |  |  427|    121|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    121|	do                                                                                                                 \
  |  |  |  |  415|    121|	{                                                                                                                  \
  |  |  |  |  416|    121|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    121|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    121|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 121]
  |  |  |  |  ------------------
  |  |  |  |  418|    121|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    121|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 121]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|    121|			return nullptr;
  161|    121|		}
  162|       |
  163|  9.78k|		if (msgBase->messageCode != 20 && msgBase->messageCode != 21 &&
  ------------------
  |  Branch (163:7): [True: 9.64k, False: 140]
  |  Branch (163:37): [True: 5.51k, False: 4.13k]
  ------------------
  164|  5.51k|		    (msgBase->messageCode < 30 || msgBase->messageCode > 49))
  ------------------
  |  Branch (164:8): [True: 323, False: 5.19k]
  |  Branch (164:37): [True: 114, False: 5.07k]
  ------------------
  165|    437|		{
  166|    437|			PCPP_LOG_DEBUG("Unknown message type " << (int)msgBase->messageCode
  ------------------
  |  |  427|    437|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|    437|	do                                                                                                                 \
  |  |  |  |  415|    437|	{                                                                                                                  \
  |  |  |  |  416|    437|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    437|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    437|#define LOG_MODULE PacketLogModuleSSHLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 437]
  |  |  |  |  ------------------
  |  |  |  |  418|    437|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|    437|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 437]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|    437|			                                       << ". It's probably not an SSH handshake message");
  168|    437|			return nullptr;
  169|    437|		}
  170|       |
  171|  9.34k|		switch (msgBase->messageCode)
  172|  9.34k|		{
  173|    140|		case SSHHandshakeMessage::SSH_MSG_KEX_INIT:
  ------------------
  |  Branch (173:3): [True: 140, False: 9.20k]
  ------------------
  174|    140|			return new SSHKeyExchangeInitMessage(data, dataLen, prevLayer, packet);
  175|  9.20k|		default:
  ------------------
  |  Branch (175:3): [True: 9.20k, False: 140]
  ------------------
  176|  9.20k|			return new SSHHandshakeMessage(data, dataLen, prevLayer, packet);
  177|  9.34k|		}
  178|  9.34k|	}
_ZN4pcpp25SSHKeyExchangeInitMessageC2EPhmPNS_5LayerEPNS_6PacketE:
  186|    140|	    : SSHHandshakeMessage(data, dataLen, prevLayer, packet), m_OffsetsInitialized(false)
  187|    140|	{
  188|    140|		memset(m_FieldOffsets, 0, 11 * sizeof(size_t));
  189|    140|	}
_ZNK4pcpp19SSHEncryptedMessage8toStringEv:
  264|  1.83k|	{
  265|  1.83k|		return std::string(SshLayerBaseString) + ", " + "Encrypted Message";
  266|  1.83k|	}

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

_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|   116k|	{
 1057|   116k|		auto pos = CipherSuiteIdToObjectMap.find(id);
 1058|   116k|		if (pos == CipherSuiteIdToObjectMap.end())
  ------------------
  |  Branch (1058:7): [True: 41.1k, False: 75.2k]
  ------------------
 1059|  41.1k|			return nullptr;
 1060|  75.2k|		else
 1061|  75.2k|			return pos->second;
 1062|   116k|	}
_ZN4pcpp14SSLCipherSuite20getCipherSuiteByNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1065|  8.53k|	{
 1066|  8.53k|		uint32_t nameHash = hashString(std::move(name));
 1067|  8.53k|		auto pos = CipherSuiteStringToObjectMap.find(nameHash);
 1068|  8.53k|		if (pos == CipherSuiteStringToObjectMap.end())
  ------------------
  |  Branch (1068:7): [True: 0, False: 8.53k]
  ------------------
 1069|      0|			return nullptr;
 1070|  8.53k|		else
 1071|  8.53k|			return pos->second;
 1072|  8.53k|	}
_ZN4pcpp12SSLExtensionC2EPhm:
 1081|   326k|	SSLExtension::SSLExtension(uint8_t* data, size_t dataLen) : m_RawData(data), m_RawDataLen(dataLen)
 1082|   326k|	{
 1083|   326k|		if (data == nullptr || dataLen < 2 * sizeof(uint16_t))
  ------------------
  |  Branch (1083:7): [True: 0, False: 326k]
  |  Branch (1083:26): [True: 0, False: 326k]
  ------------------
 1084|      0|		{
 1085|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension header");
 1086|      0|		}
 1087|       |
 1088|   326k|		uint16_t extDataLen = getLength();
 1089|   326k|		if (dataLen < (2 * sizeof(uint16_t) + extDataLen))
  ------------------
  |  Branch (1089:7): [True: 0, False: 326k]
  ------------------
 1090|      0|		{
 1091|      0|			throw std::invalid_argument("Insufficient data buffer for SSL extension data");
 1092|      0|		}
 1093|   326k|	}
_ZNK4pcpp12SSLExtension7getTypeEv:
 1096|  19.8k|	{
 1097|  19.8k|		uint16_t typeAsInt = getTypeAsInt();
 1098|  19.8k|		if (typeAsInt <= 24 || typeAsInt == 35 || typeAsInt == 65281)
  ------------------
  |  Branch (1098:7): [True: 10.6k, False: 9.23k]
  |  Branch (1098:26): [True: 754, False: 8.47k]
  |  Branch (1098:45): [True: 2.10k, False: 6.37k]
  ------------------
 1099|  13.4k|			return (SSLExtensionType)typeAsInt;
 1100|       |
 1101|  6.37k|		return SSL_EXT_Unknown;
 1102|  19.8k|	}
_ZNK4pcpp12SSLExtension12getTypeAsIntEv:
 1105|  90.2k|	{
 1106|       |		return be16toh(getExtensionStruct()->extensionType);
 1107|  90.2k|	}
_ZNK4pcpp12SSLExtension9getLengthEv:
 1110|   684k|	{
 1111|   684k|		return getExtensionStruct()->getDataLength();
 1112|   684k|	}
_ZNK4pcpp12SSLExtension14getTotalLengthEv:
 1115|   326k|	{
 1116|   326k|		return getLength() + 2 * sizeof(uint16_t);
 1117|   326k|	}
_ZNK4pcpp12SSLExtension7getDataEv:
 1120|  19.2k|	{
 1121|  19.2k|		if (getLength() > 0)
  ------------------
  |  Branch (1121:7): [True: 18.9k, False: 287]
  ------------------
 1122|  18.9k|		{
 1123|  18.9k|			return getExtensionStruct()->extensionData;
 1124|  18.9k|		}
 1125|       |
 1126|    287|		return nullptr;
 1127|  19.2k|	}
_ZNK4pcpp12SSLExtension18SSLExtensionStruct13getDataLengthEv:
 1130|  1.03M|	{
 1131|       |		return be16toh(extensionDataLength);
 1132|  1.03M|	}
_ZNK4pcpp32SSLServerNameIndicationExtension11getHostNameEv:
 1139|  4.38k|	{
 1140|  4.38k|		auto* extensionDataPtr = getData();
 1141|       |		// server name list length + name type + host name length
 1142|  4.38k|		constexpr size_t minExtensionDataLen = sizeof(uint16_t) + sizeof(uint8_t) + sizeof(uint16_t);
 1143|  4.38k|		auto length = getLength();
 1144|  4.38k|		if (extensionDataPtr == nullptr || length < minExtensionDataLen)
  ------------------
  |  Branch (1144:7): [True: 287, False: 4.10k]
  |  Branch (1144:38): [True: 2, False: 4.09k]
  ------------------
 1145|    289|		{
 1146|    289|			return "";
 1147|    289|		}
 1148|       |
 1149|  4.09k|		uint8_t const* hostNameLengthPos = extensionDataPtr + sizeof(uint16_t) + sizeof(uint8_t);
 1150|  4.09k|		uint16_t hostNameLength = be16toh(*reinterpret_cast<uint16_t const*>(hostNameLengthPos));
 1151|       |
 1152|  4.09k|		uint8_t const* hostNameDataIt = hostNameLengthPos + sizeof(uint16_t);
 1153|  4.09k|		uint8_t const* hostNameDataEndIt = hostNameDataIt + hostNameLength;
 1154|  4.09k|		uint8_t const* extensionDataEndIt = extensionDataPtr + length;
 1155|       |
 1156|  4.09k|		if (hostNameDataEndIt > extensionDataEndIt)
  ------------------
  |  Branch (1156:7): [True: 765, False: 3.33k]
  ------------------
 1157|    765|		{
 1158|    765|			PCPP_LOG_WARN("Host name length exceeds extension data length. Possible data corruption. Truncating.");
  ------------------
  |  |  433|    765|#	define PCPP_LOG_WARN(message) PCPP_LOG(pcpp::LogLevel::Warn, message)
  |  |  ------------------
  |  |  |  |  414|    765|	do                                                                                                                 \
  |  |  |  |  415|    765|	{                                                                                                                  \
  |  |  |  |  416|    765|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|    765|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    765|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 765, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|    765|		{                                                                                                              \
  |  |  |  |  419|    765|			auto ctx =                                                                                                 \
  |  |  |  |  420|    765|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|    765|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|    765|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|    765|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|    765|		}                                                                                                              \
  |  |  |  |  424|    765|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 765]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1159|    765|			hostNameDataEndIt = extensionDataEndIt;
 1160|    765|		}
 1161|       |
 1162|  4.09k|		return std::string(hostNameDataIt, hostNameDataEndIt);
 1163|  4.38k|	}
_ZNK4pcpp29SSLSupportedVersionsExtension20getSupportedVersionsEv:
 1170|  1.86k|	{
 1171|  1.86k|		std::vector<SSLVersion> result;
 1172|  1.86k|		uint16_t extensionLength = getLength();
 1173|  1.86k|		if (extensionLength == 0)
  ------------------
  |  Branch (1173:7): [True: 43, False: 1.82k]
  ------------------
 1174|     43|			return result;  // bad extension data
 1175|       |
 1176|  1.82k|		if (extensionLength == 2)  // server hello message
  ------------------
  |  Branch (1176:7): [True: 758, False: 1.06k]
  ------------------
 1177|    758|		{
 1178|    758|			result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(getData()))));
 1179|    758|		}
 1180|  1.06k|		else  // client-hello message
 1181|  1.06k|		{
 1182|  1.06k|			uint8_t listLength = *getData();
 1183|  1.06k|			if (listLength != static_cast<uint8_t>(extensionLength - 1) || listLength % 2 != 0)
  ------------------
  |  Branch (1183:8): [True: 26, False: 1.04k]
  |  Branch (1183:67): [True: 30, False: 1.01k]
  ------------------
 1184|     56|				return result;  // bad extension data
 1185|       |
 1186|  1.01k|			uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1187|  4.11k|			for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1187:20): [True: 3.10k, False: 1.01k]
  ------------------
 1188|  3.10k|			{
 1189|  3.10k|				result.push_back(SSLVersion(be16toh(*reinterpret_cast<uint16_t*>(dataPtr))));
 1190|  3.10k|				dataPtr += sizeof(uint16_t);
 1191|  3.10k|			}
 1192|  1.01k|		}
 1193|       |
 1194|  1.77k|		return result;
 1195|  1.82k|	}
_ZNK4pcpp27TLSSupportedGroupsExtension18getSupportedGroupsEv:
 1202|  2.73k|	{
 1203|  2.73k|		std::vector<uint16_t> result;
 1204|       |
 1205|  2.73k|		uint16_t extensionLength = getLength();
 1206|  2.73k|		if (extensionLength < sizeof(uint16_t))
  ------------------
  |  Branch (1206:7): [True: 37, False: 2.69k]
  ------------------
 1207|     37|			return result;  // bad extension data
 1208|       |
 1209|  2.69k|		uint16_t listLength = be16toh(*(uint16_t*)getData());
 1210|  2.69k|		if (listLength != (extensionLength - sizeof(uint16_t)) || listLength % 2 != 0)
  ------------------
  |  Branch (1210:7): [True: 80, False: 2.61k]
  |  Branch (1210:61): [True: 36, False: 2.57k]
  ------------------
 1211|    116|			return result;  // bad extension data
 1212|       |
 1213|  2.57k|		uint8_t* dataPtr = getData() + sizeof(uint16_t);
 1214|  16.8k|		for (int i = 0; i < listLength / 2; i++)
  ------------------
  |  Branch (1214:19): [True: 14.2k, False: 2.57k]
  ------------------
 1215|  14.2k|		{
 1216|  14.2k|			result.push_back(be16toh(*reinterpret_cast<uint16_t*>(dataPtr)));
 1217|  14.2k|			dataPtr += sizeof(uint16_t);
 1218|  14.2k|		}
 1219|       |
 1220|  2.57k|		return result;
 1221|  2.69k|	}
_ZNK4pcpp25TLSECPointFormatExtension20getECPointFormatListEv:
 1228|  4.25k|	{
 1229|  4.25k|		std::vector<uint8_t> result;
 1230|       |
 1231|  4.25k|		uint16_t extensionLength = getLength();
 1232|       |
 1233|  4.25k|		if (extensionLength < 1)
  ------------------
  |  Branch (1233:7): [True: 27, False: 4.22k]
  ------------------
 1234|     27|			return result;
 1235|       |
 1236|  4.22k|		uint8_t listLength = *getData();
 1237|       |
 1238|  4.22k|		if (extensionLength != static_cast<uint16_t>(listLength) + 1)
  ------------------
  |  Branch (1238:7): [True: 1.67k, False: 2.55k]
  ------------------
 1239|  1.67k|			return result;  // bad extension data
 1240|       |
 1241|  2.55k|		uint8_t* dataPtr = getData() + sizeof(uint8_t);
 1242|  6.43k|		for (int i = 0; i < listLength; i++)
  ------------------
  |  Branch (1242:19): [True: 3.88k, False: 2.55k]
  ------------------
 1243|  3.88k|		{
 1244|  3.88k|			result.push_back(*dataPtr);
 1245|  3.88k|			dataPtr += sizeof(uint8_t);
 1246|  3.88k|		}
 1247|       |
 1248|  2.55k|		return result;
 1249|  4.22k|	}
_ZN4pcpp19SSLHandshakeMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1287|   218k|	{
 1288|   218k|		m_Data = data;
 1289|   218k|		m_DataLen = dataLen;
 1290|   218k|		m_Container = container;
 1291|   218k|	}
_ZN4pcpp19SSLHandshakeMessage22createHandshakeMessageEPhmPNS_17SSLHandshakeLayerE:
 1295|   357k|	{
 1296|   357k|		if (dataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1296:7): [True: 139k, False: 218k]
  ------------------
 1297|   139k|			return nullptr;
 1298|       |
 1299|   218k|		ssl_tls_handshake_layer* hsMsgHeader = reinterpret_cast<ssl_tls_handshake_layer*>(data);
 1300|       |
 1301|   218k|		if (dataLen >= 16 && (be64toh(*(uint64_t*)data) <= 0xFFFFFF || hsMsgHeader->length1 >= 1))
  ------------------
  |  Branch (1301:7): [True: 180k, False: 37.9k]
  |  Branch (1301:25): [True: 12.6k, False: 168k]
  |  Branch (1301:66): [True: 33.6k, False: 134k]
  ------------------
 1302|  46.3k|		{
 1303|       |			// possibly Encrypted Handshake Message
 1304|       |			// used heuristic:
 1305|       |			// - handshake layer of more than 16 byte
 1306|       |			// - first 5 bytes of the handshake message are zeroes
 1307|       |			// - or wrong message length is over 64K
 1308|       |			// - or message type makes so sense (handled through the switch statement)
 1309|  46.3k|			return new SSLUnknownMessage(data, dataLen, container);
 1310|  46.3k|		}
 1311|       |
 1312|   172k|		switch (hsMsgHeader->handshakeType)
 1313|   172k|		{
 1314|  48.3k|		case SSL_CLIENT_HELLO:
  ------------------
  |  Branch (1314:3): [True: 48.3k, False: 124k]
  ------------------
 1315|  48.3k|			return new SSLClientHelloMessage(data, dataLen, container);
 1316|  36.7k|		case SSL_SERVER_HELLO:
  ------------------
  |  Branch (1316:3): [True: 36.7k, False: 135k]
  ------------------
 1317|  36.7k|			return new SSLServerHelloMessage(data, dataLen, container);
 1318|  29.9k|		case SSL_HELLO_REQUEST:
  ------------------
  |  Branch (1318:3): [True: 29.9k, False: 142k]
  ------------------
 1319|  29.9k|			return new SSLHelloRequestMessage(data, dataLen, container);
 1320|  13.4k|		case SSL_CERTIFICATE:
  ------------------
  |  Branch (1320:3): [True: 13.4k, False: 158k]
  ------------------
 1321|  13.4k|			return new SSLCertificateMessage(data, dataLen, container);
 1322|  8.04k|		case SSL_SERVER_KEY_EXCHANGE:
  ------------------
  |  Branch (1322:3): [True: 8.04k, False: 164k]
  ------------------
 1323|  8.04k|			return new SSLServerKeyExchangeMessage(data, dataLen, container);
 1324|  17.8k|		case SSL_CERTIFICATE_REQUEST:
  ------------------
  |  Branch (1324:3): [True: 17.8k, False: 154k]
  ------------------
 1325|  17.8k|			return new SSLCertificateRequestMessage(data, dataLen, container);
 1326|  1.29k|		case SSL_CERTIFICATE_VERIFY:
  ------------------
  |  Branch (1326:3): [True: 1.29k, False: 171k]
  ------------------
 1327|  1.29k|			return new SSLCertificateVerifyMessage(data, dataLen, container);
 1328|  3.01k|		case SSL_CLIENT_KEY_EXCHANGE:
  ------------------
  |  Branch (1328:3): [True: 3.01k, False: 169k]
  ------------------
 1329|  3.01k|			return new SSLClientKeyExchangeMessage(data, dataLen, container);
 1330|  3.06k|		case SSL_FINISHED:
  ------------------
  |  Branch (1330:3): [True: 3.06k, False: 169k]
  ------------------
 1331|  3.06k|			return new SSLFinishedMessage(data, dataLen, container);
 1332|  1.67k|		case SSL_SERVER_DONE:
  ------------------
  |  Branch (1332:3): [True: 1.67k, False: 170k]
  ------------------
 1333|  1.67k|			return new SSLServerHelloDoneMessage(data, dataLen, container);
 1334|  2.65k|		case SSL_NEW_SESSION_TICKET:
  ------------------
  |  Branch (1334:3): [True: 2.65k, False: 169k]
  ------------------
 1335|  2.65k|			return new SSLNewSessionTicketMessage(data, dataLen, container);
 1336|  6.29k|		default:
  ------------------
  |  Branch (1336:3): [True: 6.29k, False: 166k]
  ------------------
 1337|  6.29k|			return new SSLUnknownMessage(data, dataLen, container);
 1338|   172k|		}
 1339|   172k|	}
_ZNK4pcpp19SSLHandshakeMessage16getHandshakeTypeEv:
 1342|  8.53k|	{
 1343|  8.53k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1344|  8.53k|		return (SSLHandshakeType)handshakeLayer->handshakeType;
 1345|  8.53k|	}
_ZNK4pcpp19SSLHandshakeMessage16getMessageLengthEv:
 1348|   407k|	{
 1349|   407k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1350|       |		// TODO: add handshakeLayer->length1 to the calculation
 1351|   407k|		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1352|   407k|		if (len > m_DataLen)
  ------------------
  |  Branch (1352:7): [True: 87.4k, False: 320k]
  ------------------
 1353|  87.4k|			return m_DataLen;
 1354|       |
 1355|   320k|		return len;
 1356|   407k|	}
_ZNK4pcpp19SSLHandshakeMessage17isMessageCompleteEv:
 1359|  21.3k|	{
 1360|  21.3k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer))
  ------------------
  |  Branch (1360:7): [True: 0, False: 21.3k]
  ------------------
 1361|      0|			return false;
 1362|       |
 1363|  21.3k|		ssl_tls_handshake_layer* handshakeLayer = reinterpret_cast<ssl_tls_handshake_layer*>(m_Data);
 1364|       |		size_t len = sizeof(ssl_tls_handshake_layer) + be16toh(handshakeLayer->length2);
 1365|  21.3k|		return len <= m_DataLen;
 1366|  21.3k|	}
_ZN4pcpp21SSLClientHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1373|  48.3k|	    : SSLHandshakeMessage(data, dataLen, container)
 1374|  48.3k|	{
 1375|  48.3k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1376|  48.3k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1377|  48.3k|		                               2 * sizeof(uint8_t);
 1378|  48.3k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1378:7): [True: 20.6k, False: 27.6k]
  ------------------
 1379|  20.6k|			return;
 1380|       |
 1381|  27.6k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1382|  27.6k|		uint16_t extensionLength = getExtensionsLength();
 1383|  27.6k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1384|       |
 1385|  27.6k|		size_t messageLen = getMessageLength();
 1386|       |
 1387|       |		// Iterators for the entire extension data buffer containing the extensions blocks.
 1388|  27.6k|		uint8_t* extensionIt = extensionPos;
 1389|  27.6k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1390|       |
 1391|       |		// If the message length is smaller that the extension data buffer, we might have malformed data.
 1392|       |		// In this case, the extension data buffer is truncated to the message length, to avoid out-of-bounds access.
 1393|  27.6k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1394|  27.6k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1394:7): [True: 4.99k, False: 22.6k]
  ------------------
 1395|  4.99k|		{
 1396|  4.99k|			extensionEndIt = endOfMessageIt;
 1397|  4.99k|		}
 1398|       |
 1399|  27.6k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1400|   313k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1400:10): [True: 302k, False: 10.8k]
  ------------------
 1401|   302k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1401:10): [True: 300k, False: 2.41k]
  ------------------
 1402|   300k|		{
 1403|   300k|			std::unique_ptr<SSLExtension> newExt;
 1404|       |
 1405|   300k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1406|   300k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1407|       |
 1408|   300k|			switch (sslExtType)
 1409|   300k|			{
 1410|  82.9k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1410:4): [True: 82.9k, False: 217k]
  ------------------
 1411|  82.9k|			{
 1412|  82.9k|				newExt =
 1413|  82.9k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1414|  82.9k|				break;
 1415|      0|			}
 1416|  5.56k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1416:4): [True: 5.56k, False: 294k]
  ------------------
 1417|  5.56k|			{
 1418|  5.56k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1419|  5.56k|				break;
 1420|      0|			}
 1421|  15.2k|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1421:4): [True: 15.2k, False: 284k]
  ------------------
 1422|  15.2k|			{
 1423|  15.2k|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1424|  15.2k|				break;
 1425|      0|			}
 1426|  25.8k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1426:4): [True: 25.8k, False: 274k]
  ------------------
 1427|  25.8k|			{
 1428|  25.8k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1429|  25.8k|				break;
 1430|      0|			}
 1431|   170k|			default:
  ------------------
  |  Branch (1431:4): [True: 170k, False: 129k]
  ------------------
 1432|   170k|			{
 1433|   170k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1434|   170k|			}
 1435|   300k|			}
 1436|       |
 1437|   300k|			if (newExt == nullptr)
  ------------------
  |  Branch (1437:8): [True: 14.3k, False: 285k]
  ------------------
 1438|  14.3k|			{
 1439|  14.3k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  427|  14.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  14.3k|	do                                                                                                                 \
  |  |  |  |  415|  14.3k|	{                                                                                                                  \
  |  |  |  |  416|  14.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  14.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  14.3k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 14.3k]
  |  |  |  |  ------------------
  |  |  |  |  418|  14.3k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  14.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 14.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1440|  14.3k|				                                                        << " skipping remaining extensions.");
 1441|  14.3k|				break;
 1442|  14.3k|			}
 1443|       |
 1444|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1445|       |			// and means that this extension (and packet) are malformed
 1446|   285k|			size_t newExtTotalLen = newExt->getTotalLength();
 1447|   285k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1447:8): [True: 0, False: 285k]
  ------------------
 1448|      0|			{
 1449|      0|				break;
 1450|      0|			}
 1451|       |
 1452|   285k|			m_ExtensionList.pushBack(std::move(newExt));
 1453|   285k|			std::advance(extensionIt, newExtTotalLen);
 1454|   285k|		}
 1455|  27.6k|	}
_ZNK4pcpp21SSLClientHelloMessage19getHandshakeVersionEv:
 1458|  17.0k|	{
 1459|  17.0k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1459:7): [True: 20, False: 17.0k]
  ------------------
 1460|     20|			return SSLVersion(0);
 1461|       |
 1462|  17.0k|		uint16_t handshakeVersion = be16toh(getClientHelloHeader()->handshakeVersion);
 1463|  17.0k|		return SSLVersion(handshakeVersion);
 1464|  17.0k|	}
_ZNK4pcpp21SSLClientHelloMessage18getSessionIDLengthEv:
 1467|  27.8M|	{
 1468|  27.8M|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1468:7): [True: 13.0k, False: 27.8M]
  ------------------
 1469|  13.0k|			return 0;
 1470|       |
 1471|  27.8M|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1472|  27.8M|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1472:7): [True: 5.52k, False: 27.8M]
  ------------------
 1473|  5.52k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1474|       |
 1475|  27.8M|		return val;
 1476|  27.8M|	}
_ZNK4pcpp21SSLClientHelloMessage12getSessionIDEv:
 1479|  8.53k|	{
 1480|  8.53k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1480:7): [True: 2.69k, False: 5.83k]
  ------------------
 1481|  2.69k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1482|  5.83k|		else
 1483|  5.83k|			return nullptr;
 1484|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage19getCipherSuiteCountEv:
 1487|  15.9M|	{
 1488|  15.9M|		size_t cipherSuiteOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1489|  15.9M|		if (cipherSuiteOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1489:7): [True: 22.1k, False: 15.8M]
  ------------------
 1490|  22.1k|			return 0;
 1491|       |
 1492|  15.8M|		uint16_t cipherSuiteLen = *(uint16_t*)(m_Data + cipherSuiteOffset);
 1493|       |		return be16toh(cipherSuiteLen) / 2;
 1494|  15.9M|	}
_ZNK4pcpp21SSLClientHelloMessage14getCipherSuiteEi:
 1497|  3.95M|	{
 1498|  3.95M|		bool isValid;
 1499|  3.95M|		uint16_t id = getCipherSuiteID(index, isValid);
 1500|  3.95M|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1500:11): [True: 112k, False: 3.83M]
  ------------------
 1501|  3.95M|	}
_ZNK4pcpp21SSLClientHelloMessage16getCipherSuiteIDEiRb:
 1504|  11.8M|	{
 1505|  11.8M|		if (index < 0 || index >= getCipherSuiteCount())
  ------------------
  |  Branch (1505:7): [True: 0, False: 11.8M]
  |  Branch (1505:20): [True: 0, False: 11.8M]
  ------------------
 1506|      0|		{
 1507|      0|			isValid = false;
 1508|      0|			return 0;
 1509|      0|		}
 1510|       |
 1511|  11.8M|		size_t cipherSuiteStartOffset =
 1512|  11.8M|		    sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1513|  11.8M|		if (cipherSuiteStartOffset + sizeof(uint16_t) * (index + 1) > m_DataLen)
  ------------------
  |  Branch (1513:7): [True: 11.5M, False: 338k]
  ------------------
 1514|  11.5M|		{
 1515|  11.5M|			isValid = false;
 1516|  11.5M|			return 0;
 1517|  11.5M|		}
 1518|       |
 1519|   338k|		isValid = true;
 1520|   338k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1521|       |		return be16toh(*(cipherSuiteStartPos + index));
 1522|  11.8M|	}
_ZNK4pcpp21SSLClientHelloMessage26getCompressionMethodsValueEv:
 1525|  8.53k|	{
 1526|  8.53k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1527|  8.53k|		                sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() + sizeof(uint8_t);
 1528|  8.53k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1528:7): [True: 3.32k, False: 5.20k]
  ------------------
 1529|  3.32k|			return 0xff;
 1530|       |
 1531|  5.20k|		uint8_t* pos = m_Data + offset;
 1532|  5.20k|		return *pos;
 1533|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage17getExtensionCountEv:
 1536|  8.53k|	{
 1537|  8.53k|		return m_ExtensionList.size();
 1538|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage19getExtensionsLengthEv:
 1541|  27.6k|	{
 1542|  27.6k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1543|  27.6k|		                               sizeof(uint16_t) + sizeof(uint16_t) * getCipherSuiteCount() +
 1544|  27.6k|		                               2 * sizeof(uint8_t);
 1545|  27.6k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1545:7): [True: 0, False: 27.6k]
  ------------------
 1546|      0|			return 0;
 1547|       |
 1548|  27.6k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1549|       |		return be16toh(*reinterpret_cast<uint16_t*>(extensionLengthPos));
 1550|  27.6k|	}
_ZNK4pcpp21SSLClientHelloMessage12getExtensionEi:
 1553|  53.4k|	{
 1554|  53.4k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1555|  53.4k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeEt:
 1558|  8.53k|	{
 1559|  8.53k|		size_t vecSize = m_ExtensionList.size();
 1560|  14.6k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1560:22): [True: 10.5k, False: 4.14k]
  ------------------
 1561|  10.5k|		{
 1562|  10.5k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1563|  10.5k|			if (curElem->getTypeAsInt() == type)
  ------------------
  |  Branch (1563:8): [True: 4.38k, False: 6.15k]
  ------------------
 1564|  4.38k|				return curElem;
 1565|  10.5k|		}
 1566|       |
 1567|  4.14k|		return nullptr;
 1568|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1571|  8.53k|	{
 1572|  8.53k|		size_t vecSize = m_ExtensionList.size();
 1573|  14.6k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1573:22): [True: 10.5k, False: 4.14k]
  ------------------
 1574|  10.5k|		{
 1575|  10.5k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1576|  10.5k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1576:8): [True: 4.38k, False: 6.15k]
  ------------------
 1577|  4.38k|				return curElem;
 1578|  10.5k|		}
 1579|       |
 1580|  4.14k|		return nullptr;
 1581|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage22generateTLSFingerprintEv:
 1584|  8.53k|	{
 1585|  8.53k|		SSLClientHelloMessage::ClientHelloTLSFingerprint result;
 1586|       |
 1587|       |		// extract version
 1588|  8.53k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1589|       |
 1590|       |		// extract cipher suites
 1591|  8.53k|		int cipherSuiteCount = getCipherSuiteCount();
 1592|  3.96M|		for (int i = 0; i < cipherSuiteCount; i++)
  ------------------
  |  Branch (1592:19): [True: 3.95M, False: 8.53k]
  ------------------
 1593|  3.95M|		{
 1594|  3.95M|			bool isValid = false;
 1595|  3.95M|			uint16_t cipherSuiteID = getCipherSuiteID(i, isValid);
 1596|  3.95M|			if (isValid && GreaseSet.find(cipherSuiteID) == GreaseSet.end())
  ------------------
  |  Branch (1596:8): [True: 112k, False: 3.83M]
  |  Branch (1596:8): [True: 112k, False: 3.84M]
  |  Branch (1596:19): [True: 112k, False: 595]
  ------------------
 1597|   112k|				result.cipherSuites.push_back(cipherSuiteID);
 1598|  3.95M|		}
 1599|       |
 1600|       |		// extract extensions
 1601|  8.53k|		int extensionCount = getExtensionCount();
 1602|  61.9k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1602:19): [True: 53.4k, False: 8.53k]
  ------------------
 1603|  53.4k|		{
 1604|  53.4k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1605|  53.4k|			if (GreaseSet.find(extensionType) != GreaseSet.end())
  ------------------
  |  Branch (1605:8): [True: 861, False: 52.5k]
  ------------------
 1606|    861|				continue;
 1607|       |
 1608|  52.5k|			result.extensions.push_back(extensionType);
 1609|  52.5k|		}
 1610|       |
 1611|       |		// extract supported groups
 1612|  8.53k|		TLSSupportedGroupsExtension* supportedGroupsExt = getExtensionOfType<TLSSupportedGroupsExtension>();
 1613|  8.53k|		if (supportedGroupsExt != nullptr)
  ------------------
  |  Branch (1613:7): [True: 2.73k, False: 5.80k]
  ------------------
 1614|  2.73k|		{
 1615|  2.73k|			std::vector<uint16_t> supportedGroups = supportedGroupsExt->getSupportedGroups();
 1616|  2.73k|			for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1616:26): [True: 14.2k, False: 2.73k]
  ------------------
 1617|  14.2k|				if (GreaseSet.find(iter) == GreaseSet.end())
  ------------------
  |  Branch (1617:9): [True: 13.7k, False: 455]
  ------------------
 1618|  13.7k|					result.supportedGroups.push_back(iter);
 1619|  2.73k|		}
 1620|       |
 1621|       |		// extract EC point formats
 1622|  8.53k|		TLSECPointFormatExtension* ecPointFormatExt = getExtensionOfType<TLSECPointFormatExtension>();
 1623|  8.53k|		if (ecPointFormatExt != nullptr)
  ------------------
  |  Branch (1623:7): [True: 4.25k, False: 4.27k]
  ------------------
 1624|  4.25k|		{
 1625|  4.25k|			result.ecPointFormats = ecPointFormatExt->getECPointFormatList();
 1626|  4.25k|		}
 1627|       |
 1628|  8.53k|		return result;
 1629|  8.53k|	}
_ZNK4pcpp21SSLClientHelloMessage8toStringEv:
 1632|  17.3k|	{
 1633|  17.3k|		return "Client Hello message";
 1634|  17.3k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint8toStringEv:
 1641|  8.53k|	{
 1642|  8.53k|		std::stringstream tlsFingerprint;
 1643|       |
 1644|       |		// add version
 1645|  8.53k|		tlsFingerprint << tlsVersion << ",";
 1646|       |
 1647|       |		// add cipher suites
 1648|  8.53k|		bool firstCipher = true;
 1649|  8.53k|		for (const auto& iter : cipherSuites)
  ------------------
  |  Branch (1649:25): [True: 112k, False: 8.53k]
  ------------------
 1650|   112k|		{
 1651|   112k|			tlsFingerprint << (firstCipher ? "" : "-") << iter;
  ------------------
  |  Branch (1651:23): [True: 5.42k, False: 106k]
  ------------------
 1652|   112k|			firstCipher = false;
 1653|   112k|		}
 1654|  8.53k|		tlsFingerprint << ",";
 1655|       |
 1656|       |		// add extensions
 1657|  8.53k|		bool firstExtension = true;
 1658|  8.53k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1658:25): [True: 52.5k, False: 8.53k]
  ------------------
 1659|  52.5k|		{
 1660|  52.5k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1660:23): [True: 4.94k, False: 47.6k]
  ------------------
 1661|  52.5k|			firstExtension = false;
 1662|  52.5k|		}
 1663|  8.53k|		tlsFingerprint << ",";
 1664|       |
 1665|       |		// add supported groups
 1666|  8.53k|		bool firstGroup = true;
 1667|  8.53k|		for (const auto& iter : supportedGroups)
  ------------------
  |  Branch (1667:25): [True: 13.7k, False: 8.53k]
  ------------------
 1668|  13.7k|		{
 1669|  13.7k|			tlsFingerprint << (firstGroup ? "" : "-") << iter;
  ------------------
  |  Branch (1669:23): [True: 2.57k, False: 11.1k]
  ------------------
 1670|  13.7k|			firstGroup = false;
 1671|  13.7k|		}
 1672|  8.53k|		tlsFingerprint << ",";
 1673|       |
 1674|       |		// add EC point formats
 1675|  8.53k|		bool firstPointFormat = true;
 1676|  8.53k|		for (auto iter : ecPointFormats)
  ------------------
  |  Branch (1676:18): [True: 3.88k, False: 8.53k]
  ------------------
 1677|  3.88k|		{
 1678|  3.88k|			tlsFingerprint << (firstPointFormat ? "" : "-") << (int)iter;
  ------------------
  |  Branch (1678:23): [True: 2.53k, False: 1.34k]
  ------------------
 1679|  3.88k|			firstPointFormat = false;
 1680|  3.88k|		}
 1681|       |
 1682|  8.53k|		return tlsFingerprint.str();
 1683|  8.53k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint5toMD5Ev:
 1686|  8.53k|	{
 1687|  8.53k|		return toStringAndMD5().second;
 1688|  8.53k|	}
_ZN4pcpp21SSLClientHelloMessage25ClientHelloTLSFingerprint14toStringAndMD5Ev:
 1691|  8.53k|	{
 1692|  8.53k|		std::string str = toString();
 1693|  8.53k|		MD5 md5;
 1694|  8.53k|		return std::pair<std::string, std::string>(str, md5(str));
 1695|  8.53k|	}
_ZN4pcpp21SSLServerHelloMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1702|  36.7k|	    : SSLHandshakeMessage(data, dataLen, container)
 1703|  36.7k|	{
 1704|  36.7k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1705|  36.7k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1706|  36.7k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1706:7): [True: 16.0k, False: 20.7k]
  ------------------
 1707|  16.0k|			return;
 1708|       |
 1709|  20.7k|		uint8_t* extensionLengthPos = m_Data + extensionLengthOffset;
 1710|  20.7k|		uint16_t extensionLength = getExtensionsLength();
 1711|  20.7k|		uint8_t* extensionPos = extensionLengthPos + sizeof(uint16_t);
 1712|  20.7k|		size_t messageLen = getMessageLength();
 1713|       |
 1714|  20.7k|		uint8_t* extensionIt = extensionPos;
 1715|  20.7k|		uint8_t* extensionEndIt = extensionPos + extensionLength;
 1716|       |
 1717|  20.7k|		uint8_t* endOfMessageIt = m_Data + messageLen;
 1718|  20.7k|		if (endOfMessageIt < extensionEndIt)
  ------------------
  |  Branch (1718:7): [True: 10.7k, False: 10.0k]
  ------------------
 1719|  10.7k|		{
 1720|  10.7k|			extensionEndIt = endOfMessageIt;
 1721|  10.7k|		}
 1722|       |
 1723|  20.7k|		constexpr size_t minSSLExtensionLen = 2 * sizeof(uint16_t);
 1724|  61.0k|		while (extensionIt < extensionEndIt &&
  ------------------
  |  Branch (1724:10): [True: 54.0k, False: 6.92k]
  ------------------
 1725|  54.0k|		       std::distance(extensionIt, extensionEndIt) >= static_cast<std::ptrdiff_t>(minSSLExtensionLen))
  ------------------
  |  Branch (1725:10): [True: 50.8k, False: 3.25k]
  ------------------
 1726|  50.8k|		{
 1727|  50.8k|			std::unique_ptr<SSLExtension> newExt;
 1728|       |
 1729|  50.8k|			uint16_t sslExtType = be16toh(*reinterpret_cast<uint16_t*>(extensionIt));
 1730|  50.8k|			size_t availableDataLen = std::distance(extensionIt, extensionEndIt);
 1731|       |
 1732|  50.8k|			switch (sslExtType)
 1733|  50.8k|			{
 1734|  11.5k|			case SSL_EXT_SERVER_NAME:
  ------------------
  |  Branch (1734:4): [True: 11.5k, False: 39.2k]
  ------------------
 1735|  11.5k|			{
 1736|  11.5k|				newExt =
 1737|  11.5k|				    SSLExtension::tryCreateExtension<SSLServerNameIndicationExtension>(extensionIt, availableDataLen);
 1738|  11.5k|				break;
 1739|      0|			}
 1740|  4.00k|			case SSL_EXT_SUPPORTED_VERSIONS:
  ------------------
  |  Branch (1740:4): [True: 4.00k, False: 46.8k]
  ------------------
 1741|  4.00k|			{
 1742|  4.00k|				newExt = SSLExtension::tryCreateExtension<SSLSupportedVersionsExtension>(extensionIt, availableDataLen);
 1743|  4.00k|				break;
 1744|      0|			}
 1745|     30|			case SSL_EXT_SUPPORTED_GROUPS:
  ------------------
  |  Branch (1745:4): [True: 30, False: 50.7k]
  ------------------
 1746|     30|			{
 1747|     30|				newExt = SSLExtension::tryCreateExtension<TLSSupportedGroupsExtension>(extensionIt, availableDataLen);
 1748|     30|				break;
 1749|      0|			}
 1750|  1.38k|			case SSL_EXT_EC_POINT_FORMATS:
  ------------------
  |  Branch (1750:4): [True: 1.38k, False: 49.4k]
  ------------------
 1751|  1.38k|			{
 1752|  1.38k|				newExt = SSLExtension::tryCreateExtension<TLSECPointFormatExtension>(extensionIt, availableDataLen);
 1753|  1.38k|				break;
 1754|      0|			}
 1755|  33.8k|			default:
  ------------------
  |  Branch (1755:4): [True: 33.8k, False: 16.9k]
  ------------------
 1756|  33.8k|			{
 1757|  33.8k|				newExt = SSLExtension::tryCreateExtension<SSLExtension>(extensionIt, availableDataLen);
 1758|  33.8k|			}
 1759|  50.8k|			}
 1760|       |
 1761|  50.8k|			if (newExt == nullptr)
  ------------------
  |  Branch (1761:8): [True: 10.5k, False: 40.2k]
  ------------------
 1762|  10.5k|			{
 1763|  10.5k|				PCPP_LOG_DEBUG("Failed to parse SSL extension of type " << sslExtType
  ------------------
  |  |  427|  10.5k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  10.5k|	do                                                                                                                 \
  |  |  |  |  415|  10.5k|	{                                                                                                                  \
  |  |  |  |  416|  10.5k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  10.5k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  10.5k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 10.5k]
  |  |  |  |  ------------------
  |  |  |  |  418|  10.5k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  10.5k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 10.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1764|  10.5k|				                                                        << " skipping remaining extensions.");
 1765|  10.5k|				break;
 1766|  10.5k|			}
 1767|       |
 1768|       |			// Total length can be zero only if getLength() == 0xfffc which is way too large
 1769|       |			// and means that this extension (and packet) are malformed
 1770|  40.2k|			size_t newExtTotalLen = newExt->getTotalLength();
 1771|  40.2k|			if (newExtTotalLen == 0)
  ------------------
  |  Branch (1771:8): [True: 0, False: 40.2k]
  ------------------
 1772|      0|			{
 1773|      0|				break;
 1774|      0|			}
 1775|       |
 1776|  40.2k|			m_ExtensionList.pushBack(std::move(newExt));
 1777|  40.2k|			std::advance(extensionIt, newExtTotalLen);
 1778|  40.2k|		}
 1779|  20.7k|	}
_ZNK4pcpp21SSLServerHelloMessage19getHandshakeVersionEv:
 1782|  11.4k|	{
 1783|  11.4k|		SSLSupportedVersionsExtension* supportedVersionsExt = getExtensionOfType<SSLSupportedVersionsExtension>();
 1784|  11.4k|		if (supportedVersionsExt != nullptr)
  ------------------
  |  Branch (1784:7): [True: 796, False: 10.6k]
  ------------------
 1785|    796|		{
 1786|    796|			std::vector<SSLVersion> supportedVersions = supportedVersionsExt->getSupportedVersions();
 1787|    796|			if (supportedVersions.size() == 1)
  ------------------
  |  Branch (1787:8): [True: 742, False: 54]
  ------------------
 1788|    742|				return supportedVersions[0];
 1789|    796|		}
 1790|       |
 1791|  10.6k|		if (m_DataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint16_t))
  ------------------
  |  Branch (1791:7): [True: 34, False: 10.6k]
  ------------------
 1792|     34|			return SSLVersion(0);
 1793|       |
 1794|  10.6k|		uint16_t handshakeVersion = be16toh(getServerHelloHeader()->handshakeVersion);
 1795|  10.6k|		return SSLVersion(handshakeVersion);
 1796|  10.6k|	}
_ZNK4pcpp21SSLServerHelloMessage18getSessionIDLengthEv:
 1798|  80.3k|	{
 1799|  80.3k|		if (m_DataLen <= sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t))
  ------------------
  |  Branch (1799:7): [True: 19.5k, False: 60.8k]
  ------------------
 1800|  19.5k|			return 0;
 1801|       |
 1802|  60.8k|		uint8_t val = *(m_Data + sizeof(ssl_tls_client_server_hello));
 1803|  60.8k|		if ((size_t)val > m_DataLen - sizeof(ssl_tls_client_server_hello) - 1)
  ------------------
  |  Branch (1803:7): [True: 4.47k, False: 56.4k]
  ------------------
 1804|  4.47k|			return (uint8_t)(m_DataLen - sizeof(ssl_tls_client_server_hello) - 1);
 1805|       |
 1806|  56.4k|		return val;
 1807|  60.8k|	}
_ZNK4pcpp21SSLServerHelloMessage12getSessionIDEv:
 1810|  5.71k|	{
 1811|  5.71k|		if (getSessionIDLength() > 0)
  ------------------
  |  Branch (1811:7): [True: 2.78k, False: 2.93k]
  ------------------
 1812|  2.78k|			return (m_Data + sizeof(ssl_tls_client_server_hello) + 1);
 1813|  2.93k|		else
 1814|  2.93k|			return nullptr;
 1815|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage14getCipherSuiteEv:
 1818|  5.71k|	{
 1819|  5.71k|		bool isValid;
 1820|  5.71k|		uint16_t id = getCipherSuiteID(isValid);
 1821|  5.71k|		return (isValid ? SSLCipherSuite::getCipherSuiteByID(id) : nullptr);
  ------------------
  |  Branch (1821:11): [True: 3.37k, False: 2.34k]
  ------------------
 1822|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage16getCipherSuiteIDERb:
 1825|  11.4k|	{
 1826|  11.4k|		size_t cipherSuiteStartOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength();
 1827|  11.4k|		if (cipherSuiteStartOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1827:7): [True: 4.68k, False: 6.74k]
  ------------------
 1828|  4.68k|		{
 1829|  4.68k|			isValid = false;
 1830|  4.68k|			return 0;
 1831|  4.68k|		}
 1832|       |
 1833|  6.74k|		isValid = true;
 1834|  6.74k|		uint16_t* cipherSuiteStartPos = (uint16_t*)(m_Data + cipherSuiteStartOffset);
 1835|       |		return be16toh(*(cipherSuiteStartPos));
 1836|  11.4k|	}
_ZNK4pcpp21SSLServerHelloMessage26getCompressionMethodsValueEv:
 1839|  5.71k|	{
 1840|  5.71k|		size_t offset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() + sizeof(uint16_t);
 1841|  5.71k|		if (offset + sizeof(uint8_t) > m_DataLen)
  ------------------
  |  Branch (1841:7): [True: 2.34k, False: 3.37k]
  ------------------
 1842|  2.34k|			return 0xff;
 1843|       |
 1844|  3.37k|		uint8_t* pos = m_Data + offset;
 1845|  3.37k|		return *pos;
 1846|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage17getExtensionCountEv:
 1849|  5.71k|	{
 1850|  5.71k|		return m_ExtensionList.size();
 1851|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage19getExtensionsLengthEv:
 1854|  20.7k|	{
 1855|  20.7k|		size_t extensionLengthOffset = sizeof(ssl_tls_client_server_hello) + sizeof(uint8_t) + getSessionIDLength() +
 1856|  20.7k|		                               sizeof(uint16_t) + sizeof(uint8_t);
 1857|  20.7k|		if (extensionLengthOffset + sizeof(uint16_t) > m_DataLen)
  ------------------
  |  Branch (1857:7): [True: 0, False: 20.7k]
  ------------------
 1858|      0|			return 0;
 1859|       |
 1860|  20.7k|		uint16_t* extensionLengthPos = (uint16_t*)(m_Data + extensionLengthOffset);
 1861|       |		return be16toh(*extensionLengthPos);
 1862|  20.7k|	}
_ZNK4pcpp21SSLServerHelloMessage12getExtensionEi:
 1865|  6.38k|	{
 1866|  6.38k|		if (index < 0 || index >= (int)m_ExtensionList.size())
  ------------------
  |  Branch (1866:7): [True: 0, False: 6.38k]
  |  Branch (1866:20): [True: 0, False: 6.38k]
  ------------------
 1867|      0|			return nullptr;
 1868|       |
 1869|  6.38k|		return const_cast<SSLExtension*>(m_ExtensionList.at(index));
 1870|  6.38k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeEt:
 1873|  5.71k|	{
 1874|  5.71k|		size_t vecSize = m_ExtensionList.size();
 1875|  9.61k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1875:22): [True: 4.66k, False: 4.95k]
  ------------------
 1876|  4.66k|		{
 1877|  4.66k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1878|  4.66k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1878:8): [True: 763, False: 3.90k]
  ------------------
 1879|    763|				return curElem;
 1880|  4.66k|		}
 1881|       |
 1882|  4.95k|		return nullptr;
 1883|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage18getExtensionOfTypeENS_16SSLExtensionTypeE:
 1886|  5.71k|	{
 1887|  5.71k|		size_t vecSize = m_ExtensionList.size();
 1888|  9.61k|		for (size_t i = 0; i < vecSize; i++)
  ------------------
  |  Branch (1888:22): [True: 4.66k, False: 4.95k]
  ------------------
 1889|  4.66k|		{
 1890|  4.66k|			SSLExtension* curElem = const_cast<SSLExtension*>(m_ExtensionList.at(i));
 1891|  4.66k|			if (curElem->getType() == type)
  ------------------
  |  Branch (1891:8): [True: 763, False: 3.90k]
  ------------------
 1892|    763|				return curElem;
 1893|  4.66k|		}
 1894|       |
 1895|  4.95k|		return nullptr;
 1896|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage22generateTLSFingerprintEv:
 1899|  5.71k|	{
 1900|  5.71k|		SSLServerHelloMessage::ServerHelloTLSFingerprint result;
 1901|       |
 1902|       |		// extract version
 1903|  5.71k|		result.tlsVersion = getHandshakeVersion().asUInt();
 1904|       |
 1905|       |		// extract cipher suite
 1906|  5.71k|		bool isValid;
 1907|  5.71k|		uint16_t cipherSuite = getCipherSuiteID(isValid);
 1908|  5.71k|		result.cipherSuite = (isValid ? cipherSuite : 0);
  ------------------
  |  Branch (1908:25): [True: 3.37k, False: 2.34k]
  ------------------
 1909|       |
 1910|       |		// extract extensions
 1911|  5.71k|		int extensionCount = getExtensionCount();
 1912|  12.1k|		for (int i = 0; i < extensionCount; i++)
  ------------------
  |  Branch (1912:19): [True: 6.38k, False: 5.71k]
  ------------------
 1913|  6.38k|		{
 1914|  6.38k|			uint16_t extensionType = getExtension(i)->getTypeAsInt();
 1915|  6.38k|			result.extensions.push_back(extensionType);
 1916|  6.38k|		}
 1917|       |
 1918|  5.71k|		return result;
 1919|  5.71k|	}
_ZNK4pcpp21SSLServerHelloMessage8toStringEv:
 1922|  11.4k|	{
 1923|  11.4k|		return "Server Hello message";
 1924|  11.4k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint8toStringEv:
 1931|  5.71k|	{
 1932|  5.71k|		std::stringstream tlsFingerprint;
 1933|       |
 1934|       |		// add version and cipher suite
 1935|  5.71k|		tlsFingerprint << tlsVersion << "," << cipherSuite << ",";
 1936|       |
 1937|       |		// add extensions
 1938|  5.71k|		bool firstExtension = true;
 1939|  5.71k|		for (const auto& iter : extensions)
  ------------------
  |  Branch (1939:25): [True: 6.38k, False: 5.71k]
  ------------------
 1940|  6.38k|		{
 1941|  6.38k|			tlsFingerprint << (firstExtension ? "" : "-") << iter;
  ------------------
  |  Branch (1941:23): [True: 2.94k, False: 3.44k]
  ------------------
 1942|  6.38k|			firstExtension = false;
 1943|  6.38k|		}
 1944|       |
 1945|  5.71k|		return tlsFingerprint.str();
 1946|  5.71k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint5toMD5Ev:
 1949|  5.71k|	{
 1950|  5.71k|		return toStringAndMD5().second;
 1951|  5.71k|	}
_ZN4pcpp21SSLServerHelloMessage25ServerHelloTLSFingerprint14toStringAndMD5Ev:
 1954|  5.71k|	{
 1955|  5.71k|		std::string str = toString();
 1956|  5.71k|		MD5 md5;
 1957|  5.71k|		return std::pair<std::string, std::string>(str, md5(str));
 1958|  5.71k|	}
_ZN4pcpp21SSLCertificateMessageC2EPhmPNS_17SSLHandshakeLayerE:
 1965|  13.4k|	    : SSLHandshakeMessage(data, dataLen, container)
 1966|  13.4k|	{
 1967|  13.4k|		if (dataLen < sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t) * 3)  // certificates length (3B)
  ------------------
  |  Branch (1967:7): [True: 42, False: 13.4k]
  ------------------
 1968|     42|			return;
 1969|       |
 1970|  13.4k|		size_t messageLen = getMessageLength();
 1971|       |		// read certificates length
 1972|       |		// TODO: certificates length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1973|  13.4k|		uint8_t* curPos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 1974|  13.4k|		uint16_t certificatesLength = be16toh(*reinterpret_cast<uint16_t*>(curPos));
 1975|  13.4k|		if (certificatesLength == 0)
  ------------------
  |  Branch (1975:7): [True: 227, False: 13.2k]
  ------------------
 1976|    227|			return;
 1977|       |
 1978|       |		// advance to position of first certificate
 1979|  13.2k|		curPos += sizeof(uint16_t);
 1980|       |
 1981|  44.9k|		while (true)
  ------------------
  |  Branch (1981:10): [True: 44.9k, Folded]
  ------------------
 1982|  44.9k|		{
 1983|       |			// try to read certificate length (3B)
 1984|       |			// TODO: certificate length is 3B. Currently assuming the MSB is 0 and reading only 2 LSBs
 1985|  44.9k|			if (curPos + 3 * sizeof(uint8_t) - data > (int)messageLen)
  ------------------
  |  Branch (1985:8): [True: 13.2k, False: 31.7k]
  ------------------
 1986|  13.2k|				break;
 1987|       |
 1988|       |			// read certificate length
 1989|  31.7k|			curPos += sizeof(uint8_t);
 1990|  31.7k|			uint16_t certificateLength = be16toh(*reinterpret_cast<uint16_t*>(curPos));
 1991|       |
 1992|       |			// advance to start position of certificate
 1993|  31.7k|			curPos += sizeof(uint16_t);
 1994|       |
 1995|       |			// if packet doesn't contain the full certificate, read only what you got from current position till the
 1996|       |			// end of the packet
 1997|  31.7k|			bool certificateFull = true;
 1998|  31.7k|			if (curPos - data + certificateLength > (int)messageLen)
  ------------------
  |  Branch (1998:8): [True: 12.6k, False: 19.1k]
  ------------------
 1999|  12.6k|			{
 2000|  12.6k|				certificateLength = messageLen - (curPos - data);
 2001|  12.6k|				certificateFull = false;
 2002|  12.6k|			}
 2003|       |
 2004|  31.7k|			PCPP_LOG_DEBUG("Parsing certificate: pos=" << (int)(curPos - data) << "; len=" << certificateLength);
  ------------------
  |  |  427|  31.7k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  31.7k|	do                                                                                                                 \
  |  |  |  |  415|  31.7k|	{                                                                                                                  \
  |  |  |  |  416|  31.7k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  31.7k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  31.7k|#define LOG_MODULE PacketLogModuleSSLLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 31.7k]
  |  |  |  |  ------------------
  |  |  |  |  418|  31.7k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  31.7k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 31.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2005|  31.7k|			SSLx509Certificate* newCert = new SSLx509Certificate(curPos, certificateLength, certificateFull);
 2006|  31.7k|			m_CertificateList.pushBack(newCert);
 2007|       |
 2008|  31.7k|			curPos += certificateLength;
 2009|  31.7k|		}
 2010|  13.2k|	}
_ZNK4pcpp21SSLCertificateMessage8toStringEv:
 2013|  4.14k|	{
 2014|  4.14k|		return "Certificate message";
 2015|  4.14k|	}
_ZNK4pcpp22SSLHelloRequestMessage8toStringEv:
 2039|  9.68k|	{
 2040|  9.68k|		return "Hello Request message";
 2041|  9.68k|	}
_ZNK4pcpp25SSLServerHelloDoneMessage8toStringEv:
 2048|    524|	{
 2049|    524|		return "Server Hello Done message";
 2050|    524|	}
_ZNK4pcpp27SSLServerKeyExchangeMessage8toStringEv:
 2074|  2.44k|	{
 2075|  2.44k|		return "Server Key Exchange message";
 2076|  2.44k|	}
_ZNK4pcpp27SSLClientKeyExchangeMessage8toStringEv:
 2100|    924|	{
 2101|    924|		return "Client Key Exchange message";
 2102|    924|	}
_ZN4pcpp28SSLCertificateRequestMessageC2EPhmPNS_17SSLHandshakeLayerE:
 2110|  17.8k|	    : SSLHandshakeMessage(data, dataLen, container)
 2111|  17.8k|	{
 2112|  17.8k|		size_t minMessageSize = sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);  // certificate types count (1B)
 2113|  17.8k|		if (dataLen < minMessageSize)
  ------------------
  |  Branch (2113:7): [True: 4.30k, False: 13.5k]
  ------------------
 2114|  4.30k|			return;
 2115|       |
 2116|  13.5k|		size_t messageLen = getMessageLength();
 2117|  13.5k|		if (messageLen < minMessageSize)
  ------------------
  |  Branch (2117:7): [True: 782, False: 12.7k]
  ------------------
 2118|    782|			return;
 2119|       |
 2120|  12.7k|		uint8_t certificateTypesCount = *(uint8_t*)(data + sizeof(ssl_tls_handshake_layer));
 2121|       |
 2122|  12.7k|		if (certificateTypesCount > messageLen - minMessageSize)
  ------------------
  |  Branch (2122:7): [True: 5.31k, False: 7.45k]
  ------------------
 2123|  5.31k|			certificateTypesCount = messageLen - minMessageSize;
 2124|       |
 2125|  12.7k|		uint8_t* pos = data + sizeof(ssl_tls_handshake_layer) + sizeof(uint8_t);
 2126|   308k|		for (uint8_t i = 0; i < certificateTypesCount; i++)
  ------------------
  |  Branch (2126:23): [True: 295k, False: 12.7k]
  ------------------
 2127|   295k|		{
 2128|   295k|			uint8_t certType = *(uint8_t*)(pos + i);
 2129|   295k|			if (certType == 0 || (certType > 6 && certType < 20) || (certType > 20 && certType < 64) || certType > 64)
  ------------------
  |  Branch (2129:8): [True: 23.7k, False: 271k]
  |  Branch (2129:26): [True: 228k, False: 43.5k]
  |  Branch (2129:42): [True: 20.4k, False: 207k]
  |  Branch (2129:61): [True: 171k, False: 79.6k]
  |  Branch (2129:78): [True: 22.5k, False: 149k]
  |  Branch (2129:96): [True: 142k, False: 86.6k]
  ------------------
 2130|   208k|				m_ClientCertificateTypes.push_back(SSL_CCT_UNKNOWN);
 2131|  86.6k|			else
 2132|  86.6k|				m_ClientCertificateTypes.push_back(static_cast<SSLClientCertificateType>(certType));
 2133|   295k|		}
 2134|  12.7k|	}
_ZNK4pcpp28SSLCertificateRequestMessage8toStringEv:
 2170|  5.53k|	{
 2171|  5.53k|		return "Certificate Request message";
 2172|  5.53k|	}
_ZNK4pcpp27SSLCertificateVerifyMessage8toStringEv:
 2196|    432|	{
 2197|    432|		return "Certificate Verify message";
 2198|    432|	}
_ZNK4pcpp18SSLFinishedMessage8toStringEv:
 2222|    966|	{
 2223|    966|		return "Finished message";
 2224|    966|	}
_ZNK4pcpp26SSLNewSessionTicketMessage8toStringEv:
 2248|    822|	{
 2249|    822|		return "New Session Ticket message";
 2250|    822|	}
_ZNK4pcpp17SSLUnknownMessage16getMessageLengthEv:
 2264|   105k|	{
 2265|       |		// if message type is unknown, it may be some encrypted message so message length isn't necessarily written
 2266|       |		// in clear. So in this case assume message is in length of all remaining data
 2267|   105k|		return m_DataLen;
 2268|   105k|	}
_ZNK4pcpp17SSLUnknownMessage8toStringEv:
 2271|  16.9k|	{
 2272|  16.9k|		return "Unknown message";
 2273|  16.9k|	}
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|  8.53k|	{
  695|  8.53k|		unsigned h = SslHashInitialValue;
  696|   187k|		for (auto i = 0u; i < str.size(); ++i)
  ------------------
  |  Branch (696:21): [True: 179k, False: 8.53k]
  ------------------
  697|   179k|		{
  698|   179k|			h = (h * SslHashMultiplierA) ^ (str[i] * SslHashMultiplierB);
  699|   179k|		}
  700|  8.53k|		return h;
  701|  8.53k|	}

_ZN4pcpp8SSLLayer12IsSSLMessageEttPhmb:
   15|   626k|	{
   16|       |		// check the port map first
   17|   626k|		if (!ignorePorts && !isSSLPort(srcPort) && !isSSLPort(dstPort))
  ------------------
  |  Branch (17:7): [True: 471k, False: 155k]
  |  Branch (17:23): [True: 426k, False: 44.6k]
  |  Branch (17:46): [True: 312k, False: 113k]
  ------------------
   18|   312k|			return false;
   19|       |
   20|   314k|		if (dataLen < sizeof(ssl_tls_record_layer))
  ------------------
  |  Branch (20:7): [True: 39.5k, False: 274k]
  ------------------
   21|  39.5k|			return false;
   22|       |
   23|   274k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   24|       |
   25|       |		// there is no SSL message with length 0
   26|   274k|		if (recordLayer->length == 0)
  ------------------
  |  Branch (26:7): [True: 4.86k, False: 269k]
  ------------------
   27|  4.86k|			return false;
   28|       |
   29|   269k|		if (recordLayer->recordType < 20 || recordLayer->recordType > 23)
  ------------------
  |  Branch (29:7): [True: 2.40k, False: 267k]
  |  Branch (29:39): [True: 15.3k, False: 252k]
  ------------------
   30|  17.7k|			return false;
   31|       |
   32|   252k|		SSLVersion::SSLVersionEnum recordVersion = SSLVersion(be16toh(recordLayer->recordVersion)).asEnum(true);
   33|       |
   34|   252k|		if (recordVersion == SSLVersion::TLS1_3 || recordVersion == SSLVersion::TLS1_2 ||
  ------------------
  |  Branch (34:7): [True: 3.64k, False: 248k]
  |  Branch (34:46): [True: 198k, False: 49.5k]
  ------------------
   35|  49.5k|		    recordVersion == SSLVersion::TLS1_1 || recordVersion == SSLVersion::TLS1_0 ||
  ------------------
  |  Branch (35:7): [True: 4.15k, False: 45.4k]
  |  Branch (35:46): [True: 40.3k, False: 5.12k]
  ------------------
   36|  5.12k|		    recordVersion == SSLVersion::SSL3)
  ------------------
  |  Branch (36:7): [True: 3.83k, False: 1.28k]
  ------------------
   37|   250k|			return true;
   38|  1.28k|		else
   39|  1.28k|			return false;
   40|   252k|	}
_ZN4pcpp8SSLLayer16createSSLMessageEPhmPNS_5LayerEPNS_6PacketE:
   43|   250k|	{
   44|   250k|		if (!canReinterpretAs<ssl_tls_record_layer>(data, dataLen))
  ------------------
  |  Branch (44:7): [True: 0, False: 250k]
  ------------------
   45|      0|		{
   46|      0|			return nullptr;
   47|      0|		}
   48|       |
   49|   250k|		ssl_tls_record_layer* recordLayer = (ssl_tls_record_layer*)data;
   50|   250k|		switch (recordLayer->recordType)
   51|   250k|		{
   52|   139k|		case SSL_HANDSHAKE:
  ------------------
  |  Branch (52:3): [True: 139k, False: 111k]
  ------------------
   53|   139k|		{
   54|   139k|			return new SSLHandshakeLayer(data, dataLen, prevLayer, packet);
   55|      0|		}
   56|       |
   57|  6.18k|		case SSL_ALERT:
  ------------------
  |  Branch (57:3): [True: 6.18k, False: 244k]
  ------------------
   58|  6.18k|		{
   59|  6.18k|			return new SSLAlertLayer(data, dataLen, prevLayer, packet);
   60|      0|		}
   61|       |
   62|  84.5k|		case SSL_CHANGE_CIPHER_SPEC:
  ------------------
  |  Branch (62:3): [True: 84.5k, False: 166k]
  ------------------
   63|  84.5k|		{
   64|  84.5k|			return new SSLChangeCipherSpecLayer(data, dataLen, prevLayer, packet);
   65|      0|		}
   66|       |
   67|  20.9k|		case SSL_APPLICATION_DATA:
  ------------------
  |  Branch (67:3): [True: 20.9k, False: 229k]
  ------------------
   68|  20.9k|		{
   69|  20.9k|			return new SSLApplicationDataLayer(data, dataLen, prevLayer, packet);
   70|      0|		}
   71|       |
   72|      0|		default:
  ------------------
  |  Branch (72:3): [True: 0, False: 250k]
  ------------------
   73|      0|			return nullptr;
   74|   250k|		}
   75|   250k|	}
_ZNK4pcpp8SSLLayer16getRecordVersionEv:
   78|  80.9k|	{
   79|       |		uint16_t recordVersion = be16toh(getRecordLayer()->recordVersion);
   80|  80.9k|		return SSLVersion(recordVersion);
   81|  80.9k|	}
_ZNK4pcpp8SSLLayer12getHeaderLenEv:
   89|   293k|	{
   90|   293k|		size_t len = sizeof(ssl_tls_record_layer) + be16toh(getRecordLayer()->length);
   91|   293k|		if (len > m_DataLen)
  ------------------
  |  Branch (91:7): [True: 47.3k, False: 245k]
  ------------------
   92|  47.3k|			return m_DataLen;
   93|   245k|		return len;
   94|   293k|	}
_ZN4pcpp8SSLLayer14parseNextLayerEv:
   97|   250k|	{
   98|   250k|		size_t headerLen = getHeaderLen();
   99|   250k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (99:7): [True: 94.7k, False: 155k]
  ------------------
  100|  94.7k|			return;
  101|       |
  102|   155k|		if (SSLLayer::IsSSLMessage(0, 0, m_Data + headerLen, m_DataLen - headerLen, true))
  ------------------
  |  Branch (102:7): [True: 113k, False: 42.3k]
  ------------------
  103|   113k|		{
  104|   113k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, m_Data + headerLen, m_DataLen - headerLen);
  105|   113k|		}
  106|   155k|	}
_ZNK4pcpp17SSLHandshakeLayer8toStringEv:
  113|  45.2k|	{
  114|  45.2k|		std::stringstream result;
  115|  45.2k|		result << getRecordVersion().toString(true) << " Layer, Handshake:";
  116|   116k|		for (size_t i = 0; i < m_MessageList.size(); i++)
  ------------------
  |  Branch (116:22): [True: 71.2k, False: 45.2k]
  ------------------
  117|  71.2k|		{
  118|  71.2k|			if (i == 0)
  ------------------
  |  Branch (118:8): [True: 42.6k, False: 28.5k]
  ------------------
  119|  42.6k|				result << " " << m_MessageList.at(i)->toString();
  120|  28.5k|			else
  121|  28.5k|				result << ", " << m_MessageList.at(i)->toString();
  122|  71.2k|		}
  123|  45.2k|		return result.str();
  124|  45.2k|	}
_ZN4pcpp17SSLHandshakeLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  127|   139k|	    : SSLLayer(data, dataLen, prevLayer, packet)
  128|   139k|	{
  129|   139k|		constexpr size_t baseTLSRecordSize = sizeof(ssl_tls_record_layer);
  130|   139k|		uint8_t* curPos = m_Data + baseTLSRecordSize;
  131|   139k|		size_t recordDataLen = be16toh(getRecordLayer()->length);
  132|       |
  133|   139k|		if (m_DataLen < recordDataLen + baseTLSRecordSize)
  ------------------
  |  Branch (133:7): [True: 30.7k, False: 108k]
  ------------------
  134|  30.7k|		{
  135|  30.7k|			recordDataLen = m_DataLen >= baseTLSRecordSize ? m_DataLen - baseTLSRecordSize : 0;
  ------------------
  |  Branch (135:20): [True: 30.7k, False: 0]
  ------------------
  136|  30.7k|		}
  137|       |
  138|   139k|		size_t curPosIndex = 0;
  139|   357k|		while (true)
  ------------------
  |  Branch (139:10): [True: 357k, Folded]
  ------------------
  140|   357k|		{
  141|   357k|			SSLHandshakeMessage* message =
  142|   357k|			    SSLHandshakeMessage::createHandshakeMessage(curPos, recordDataLen - curPosIndex, this);
  143|   357k|			if (message == nullptr)
  ------------------
  |  Branch (143:8): [True: 139k, False: 218k]
  ------------------
  144|   139k|				break;
  145|       |
  146|   218k|			m_MessageList.pushBack(message);
  147|   218k|			curPos += message->getMessageLength();
  148|   218k|			curPosIndex += message->getMessageLength();
  149|   218k|		}
  150|   139k|	}
_ZNK4pcpp24SSLChangeCipherSpecLayer8toStringEv:
  165|  26.5k|	{
  166|  26.5k|		std::stringstream result;
  167|  26.5k|		result << getRecordVersion().toString(true) << " Layer, Change Cipher Spec";
  168|  26.5k|		return result.str();
  169|  26.5k|	}
_ZNK4pcpp13SSLAlertLayer13getAlertLevelEv:
  176|  2.06k|	{
  177|       |		// the record is too short to hold the alert level
  178|  2.06k|		if (getHeaderLen() < sizeof(ssl_tls_record_layer) + sizeof(uint8_t))
  ------------------
  |  Branch (178:7): [True: 30, False: 2.03k]
  ------------------
  179|     30|			return SSL_ALERT_LEVEL_ENCRYPTED;
  180|       |
  181|  2.03k|		uint8_t* pos = m_Data + sizeof(ssl_tls_record_layer);
  182|  2.03k|		uint8_t alertLevel = *pos;
  183|  2.03k|		if (alertLevel == SSL_ALERT_LEVEL_WARNING || alertLevel == SSL_ALERT_LEVEL_FATAL)
  ------------------
  |  Branch (183:7): [True: 1.00k, False: 1.03k]
  |  Branch (183:48): [True: 10, False: 1.02k]
  ------------------
  184|  1.01k|			return (SSLAlertLevel)alertLevel;
  185|  1.02k|		else
  186|  1.02k|			return SSL_ALERT_LEVEL_ENCRYPTED;
  187|  2.03k|	}
_ZNK4pcpp13SSLAlertLayer8toStringEv:
  235|  2.06k|	{
  236|  2.06k|		std::stringstream result;
  237|  2.06k|		result << getRecordVersion().toString(true) << " Layer, ";
  238|  2.06k|		if (getAlertLevel() == SSL_ALERT_LEVEL_ENCRYPTED)
  ------------------
  |  Branch (238:7): [True: 1.05k, False: 1.01k]
  ------------------
  239|  1.05k|			result << "Encrypted Alert";
  240|  1.01k|		else
  241|       |			// TODO: add alert level and description here
  242|  1.01k|			result << "Alert";
  243|  2.06k|		return result.str();
  244|  2.06k|	}
_ZNK4pcpp23SSLApplicationDataLayer8toStringEv:
  268|  7.00k|	{
  269|  7.00k|		return getRecordVersion().toString(true) + " Layer, Application Data";
  270|  7.00k|	}

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

_ZNK4pcpp25SingleCommandTextProtocol22getArgumentFieldOffsetEv:
   14|  17.2k|	{
   15|  17.2k|		size_t maxLen;
   16|  17.2k|		if (m_DataLen < MaxCommandLength)
  ------------------
  |  Branch (16:7): [True: 135, False: 17.1k]
  ------------------
   17|    135|			maxLen = m_DataLen;
   18|  17.1k|		else
   19|  17.1k|			maxLen = MaxCommandLength;
   20|       |
   21|       |		// To correctly detect multi-line packets with the option containing a space in
   22|       |		// the first MAX_CONTENT_LENGTH bytes, search the both of hyphen and space to take
   23|       |		// correct command delimiter
   24|       |
   25|  17.2k|		std::string field(reinterpret_cast<char*>(m_Data), maxLen);
   26|       |
   27|  17.2k|		size_t posHyphen = field.find_first_of(AsciiHyphen);
   28|  17.2k|		size_t posSpace = field.find_first_of(AsciiSpace);
   29|  17.2k|		size_t posCRLF = field.rfind("\r\n");
   30|       |
   31|       |		// No delimiter or packet end
   32|  17.2k|		if (posHyphen == std::string::npos && posSpace == std::string::npos && posCRLF == std::string::npos)
  ------------------
  |  Branch (32:7): [True: 14.2k, False: 2.95k]
  |  Branch (32:41): [True: 9.64k, False: 4.65k]
  |  Branch (32:74): [True: 8.64k, False: 999]
  ------------------
   33|  8.64k|			return 0;
   34|       |		// Both hyphen and space found
   35|  8.60k|		else if (posHyphen != std::string::npos || posSpace != std::string::npos)
  ------------------
  |  Branch (35:12): [True: 2.95k, False: 5.64k]
  |  Branch (35:46): [True: 4.65k, False: 999]
  ------------------
   36|  7.60k|			return std::min(posSpace, posHyphen);
   37|       |		// If nothing found but there is a CRLF it is a only command packet
   38|    999|		else if (posCRLF != std::string::npos)
  ------------------
  |  Branch (38:12): [True: 999, False: 0]
  ------------------
   39|    999|			return posCRLF;
   40|       |
   41|      0|		return 0;
   42|  17.2k|	}
_ZNK4pcpp25SingleCommandTextProtocol18getCommandInternalEv:
  122|  12.2k|	{
  123|  12.2k|		size_t offset = getArgumentFieldOffset();
  124|       |
  125|       |		// If there is no option remove trailing newline characters
  126|  12.2k|		if (offset == (m_DataLen - 1) && offset > 1)
  ------------------
  |  Branch (126:7): [True: 0, False: 12.2k]
  |  Branch (126:36): [True: 0, False: 0]
  ------------------
  127|      0|			return std::string(reinterpret_cast<char*>(m_Data), offset - 1);
  128|  12.2k|		return std::string(reinterpret_cast<char*>(m_Data), offset);
  129|  12.2k|	}
_ZNK4pcpp25SingleCommandTextProtocol24getCommandOptionInternalEv:
  132|  4.95k|	{
  133|  4.95k|		size_t offset = getArgumentFieldOffset();
  134|       |
  135|       |		// We don't want to get delimiter so add 1 for start unless there is no command,
  136|  4.95k|		int addition = offset ? 1 : 0;
  ------------------
  |  Branch (136:18): [True: 2.41k, False: 2.54k]
  ------------------
  137|       |
  138|       |		// Check if command-only packet (-2 to account for len/position comparison and size of CRLF)
  139|  4.95k|		if (offset != (m_DataLen - 2))
  ------------------
  |  Branch (139:7): [True: 4.60k, False: 354]
  ------------------
  140|  4.60k|		{
  141|       |			// We don't want to trailing newline characters so remove 2 and remove addition from start point
  142|  4.60k|			auto option =
  143|  4.60k|			    std::string(reinterpret_cast<char*>(&m_Data[offset + addition]), m_DataLen - (offset + 2 + addition));
  144|       |
  145|       |			// Remove XXX- and XXX<SP> since they are delimiters of the protocol where XXX is the usually status code
  146|       |			// Check RFC821 (SMTP) Section 3.3 and RFC959 (FTP) Section 4.2
  147|  4.60k|			auto code = getCommandInternal();
  148|  4.60k|			auto vDelim = std::vector<std::string>{ code + " ", code + "-" };
  149|       |
  150|  4.60k|			for (const auto& delim : vDelim)
  ------------------
  |  Branch (150:27): [True: 9.20k, False: 4.60k]
  ------------------
  151|  9.20k|			{
  152|  9.20k|				size_t pos = 0;
  153|  11.4k|				while ((pos = option.find(delim, pos)) != std::string::npos)
  ------------------
  |  Branch (153:12): [True: 2.21k, False: 9.20k]
  ------------------
  154|  2.21k|				{
  155|  2.21k|					option.replace(pos, delim.length(), "");
  156|  2.21k|				}
  157|  9.20k|			}
  158|  4.60k|			return option;
  159|  4.60k|		}
  160|    354|		return "";
  161|  4.95k|	}
_ZN4pcpp25SingleCommandTextProtocol11isDataValidEPKhm:
  169|  17.3k|	{
  170|  17.3k|		if (data == nullptr || dataSize < MinPacketLength)
  ------------------
  |  Branch (170:7): [True: 0, False: 17.3k]
  |  Branch (170:26): [True: 81, False: 17.3k]
  ------------------
  171|     81|			return false;
  172|       |
  173|  17.3k|		std::string payload = std::string(reinterpret_cast<const char*>(data), dataSize);
  174|  17.3k|		return payload.rfind("\r\n") == dataSize - 2;
  175|  17.3k|	}

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

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

_ZN4pcpp8SllLayer14parseNextLayerEv:
   51|   155k|	{
   52|   155k|		if (m_DataLen <= sizeof(sll_header))
  ------------------
  |  Branch (52:7): [True: 520, False: 154k]
  ------------------
   53|    520|			return;
   54|       |
   55|   154k|		uint8_t* payload = m_Data + sizeof(sll_header);
   56|   154k|		size_t payloadLen = m_DataLen - sizeof(sll_header);
   57|       |
   58|   154k|		sll_header* hdr = getSllHeader();
   59|   154k|		switch (be16toh(hdr->protocol_type))
   60|   154k|		{
   61|  55.7k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|  55.7k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (61:3): [True: 55.7k, False: 98.8k]
  ------------------
   62|  55.7k|		{
   63|  55.7k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   64|  55.7k|			break;
   65|      0|		}
   66|  92.5k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|  92.5k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (66:3): [True: 92.5k, False: 62.1k]
  ------------------
   67|  92.5k|		{
   68|  92.5k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   69|  92.5k|			break;
   70|      0|		}
   71|     81|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|     81|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (71:3): [True: 81, False: 154k]
  ------------------
   72|     81|		{
   73|     81|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   74|     81|			break;
   75|      0|		}
   76|  3.96k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|  3.96k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (76:3): [True: 3.96k, False: 150k]
  ------------------
   77|  3.96k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|  3.96k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (77:3): [True: 0, False: 154k]
  ------------------
   78|  3.96k|		{
   79|  3.96k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   80|  3.96k|			break;
   81|  3.96k|		}
   82|     31|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|     31|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (82:3): [True: 31, False: 154k]
  ------------------
   83|     31|		{
   84|     31|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   85|     31|			break;
   86|  3.96k|		}
   87|     10|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|     10|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (87:3): [True: 10, False: 154k]
  ------------------
   88|     10|		{
   89|     10|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   90|     10|			break;
   91|  3.96k|		}
   92|     84|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|     84|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (92:3): [True: 84, False: 154k]
  ------------------
   93|     84|		{
   94|     84|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
   95|     84|			break;
   96|  3.96k|		}
   97|  2.19k|		default:
  ------------------
  |  Branch (97:3): [True: 2.19k, False: 152k]
  ------------------
   98|  2.19k|		{
   99|  2.19k|			constructNextLayer<PayloadLayer>(payload, payloadLen);
  100|  2.19k|			break;
  101|  3.96k|		}
  102|   154k|		}
  103|   154k|	}
_ZN4pcpp8SllLayer22computeCalculateFieldsEv:
  106|  26.0k|	{
  107|  26.0k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (107:7): [True: 260, False: 25.7k]
  ------------------
  108|    260|			return;
  109|       |
  110|  25.7k|		sll_header* hdr = getSllHeader();
  111|  25.7k|		switch (m_NextLayer->getProtocol())
  112|  25.7k|		{
  113|  8.17k|		case IPv4:
  ------------------
  |  Branch (113:3): [True: 8.17k, False: 17.6k]
  ------------------
  114|  8.17k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IP);
  115|  8.17k|			break;
  116|  16.0k|		case IPv6:
  ------------------
  |  Branch (116:3): [True: 16.0k, False: 9.71k]
  ------------------
  117|  16.0k|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_IPV6);
  118|  16.0k|			break;
  119|     15|		case ARP:
  ------------------
  |  Branch (119:3): [True: 15, False: 25.7k]
  ------------------
  120|     15|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_ARP);
  121|     15|			break;
  122|    731|		case VLAN:
  ------------------
  |  Branch (122:3): [True: 731, False: 25.0k]
  ------------------
  123|    731|			hdr->protocol_type = htobe16(PCPP_ETHERTYPE_VLAN);
  124|    731|			break;
  125|    800|		default:
  ------------------
  |  Branch (125:3): [True: 800, False: 24.9k]
  ------------------
  126|    800|			return;
  127|  25.7k|		}
  128|  25.7k|	}
_ZNK4pcpp8SllLayer8toStringEv:
  131|  52.0k|	{
  132|  52.0k|		return "Linux cooked header";
  133|  52.0k|	}

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

_ZN4pcpp11SomeIpLayer16parseSomeIpLayerEPhmPNS_5LayerEPNS_6PacketE:
   46|  61.4k|	{
   47|       |		// Ideas taken from wireshark some ip dissector
   48|  61.4k|		const size_t headerLen = sizeof(someiphdr);
   49|  61.4k|		if (dataLen < headerLen)
  ------------------
  |  Branch (49:7): [True: 20.4k, False: 40.9k]
  ------------------
   50|  20.4k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   51|       |
   52|  40.9k|		uint32_t lengthBE = 0;
   53|  40.9k|		memcpy(&lengthBE, data + sizeof(uint32_t), sizeof(uint32_t));  // length field in SOME/IP header
   54|  40.9k|		uint32_t length = be32toh(lengthBE);
   55|  40.9k|		if ((length < 8) || (length > dataLen - 8))
  ------------------
  |  Branch (55:7): [True: 108, False: 40.8k]
  |  Branch (55:23): [True: 3.30k, False: 37.5k]
  ------------------
   56|  3.41k|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   57|       |
   58|  37.5k|		if (data[12] != SOMEIP_PROTOCOL_VERSION)
  ------------------
  |  Branch (58:7): [True: 127, False: 37.4k]
  ------------------
   59|    127|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   60|       |
   61|  37.4k|		someiphdr* hdr = (someiphdr*)data;
   62|       |
   63|  37.4k|		switch (static_cast<MsgType>(hdr->msgType & ~(uint8_t)MsgType::TP_REQUEST))
   64|  37.4k|		{
   65|    316|		case MsgType::REQUEST:
  ------------------
  |  Branch (65:3): [True: 316, False: 37.0k]
  ------------------
   66|    562|		case MsgType::REQUEST_ACK:
  ------------------
  |  Branch (66:3): [True: 246, False: 37.1k]
  ------------------
   67|  5.49k|		case MsgType::REQUEST_NO_RETURN:
  ------------------
  |  Branch (67:3): [True: 4.92k, False: 32.4k]
  ------------------
   68|  5.59k|		case MsgType::REQUEST_NO_RETURN_ACK:
  ------------------
  |  Branch (68:3): [True: 109, False: 37.3k]
  ------------------
   69|  33.7k|		case MsgType::NOTIFICATION:
  ------------------
  |  Branch (69:3): [True: 28.1k, False: 9.25k]
  ------------------
   70|  33.9k|		case MsgType::NOTIFICATION_ACK:
  ------------------
  |  Branch (70:3): [True: 214, False: 37.1k]
  ------------------
   71|  34.0k|		case MsgType::RESPONSE:
  ------------------
  |  Branch (71:3): [True: 71, False: 37.3k]
  ------------------
   72|  34.1k|		case MsgType::RESPONSE_ACK:
  ------------------
  |  Branch (72:3): [True: 103, False: 37.3k]
  ------------------
   73|  34.2k|		case MsgType::ERRORS:
  ------------------
  |  Branch (73:3): [True: 70, False: 37.3k]
  ------------------
   74|  37.3k|		case MsgType::ERROR_ACK:
  ------------------
  |  Branch (74:3): [True: 3.12k, False: 34.2k]
  ------------------
   75|  37.3k|			break;
   76|     76|		default:
  ------------------
  |  Branch (76:3): [True: 76, False: 37.3k]
  ------------------
   77|     76|			return new PayloadLayer(data, dataLen, prevLayer, packet);
   78|  37.4k|		}
   79|       |
   80|  37.3k|		if (be16toh(hdr->serviceID) == 0xFFFF && be16toh(hdr->methodID) == 0x8100 &&
  ------------------
  |  Branch (80:7): [True: 35.4k, False: 1.89k]
  |  Branch (80:44): [True: 31.9k, False: 3.45k]
  ------------------
   81|  31.9k|		    SomeIpSdLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (81:7): [True: 24.7k, False: 7.28k]
  ------------------
   82|  24.7k|		{
   83|  24.7k|			return new SomeIpSdLayer(data, dataLen, prevLayer, packet);
   84|  24.7k|		}
   85|  12.6k|		else if ((hdr->msgType & (uint8_t)SomeIpLayer::MsgType::TP_REQUEST) != 0)
  ------------------
  |  Branch (85:12): [True: 2.93k, False: 9.70k]
  ------------------
   86|  2.93k|		{
   87|  2.93k|			return new SomeIpTpLayer(data, dataLen, prevLayer, packet);
   88|  2.93k|		}
   89|  9.70k|		else
   90|  9.70k|		{
   91|  9.70k|			return new SomeIpLayer(data, dataLen, prevLayer, packet);
   92|  9.70k|		}
   93|  37.3k|	}
_ZN4pcpp11SomeIpLayer12isSomeIpPortEt:
   96|   484k|	{
   97|   484k|		return SomeIpSdLayer::isSomeIpSdPort(port) ||
  ------------------
  |  Branch (97:10): [True: 37.9k, False: 446k]
  ------------------
   98|   446k|		       std::any_of(m_SomeIpPorts.begin(), m_SomeIpPorts.end(),
  ------------------
  |  Branch (98:10): [True: 0, False: 446k]
  ------------------
   99|   446k|		                   [&](const uint16_t& someIpPort) { return someIpPort == port; });
  100|   484k|	}
_ZNK4pcpp11SomeIpLayer12getServiceIDEv:
  137|  3.34k|	{
  138|       |		return be16toh(getSomeIpHeader()->serviceID);
  139|  3.34k|	}
_ZNK4pcpp11SomeIpLayer11getMethodIDEv:
  147|  3.34k|	{
  148|       |		return be16toh(getSomeIpHeader()->methodID);
  149|  3.34k|	}
_ZNK4pcpp11SomeIpLayer14getLengthFieldEv:
  157|  45.9k|	{
  158|       |		return be32toh(getSomeIpHeader()->length);
  159|  45.9k|	}
_ZNK4pcpp11SomeIpLayer19getMessageTypeAsIntEv:
  226|    376|	{
  227|    376|		return getSomeIpHeader()->msgType;
  228|    376|	}
_ZN4pcpp11SomeIpLayer14setMessageTypeEh:
  236|    376|	{
  237|    376|		getSomeIpHeader()->msgType = type;
  238|    376|	}
_ZN4pcpp11SomeIpLayer14parseNextLayerEv:
  258|  37.3k|	{
  259|  37.3k|		size_t headerLen = getHeaderLen();
  260|  37.3k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (260:7): [True: 13.8k, False: 23.4k]
  ------------------
  261|  13.8k|			return;
  262|       |
  263|  23.4k|		uint8_t* payload = m_Data + headerLen;
  264|  23.4k|		size_t payloadLen = m_DataLen - headerLen;
  265|       |
  266|  23.4k|		constructNextLayerFromFactory(parseSomeIpLayer, payload, payloadLen);
  267|  23.4k|	}
_ZNK4pcpp11SomeIpLayer8toStringEv:
  270|  2.59k|	{
  271|  2.59k|		std::stringstream dataStream;
  272|       |
  273|  2.59k|		dataStream << "SOME/IP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  274|  2.59k|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  275|       |
  276|  2.59k|		return dataStream.str();
  277|  2.59k|	}
_ZN4pcpp13SomeIpTpLayer22computeCalculateFieldsEv:
  410|    376|	{
  411|    376|		setMessageType(setTpFlag(getMessageTypeAsInt()));
  412|    376|	}
_ZNK4pcpp13SomeIpTpLayer8toStringEv:
  415|    752|	{
  416|    752|		std::stringstream dataStream;
  417|       |
  418|    752|		dataStream << "SOME/IP-TP Layer" << std::hex << ", Service ID: 0x" << getServiceID() << ", Method ID: 0x"
  419|    752|		           << getMethodID() << std::dec << ", Length: " << getLengthField();
  420|       |
  421|    752|		return dataStream.str();
  422|    752|	}
_ZN4pcpp13SomeIpTpLayer9setTpFlagEh:
  425|    376|	{
  426|    376|		return messageType | (uint8_t)SomeIpLayer::MsgType::TP_REQUEST;
  427|    376|	}

_ZN4pcpp14SomeIpSdOptionD2Ev:
   15|  4.04k|	{
   16|  4.04k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (16:7): [True: 0, False: 4.04k]
  ------------------
   17|      0|			delete[] m_ShadowData;
   18|  4.04k|	}
_ZNK4pcpp14SomeIpSdOption7getTypeEv:
   21|  2.31k|	{
   22|  2.31k|		return static_cast<OptionType>(getSomeIpSdOptionHeader()->type);
   23|  2.31k|	}
_ZNK4pcpp14SomeIpSdOption10getDataPtrEv:
   26|  7.15k|	{
   27|  7.15k|		if (m_DataContainer != nullptr)
  ------------------
  |  Branch (27:7): [True: 7.15k, False: 0]
  ------------------
   28|  7.15k|			return m_DataContainer->getDataPtr(m_Offset);
   29|       |
   30|      0|		return m_ShadowData;
   31|  7.15k|	}
_ZNK4pcpp14SomeIpSdOption23getSomeIpSdOptionHeaderEv:
   34|  2.73k|	{
   35|  2.73k|		return reinterpret_cast<someipsdhdroptionsbase*>(getDataPtr());
   36|  2.73k|	}
_ZN4pcpp18SomeIpSdIPv4OptionC2EPKNS_14IDataContainerEm:
   76|  1.81k|	    : SomeIpSdOption(dataContainer, offset)
   77|  1.81k|	{
   78|  1.81k|		m_DataLen = sizeof(someipsdhdroptionsipv4);
   79|  1.81k|	}
_ZNK4pcpp18SomeIpSdIPv4Option12getIpAddressEv:
   82|    922|	{
   83|    922|		someipsdhdroptionsipv4* hdr = reinterpret_cast<someipsdhdroptionsipv4*>(getDataPtr());
   84|    922|		IPv4Address ipAddr(hdr->ipv4Address);
   85|       |
   86|    922|		return ipAddr;
   87|    922|	}
_ZNK4pcpp18SomeIpSdIPv4Option7getPortEv:
   90|    922|	{
   91|    922|		someipsdhdroptionsipv4* hdr = reinterpret_cast<someipsdhdroptionsipv4*>(getDataPtr());
   92|       |		return be16toh(hdr->portNumber);
   93|    922|	}
_ZNK4pcpp18SomeIpSdIPv4Option11getProtocolEv:
   96|    922|	{
   97|    922|		someipsdhdroptionsipv4* hdr = reinterpret_cast<someipsdhdroptionsipv4*>(getDataPtr());
   98|    922|		return hdr->l4Protocol;
   99|    922|	}
_ZN4pcpp18SomeIpSdIPv6OptionC2EPKNS_14IDataContainerEm:
  130|    828|	    : SomeIpSdOption(dataContainer, offset)
  131|    828|	{
  132|    828|		m_DataLen = sizeof(someipsdhdroptionsipv6);
  133|    828|	}
_ZNK4pcpp18SomeIpSdIPv6Option12getIpAddressEv:
  136|    552|	{
  137|    552|		someipsdhdroptionsipv6* hdr = reinterpret_cast<someipsdhdroptionsipv6*>(getDataPtr());
  138|    552|		IPv6Address ipAddr(hdr->ipv6Address);
  139|       |
  140|    552|		return ipAddr;
  141|    552|	}
_ZNK4pcpp18SomeIpSdIPv6Option7getPortEv:
  144|    552|	{
  145|    552|		someipsdhdroptionsipv6* hdr = reinterpret_cast<someipsdhdroptionsipv6*>(getDataPtr());
  146|       |		return be16toh(hdr->portNumber);
  147|    552|	}
_ZNK4pcpp18SomeIpSdIPv6Option11getProtocolEv:
  150|    552|	{
  151|    552|		someipsdhdroptionsipv6* hdr = reinterpret_cast<someipsdhdroptionsipv6*>(getDataPtr());
  152|    552|		return hdr->l4Protocol;
  153|    552|	}
_ZN4pcpp27SomeIpSdConfigurationOptionC2EPKNS_14IDataContainerEm:
  169|    415|	    : SomeIpSdOption(dataContainer, offset)
  170|    415|	{
  171|       |		m_DataLen = sizeof(someipsdhdroptionsbase) - 1 + be16toh(getSomeIpSdOptionHeader()->length);
  172|    415|	}
_ZN4pcpp27SomeIpSdLoadBalancingOptionC2EPKNS_14IDataContainerEm:
  196|    985|	    : SomeIpSdOption(dataContainer, offset)
  197|    985|	{
  198|    985|		m_DataLen = sizeof(someipsdhdroptionsload);
  199|    985|	}
_ZN4pcpp13SomeIpSdEntryC2EPKNS_13SomeIpSdLayerEm:
  231|  3.59k|	    : m_Layer(pSomeIpSdLayer), m_Offset(offset), m_ShadowData(nullptr)
  232|  3.59k|	{
  233|  3.59k|		EntryType entryType;
  234|       |
  235|  3.59k|		someipsdhdrentry* hdr = getSomeIpSdEntryHeader();
  236|  3.59k|		TypeInternal internalType = static_cast<TypeInternal>(hdr->type);
  237|  3.59k|		auto ttl = getTtl();
  238|       |
  239|  3.59k|		switch (internalType)
  240|  3.59k|		{
  241|    367|		case SomeIpSdEntry::TypeInternal::FindService_Internal:
  ------------------
  |  Branch (241:3): [True: 367, False: 3.22k]
  ------------------
  242|    367|			entryType = SomeIpSdEntry::EntryType::FindService;
  243|    367|			break;
  244|  2.15k|		case SomeIpSdEntry::TypeInternal::OfferService_Internal:
  ------------------
  |  Branch (244:3): [True: 2.15k, False: 1.43k]
  ------------------
  245|  2.15k|			if (ttl == 0)
  ------------------
  |  Branch (245:8): [True: 538, False: 1.61k]
  ------------------
  246|    538|			{
  247|    538|				entryType = EntryType::StopOfferService;
  248|    538|			}
  249|  1.61k|			else
  250|  1.61k|			{
  251|  1.61k|				entryType = EntryType::OfferService;
  252|  1.61k|			}
  253|  2.15k|			break;
  254|     10|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroup_Internal:
  ------------------
  |  Branch (254:3): [True: 10, False: 3.58k]
  ------------------
  255|     10|			if (ttl == 0)
  ------------------
  |  Branch (255:8): [True: 3, False: 7]
  ------------------
  256|      3|			{
  257|      3|				entryType = EntryType::StopSubscribeEventgroup;
  258|      3|			}
  259|      7|			else
  260|      7|			{
  261|      7|				entryType = EntryType::SubscribeEventgroup;
  262|      7|			}
  263|     10|			break;
  264|    328|		case SomeIpSdEntry::TypeInternal::SubscribeEventgroupAck_Internal:
  ------------------
  |  Branch (264:3): [True: 328, False: 3.26k]
  ------------------
  265|    328|			if (ttl == 0)
  ------------------
  |  Branch (265:8): [True: 111, False: 217]
  ------------------
  266|    111|			{
  267|    111|				entryType = EntryType::SubscribeEventgroupNack;
  268|    111|			}
  269|    217|			else
  270|    217|			{
  271|    217|				entryType = EntryType::SubscribeEventgroupAck;
  272|    217|			}
  273|    328|			break;
  274|    732|		default:
  ------------------
  |  Branch (274:3): [True: 732, False: 2.86k]
  ------------------
  275|    732|			entryType = EntryType::UnknownEntryType;
  276|    732|			break;
  277|  3.59k|		}
  278|       |
  279|  3.59k|		m_EntryType = entryType;
  280|  3.59k|	}
_ZN4pcpp13SomeIpSdEntryD2Ev:
  283|  3.59k|	{
  284|  3.59k|		if (m_ShadowData != nullptr)
  ------------------
  |  Branch (284:7): [True: 0, False: 3.59k]
  ------------------
  285|      0|			delete[] m_ShadowData;
  286|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry10getDataPtrEv:
  289|  32.3k|	{
  290|  32.3k|		if (m_Layer != nullptr)
  ------------------
  |  Branch (290:7): [True: 32.3k, False: 0]
  ------------------
  291|  32.3k|			return m_Layer->getDataPtr(m_Offset);
  292|       |
  293|      0|		return m_ShadowData;
  294|  32.3k|	}
_ZNK4pcpp13SomeIpSdEntry22getSomeIpSdEntryHeaderEv:
  297|  32.3k|	{
  298|  32.3k|		return reinterpret_cast<someipsdhdrentry*>(getDataPtr());
  299|  32.3k|	}
_ZNK4pcpp13SomeIpSdEntry13getNumOptionsEv:
  302|  3.59k|	{
  303|  3.59k|		auto* hdr = getSomeIpSdEntryHeader();
  304|  3.59k|		return hdr->nrOpt1 + hdr->nrOpt2;
  305|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry12getServiceIdEv:
  308|  3.59k|	{
  309|       |		return be16toh(getSomeIpSdEntryHeader()->serviceID);
  310|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry13getInstanceIdEv:
  318|  3.59k|	{
  319|       |		return be16toh(getSomeIpSdEntryHeader()->instanceID);
  320|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry15getMajorVersionEv:
  328|  3.59k|	{
  329|       |		return (be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & ~SOMEIPSD_HDR_ENTRY_MASK_TTL) >> 24;
  330|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry6getTtlEv:
  340|  3.59k|	{
  341|       |		return be32toh(getSomeIpSdEntryHeader()->majorVersion_ttl) & SOMEIPSD_HDR_ENTRY_MASK_TTL;
  342|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry15getMinorVersionEv:
  353|  3.59k|	{
  354|       |		return be32toh(getSomeIpSdEntryHeader()->data);
  355|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry10getCounterEv:
  363|  3.59k|	{
  364|       |		return static_cast<uint8_t>((be32toh(getSomeIpSdEntryHeader()->data) >> 16) & 0x0F);
  365|  3.59k|	}
_ZNK4pcpp13SomeIpSdEntry15getEventgroupIdEv:
  374|  3.59k|	{
  375|       |		return static_cast<uint16_t>(be32toh(getSomeIpSdEntryHeader()->data) & 0x0000FFFF);
  376|  3.59k|	}
_ZN4pcpp13SomeIpSdLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  434|  24.7k|	    : SomeIpLayer(data, dataLen, prevLayer, packet)
  435|  24.7k|	{
  436|  24.7k|		countOptions(m_NumOptions, data);
  437|  24.7k|	}
_ZNK4pcpp13SomeIpSdLayer8getFlagsEv:
  460|  3.62k|	{
  461|  3.62k|		someipsdhdr* hdr = reinterpret_cast<someipsdhdr*>(m_Data);
  462|  3.62k|		return hdr->flags;
  463|  3.62k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumEntriesEv:
  472|  10.8k|	{
  473|  10.8k|		return static_cast<uint32_t>(getLenEntries() / sizeof(SomeIpSdEntry::someipsdhdrentry));
  474|  10.8k|	}
_ZNK4pcpp13SomeIpSdLayer13getNumOptionsEv:
  477|  7.25k|	{
  478|  7.25k|		return m_NumOptions;
  479|  7.25k|	}
_ZNK4pcpp13SomeIpSdLayer10getEntriesEv:
  482|  3.62k|	{
  483|  3.62k|		size_t remainingLen = getLenEntries();
  484|  3.62k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t);
  485|       |
  486|  3.62k|		EntriesVec vecEntries;
  487|  3.62k|		EntryPtr entry;
  488|       |
  489|  7.22k|		while (remainingLen > 0)
  ------------------
  |  Branch (489:10): [True: 3.71k, False: 3.50k]
  ------------------
  490|  3.71k|		{
  491|       |			// Ensure there is enough remaining length for a new entry
  492|  3.71k|			if (remainingLen < sizeof(SomeIpSdEntry::someipsdhdrentry))
  ------------------
  |  Branch (492:8): [True: 124, False: 3.59k]
  ------------------
  493|    124|			{
  494|    124|				break;
  495|    124|			}
  496|  3.59k|			entry = new SomeIpSdEntry(this, offset);
  497|       |
  498|  3.59k|			size_t entryLen = entry->getLength();
  499|  3.59k|			remainingLen -= entryLen;
  500|  3.59k|			offset += entryLen;
  501|       |
  502|  3.59k|			vecEntries.push_back(entry);
  503|  3.59k|		}
  504|       |
  505|  3.62k|		return vecEntries;
  506|  3.62k|	};
_ZNK4pcpp13SomeIpSdLayer10getOptionsEv:
  509|  3.62k|	{
  510|  3.62k|		OptionsVec vecOptions;
  511|  3.62k|		OptionPtr option;
  512|       |
  513|  3.62k|		size_t remainingLen = getLenOptions();
  514|  3.62k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  515|       |
  516|  7.23k|		while (remainingLen > 0)
  ------------------
  |  Branch (516:10): [True: 3.60k, False: 3.62k]
  ------------------
  517|  3.60k|		{
  518|  3.60k|			SomeIpSdOption::someipsdhdroptionsbase* hdr =
  519|  3.60k|			    reinterpret_cast<SomeIpSdOption::someipsdhdroptionsbase*>(m_Data + offset);
  520|  3.60k|			SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdr->type);
  521|       |
  522|  3.60k|			option = parseOption(optionType, offset, remainingLen);
  523|       |
  524|  3.60k|			if (option != nullptr)
  ------------------
  |  Branch (524:8): [True: 2.31k, False: 1.29k]
  ------------------
  525|  2.31k|			{
  526|  2.31k|				vecOptions.push_back(std::move(option));
  527|  2.31k|			}
  528|       |
  529|  3.60k|			size_t optionLen = be16toh(hdr->length) + 3;
  530|  3.60k|			remainingLen -= optionLen;
  531|  3.60k|			offset += optionLen;
  532|  3.60k|		}
  533|       |
  534|  3.62k|		return vecOptions;
  535|  3.62k|	}
_ZNK4pcpp13SomeIpSdLayer19getOptionsFromEntryEj:
  538|  3.55k|	{
  539|  3.55k|		OptionsVec vecOptions;
  540|  3.55k|		OptionPtr option;
  541|       |
  542|  3.55k|		if (index >= getNumEntries())
  ------------------
  |  Branch (542:7): [True: 0, False: 3.55k]
  ------------------
  543|      0|			return vecOptions;
  544|       |
  545|  3.55k|		size_t remainingLen = getLenOptions();
  546|  3.55k|		size_t offset = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries() + sizeof(uint32_t);
  547|       |
  548|  3.55k|		size_t offsetToEntry = sizeof(someipsdhdr) + sizeof(uint32_t) + index * sizeof(SomeIpSdEntry::someipsdhdrentry);
  549|  3.55k|		SomeIpSdEntry::someipsdhdrentry* hdrEntry =
  550|  3.55k|		    reinterpret_cast<SomeIpSdEntry::someipsdhdrentry*>(m_Data + offsetToEntry);
  551|  3.55k|		uint8_t startIdxRun1 = hdrEntry->indexFirstOption;
  552|  3.55k|		uint8_t lenRun1 = hdrEntry->nrOpt1;
  553|  3.55k|		uint8_t startIdxRun2 = hdrEntry->indexSecondOption;
  554|  3.55k|		uint8_t lenRun2 = hdrEntry->nrOpt2;
  555|       |
  556|  3.55k|		int idx = 0;
  557|       |
  558|  7.16k|		while (remainingLen > 0)
  ------------------
  |  Branch (558:10): [True: 3.60k, False: 3.55k]
  ------------------
  559|  3.60k|		{
  560|  3.60k|			SomeIpSdOption::someipsdhdroptionsbase* hdrOption =
  561|  3.60k|			    reinterpret_cast<SomeIpSdOption::someipsdhdroptionsbase*>(m_Data + offset);
  562|       |
  563|  3.60k|			if (((idx >= startIdxRun1) && (idx < (startIdxRun1 + lenRun1))) ||
  ------------------
  |  Branch (563:9): [True: 2.18k, False: 1.42k]
  |  Branch (563:34): [True: 1.96k, False: 221]
  ------------------
  564|  1.64k|			    ((idx >= startIdxRun2) && (idx < (startIdxRun2 + lenRun2))))
  ------------------
  |  Branch (564:9): [True: 710, False: 938]
  |  Branch (564:34): [True: 290, False: 420]
  ------------------
  565|  2.25k|			{
  566|  2.25k|				SomeIpSdOption::OptionType optionType = static_cast<SomeIpSdOption::OptionType>(hdrOption->type);
  567|       |
  568|  2.25k|				option = parseOption(optionType, offset, remainingLen);
  569|       |
  570|  2.25k|				if (option != nullptr)
  ------------------
  |  Branch (570:9): [True: 1.72k, False: 525]
  ------------------
  571|  1.72k|				{
  572|  1.72k|					vecOptions.push_back(std::move(option));
  573|  1.72k|				}
  574|  2.25k|			}
  575|       |
  576|  3.60k|			size_t optionLen = be16toh(hdrOption->length) + 3;
  577|  3.60k|			remainingLen -= optionLen;
  578|  3.60k|			offset += optionLen;
  579|  3.60k|			++idx;
  580|  3.60k|		}
  581|       |
  582|  3.55k|		return vecOptions;
  583|  3.55k|	}
_ZNK4pcpp13SomeIpSdLayer8toStringEv:
  609|  7.25k|	{
  610|  7.25k|		std::stringstream dataStream;
  611|       |
  612|  7.25k|		dataStream << "SOME/IP-SD Layer, " << getNumEntries() << " entries, " << getNumOptions() << " options";
  613|       |
  614|  7.25k|		return dataStream.str();
  615|  7.25k|	}
_ZN4pcpp13SomeIpSdLayer11isDataValidEPKhm:
  832|  31.9k|	{
  833|  31.9k|		uint32_t count;
  834|  31.9k|		if (!data || dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
  ------------------
  |  Branch (834:7): [True: 0, False: 31.9k]
  |  Branch (834:16): [True: 0, False: 31.9k]
  ------------------
  835|  31.9k|		    dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
  ------------------
  |  Branch (835:7): [True: 2.87k, False: 29.1k]
  ------------------
  836|  29.1k|		    dataLen <
  ------------------
  |  Branch (836:7): [True: 731, False: 28.3k]
  ------------------
  837|  29.1k|		        sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) + getLenOptions(data) ||
  838|  28.3k|		    !countOptions(count, data))
  ------------------
  |  Branch (838:7): [True: 3.68k, False: 24.7k]
  ------------------
  839|  7.28k|		{
  840|  7.28k|			return false;
  841|  7.28k|		}
  842|       |
  843|  24.7k|		return true;
  844|  31.9k|	}
_ZN4pcpp13SomeIpSdLayer12countOptionsERjPKh:
  847|  53.0k|	{
  848|  53.0k|		size_t offsetOption = sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t);
  849|  53.0k|		size_t lenOptions = getLenOptions(data);
  850|  53.0k|		uint32_t len = 0;
  851|       |
  852|  53.0k|		count = 0;
  853|   100k|		while (len < lenOptions)
  ------------------
  |  Branch (853:10): [True: 51.4k, False: 49.4k]
  ------------------
  854|  51.4k|		{
  855|  51.4k|			if (len + sizeof(uint16_t) + 3 * sizeof(uint8_t) > lenOptions)
  ------------------
  |  Branch (855:8): [True: 80, False: 51.3k]
  ------------------
  856|     80|				return false;
  857|       |
  858|  51.3k|			uint32_t lenOption =
  859|  51.3k|			    be16toh(*(reinterpret_cast<uint16_t const*>(data + offsetOption + len))) + 3 * sizeof(uint8_t);
  860|  51.3k|			len += lenOption;
  861|  51.3k|			if (len > lenOptions)  // the last one must be equal to lenOptions
  ------------------
  |  Branch (861:8): [True: 3.60k, False: 47.7k]
  ------------------
  862|  3.60k|				return false;
  863|       |
  864|  47.7k|			++(count);
  865|  47.7k|		}
  866|  49.4k|		return true;
  867|  53.0k|	}
_ZNK4pcpp13SomeIpSdLayer11parseOptionENS_14SomeIpSdOption10OptionTypeEmm:
  960|  5.85k|	{
  961|  5.85k|		switch (type)
  962|  5.85k|		{
  963|  1.19k|		case SomeIpSdOption::OptionType::IPv4Endpoint:
  ------------------
  |  Branch (963:3): [True: 1.19k, False: 4.66k]
  ------------------
  964|  1.40k|		case SomeIpSdOption::OptionType::IPv4Multicast:
  ------------------
  |  Branch (964:3): [True: 208, False: 5.65k]
  ------------------
  965|  1.81k|		case SomeIpSdOption::OptionType::IPv4SdEndpoint:
  ------------------
  |  Branch (965:3): [True: 413, False: 5.44k]
  ------------------
  966|  1.81k|		{
  967|  1.81k|			if (SomeIpSdIPv4Option::isDataValid(this, remainingLength))
  ------------------
  |  Branch (967:8): [True: 1.81k, False: 0]
  ------------------
  968|  1.81k|			{
  969|  1.81k|				return new SomeIpSdIPv4Option(this, offset);
  970|  1.81k|			}
  971|      0|			return nullptr;
  972|  1.81k|		}
  973|     84|		case SomeIpSdOption::OptionType::IPv6Endpoint:
  ------------------
  |  Branch (973:3): [True: 84, False: 5.77k]
  ------------------
  974|    428|		case SomeIpSdOption::OptionType::IPv6Multicast:
  ------------------
  |  Branch (974:3): [True: 344, False: 5.51k]
  ------------------
  975|    894|		case SomeIpSdOption::OptionType::IPv6SdEndpoint:
  ------------------
  |  Branch (975:3): [True: 466, False: 5.39k]
  ------------------
  976|    894|		{
  977|    894|			if (SomeIpSdIPv6Option::isDataValid(this, remainingLength))
  ------------------
  |  Branch (977:8): [True: 828, False: 66]
  ------------------
  978|    828|			{
  979|    828|				return new SomeIpSdIPv6Option(this, offset);
  980|    828|			}
  981|     66|			return nullptr;
  982|    894|		}
  983|    415|		case SomeIpSdOption::OptionType::ConfigurationString:
  ------------------
  |  Branch (983:3): [True: 415, False: 5.44k]
  ------------------
  984|    415|		{
  985|    415|			if (SomeIpSdConfigurationOption::isDataValid(this, remainingLength))
  ------------------
  |  Branch (985:8): [True: 415, False: 0]
  ------------------
  986|    415|			{
  987|    415|				return new SomeIpSdConfigurationOption(this, offset);
  988|    415|			}
  989|      0|			return nullptr;
  990|    415|		}
  991|    985|		case SomeIpSdOption::OptionType::LoadBalancing:
  ------------------
  |  Branch (991:3): [True: 985, False: 4.87k]
  ------------------
  992|    985|		{
  993|    985|			if (SomeIpSdLoadBalancingOption::isDataValid(this, remainingLength))
  ------------------
  |  Branch (993:8): [True: 985, False: 0]
  ------------------
  994|    985|			{
  995|    985|				return new SomeIpSdLoadBalancingOption(this, offset);
  996|    985|			}
  997|      0|			return nullptr;
  998|    985|		}
  999|  1.74k|		default:
  ------------------
  |  Branch (999:3): [True: 1.74k, False: 4.10k]
  ------------------
 1000|  1.74k|			break;
 1001|  5.85k|		}
 1002|  1.74k|		return nullptr;
 1003|  5.85k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenEntriesEv:
 1006|  21.6k|	{
 1007|  21.6k|		return getLenEntries(m_Data);
 1008|  21.6k|	}
_ZN4pcpp13SomeIpSdLayer13getLenEntriesEPKh:
 1011|   225k|	{
 1012|       |		return be32toh(*(reinterpret_cast<const uint32_t*>(data + sizeof(someipsdhdr))));
 1013|   225k|	}
_ZNK4pcpp13SomeIpSdLayer13getLenOptionsEv:
 1016|  7.18k|	{
 1017|  7.18k|		return getLenOptions(m_Data);
 1018|  7.18k|	}
_ZN4pcpp13SomeIpSdLayer13getLenOptionsEPKh:
 1021|  89.3k|	{
 1022|       |		return be32toh(
 1023|  89.3k|		    *(reinterpret_cast<const uint32_t*>(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data))));
 1024|  89.3k|	}

_ZN4pcpp8StpLayer11isDataValidEPKhm:
  150|     22|	{
  151|     22|		return data && dataLen;
  ------------------
  |  Branch (151:10): [True: 22, False: 0]
  |  Branch (151:18): [True: 22, False: 0]
  ------------------
  152|     22|	}
_ZN4pcpp8StpLayer13parseStpLayerEPhmPNS_5LayerEPNS_6PacketE:
  155|     22|	{
  156|     22|		if (dataLen >= sizeof(stp_tcn_bpdu))
  ------------------
  |  Branch (156:7): [True: 18, False: 4]
  ------------------
  157|     18|		{
  158|     18|			stp_tcn_bpdu* ptr = reinterpret_cast<stp_tcn_bpdu*>(data);
  159|     18|			switch (ptr->type)
  160|     18|			{
  161|     14|			case 0x00:
  ------------------
  |  Branch (161:4): [True: 14, False: 4]
  ------------------
  162|     14|				return StpConfigurationBPDULayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (162:12): [True: 10, False: 4]
  ------------------
  163|     14|				           ? new StpConfigurationBPDULayer(data, dataLen, prevLayer, packet)
  164|     14|				           : nullptr;
  165|      0|			case 0x02:
  ------------------
  |  Branch (165:4): [True: 0, False: 18]
  ------------------
  166|      0|				if (ptr->version == 0x2)
  ------------------
  |  Branch (166:9): [True: 0, False: 0]
  ------------------
  167|      0|					return RapidStpLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (167:13): [True: 0, False: 0]
  ------------------
  168|      0|					           ? new RapidStpLayer(data, dataLen, prevLayer, packet)
  169|      0|					           : nullptr;
  170|      0|				if (ptr->version == 0x3)
  ------------------
  |  Branch (170:9): [True: 0, False: 0]
  ------------------
  171|      0|					return MultipleStpLayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (171:13): [True: 0, False: 0]
  ------------------
  172|      0|					           ? new MultipleStpLayer(data, dataLen, prevLayer, packet)
  173|      0|					           : nullptr;
  174|      0|				PCPP_LOG_DEBUG("Unknown Spanning Tree Version");
  ------------------
  |  |  427|      0|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  175|      0|				return nullptr;
  176|      0|			case 0x80:
  ------------------
  |  Branch (176:4): [True: 0, False: 18]
  ------------------
  177|      0|				return StpTopologyChangeBPDULayer::isDataValid(data, dataLen)
  ------------------
  |  Branch (177:12): [True: 0, False: 0]
  ------------------
  178|      0|				           ? new StpTopologyChangeBPDULayer(data, dataLen, prevLayer, packet)
  179|      0|				           : nullptr;
  180|       |			// TODO: Per VLAN Spanning Tree+ (PVST+)
  181|       |			// TODO: Rapid Per VLAN Spanning Tree+ (RPVST+)
  182|       |			// TODO: Cisco Uplink Fast
  183|      4|			default:
  ------------------
  |  Branch (183:4): [True: 4, False: 14]
  ------------------
  184|      4|				PCPP_LOG_DEBUG("Unknown Spanning Tree Protocol type");
  ------------------
  |  |  427|      4|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      4|	do                                                                                                                 \
  |  |  |  |  415|      4|	{                                                                                                                  \
  |  |  |  |  416|      4|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      4|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      4|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  |  |  418|      4|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      4|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  185|      4|				return nullptr;
  186|     18|			}
  187|     18|		}
  188|       |
  189|      4|		PCPP_LOG_DEBUG("Data length is less than any STP header");
  ------------------
  |  |  427|      4|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|      4|	do                                                                                                                 \
  |  |  |  |  415|      4|	{                                                                                                                  \
  |  |  |  |  416|      4|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      4|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      4|#define LOG_MODULE PacketLogModuleStpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  |  |  418|      4|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      4|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|      4|		return nullptr;
  191|     22|	}
_ZN4pcpp25StpConfigurationBPDULayer14parseNextLayerEv:
  350|     10|	{
  351|     10|		if (m_DataLen > sizeof(stp_conf_bpdu))
  ------------------
  |  Branch (351:7): [True: 6, False: 4]
  ------------------
  352|      6|		{
  353|      6|			constructNextLayer<PayloadLayer>(m_Data, m_DataLen - sizeof(stp_conf_bpdu));
  354|      6|		}
  355|     10|	}

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

_ZN4pcpp16TcpOptionBuilderC2ENS0_20NopEolOptionEnumTypeE:
  112|   104k|	{
  113|   104k|		switch (optionType)
  114|   104k|		{
  115|      0|		case NopEolOptionEnumType::Eol:
  ------------------
  |  Branch (115:3): [True: 0, False: 104k]
  ------------------
  116|      0|			init(static_cast<uint8_t>(TcpOptionEnumType::Eol), nullptr, 0);
  117|      0|			break;
  118|   104k|		case NopEolOptionEnumType::Nop:
  ------------------
  |  Branch (118:3): [True: 104k, False: 0]
  ------------------
  119|   104k|		default:
  ------------------
  |  Branch (119:3): [True: 0, False: 104k]
  ------------------
  120|   104k|			init(static_cast<uint8_t>(TcpOptionEnumType::Nop), nullptr, 0);
  121|   104k|			break;
  122|   104k|		}
  123|   104k|	}
_ZNK4pcpp16TcpOptionBuilder5buildEv:
  126|  63.9k|	{
  127|  63.9k|		uint8_t recType = static_cast<uint8_t>(m_RecType);
  128|  63.9k|		size_t optionSize = m_RecValueLen + 2 * sizeof(uint8_t);
  129|       |
  130|  63.9k|		if (recType == static_cast<uint8_t>(TcpOptionEnumType::Eol) ||
  ------------------
  |  Branch (130:7): [True: 0, False: 63.9k]
  ------------------
  131|  63.9k|		    recType == static_cast<uint8_t>(TcpOptionEnumType::Nop))
  ------------------
  |  Branch (131:7): [True: 63.9k, False: 0]
  ------------------
  132|  63.9k|		{
  133|  63.9k|			if (m_RecValueLen != 0)
  ------------------
  |  Branch (133:8): [True: 0, False: 63.9k]
  ------------------
  134|      0|			{
  135|      0|				PCPP_LOG_ERROR(
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|      0|				    "TCP NOP and TCP EOL options are 1-byte long and don't have option value. Tried to set option value of size "
  137|      0|				    << m_RecValueLen);
  138|      0|				return TcpOption(nullptr);
  139|      0|			}
  140|       |
  141|  63.9k|			optionSize = 1;
  142|  63.9k|		}
  143|       |
  144|  63.9k|		uint8_t* recordBuffer = new uint8_t[optionSize];
  145|  63.9k|		memset(recordBuffer, 0, optionSize);
  146|  63.9k|		recordBuffer[0] = recType;
  147|  63.9k|		if (optionSize > 1)
  ------------------
  |  Branch (147:7): [True: 0, False: 63.9k]
  ------------------
  148|      0|		{
  149|      0|			recordBuffer[1] = static_cast<uint8_t>(optionSize);
  150|      0|			if (optionSize > 2 && m_RecValue != nullptr)
  ------------------
  |  Branch (150:8): [True: 0, False: 0]
  |  Branch (150:26): [True: 0, False: 0]
  ------------------
  151|      0|				memcpy(recordBuffer + 2, m_RecValue, m_RecValueLen);
  152|      0|		}
  153|       |
  154|  63.9k|		return TcpOption(recordBuffer);
  155|  63.9k|	}
_ZNK4pcpp8TcpLayer10getSrcPortEv:
  162|   697k|	{
  163|       |		return be16toh(getTcpHeader()->portSrc);
  164|   697k|	}
_ZNK4pcpp8TcpLayer10getDstPortEv:
  167|   697k|	{
  168|       |		return be16toh(getTcpHeader()->portDst);
  169|   697k|	}
_ZNK4pcpp8TcpLayer12getTcpOptionENS_17TcpOptionEnumTypeE:
  172|   104k|	{
  173|   104k|		return m_OptionReader.getTLVRecord(static_cast<uint8_t>(option), getOptionsBasePtr(),
  174|   104k|		                                   getHeaderLen() - sizeof(tcphdr));
  175|   104k|	}
_ZNK4pcpp8TcpLayer17getFirstTcpOptionEv:
  178|  63.9k|	{
  179|  63.9k|		return m_OptionReader.getFirstTLVRecord(getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  180|  63.9k|	}
_ZNK4pcpp8TcpLayer16getNextTcpOptionERNS_9TcpOptionE:
  183|   204k|	{
  184|   204k|		TcpOption nextOpt =
  185|   204k|		    m_OptionReader.getNextTLVRecord(tcpOption, getOptionsBasePtr(), getHeaderLen() - sizeof(tcphdr));
  186|   204k|		if (nextOpt.isNotNull() && nextOpt.getType() == TcpOptionDummy)
  ------------------
  |  Branch (186:7): [True: 141k, False: 63.7k]
  |  Branch (186:30): [True: 155, False: 140k]
  ------------------
  187|    155|			return TcpOption(nullptr);
  188|       |
  189|   204k|		return nextOpt;
  190|   204k|	}
_ZN4pcpp8TcpLayer20insertTcpOptionAfterERKNS_16TcpOptionBuilderENS_17TcpOptionEnumTypeE:
  204|   104k|	{
  205|   104k|		int offset = 0;
  206|       |
  207|   104k|		if (prevOptionType == TcpOptionEnumType::Unknown)
  ------------------
  |  Branch (207:7): [True: 0, False: 104k]
  ------------------
  208|      0|		{
  209|      0|			offset = sizeof(tcphdr);
  210|      0|		}
  211|   104k|		else
  212|   104k|		{
  213|   104k|			const TcpOption prevOpt = getTcpOption(prevOptionType);
  214|   104k|			if (prevOpt.isNull())
  ------------------
  |  Branch (214:8): [True: 40.0k, False: 63.9k]
  ------------------
  215|  40.0k|			{
  216|  40.0k|				PCPP_LOG_ERROR("Previous option of type " << static_cast<int>(prevOptionType)
  ------------------
  |  |  445|  40.0k|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|  40.0k|	do                                                                                                                 \
  |  |  |  |  415|  40.0k|	{                                                                                                                  \
  |  |  |  |  416|  40.0k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  40.0k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  40.0k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 40.0k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|  40.0k|		{                                                                                                              \
  |  |  |  |  419|  40.0k|			auto ctx =                                                                                                 \
  |  |  |  |  420|  40.0k|			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  40.0k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |               			    logger.createLogContext(level, pcpp::LogSource(LOG_MODULE, PCAPPP_FILENAME, __FUNCTION__, __LINE__));  \
  |  |  |  |  ------------------
  |  |  |  |  |  |   20|       |#	define PCAPPP_FILENAME __FILE_NAME__
  |  |  |  |  ------------------
  |  |  |  |  421|  40.0k|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|  40.0k|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|  40.0k|		}                                                                                                              \
  |  |  |  |  424|  40.0k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 40.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|  40.0k|				                                          << " not found, cannot add a new TCP option");
  218|  40.0k|				return TcpOption(nullptr);
  219|  40.0k|			}
  220|       |
  221|  63.9k|			offset = prevOpt.getRecordBasePtr() + prevOpt.getTotalSize() - m_Data;
  222|  63.9k|		}
  223|       |
  224|  63.9k|		return addTcpOptionAt(optionBuilder, offset);
  225|   104k|	}
_ZN4pcpp8TcpLayer14addTcpOptionAtERKNS_16TcpOptionBuilderEi:
  273|  63.9k|	{
  274|  63.9k|		TcpOption newOption = optionBuilder.build();
  275|  63.9k|		if (newOption.isNull())
  ------------------
  |  Branch (275:7): [True: 0, False: 63.9k]
  ------------------
  276|      0|			return newOption;
  277|       |
  278|       |		// calculate total TCP option size
  279|  63.9k|		TcpOption curOpt = getFirstTcpOption();
  280|  63.9k|		size_t totalOptSize = 0;
  281|   268k|		while (!curOpt.isNull())
  ------------------
  |  Branch (281:10): [True: 204k, False: 63.9k]
  ------------------
  282|   204k|		{
  283|   204k|			totalOptSize += curOpt.getTotalSize();
  284|   204k|			curOpt = getNextTcpOption(curOpt);
  285|   204k|		}
  286|  63.9k|		totalOptSize += newOption.getTotalSize();
  287|       |
  288|  63.9k|		size_t sizeToExtend = newOption.getTotalSize();
  289|       |
  290|  63.9k|		if (!extendLayer(offset, sizeToExtend))
  ------------------
  |  Branch (290:7): [True: 0, False: 63.9k]
  ------------------
  291|      0|		{
  292|      0|			PCPP_LOG_ERROR("Could not extend TcpLayer in [" << sizeToExtend << "] bytes");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|      0|			newOption.purgeRecordData();
  294|      0|			return TcpOption(nullptr);
  295|      0|		}
  296|       |
  297|  63.9k|		memcpy(m_Data + offset, newOption.getRecordBasePtr(), newOption.getTotalSize());
  298|       |
  299|  63.9k|		newOption.purgeRecordData();
  300|       |
  301|  63.9k|		adjustTcpOptionTrailer(totalOptSize);
  302|       |
  303|  63.9k|		m_OptionReader.changeTLVRecordCount(1);
  304|       |
  305|  63.9k|		uint8_t* newOptPtr = m_Data + offset;
  306|       |
  307|  63.9k|		return TcpOption(newOptPtr);
  308|  63.9k|	}
_ZN4pcpp8TcpLayer22adjustTcpOptionTrailerEm:
  311|  63.9k|	{
  312|  63.9k|		int newNumberOfTrailingBytes = 0;
  313|   223k|		while ((totalOptSize + newNumberOfTrailingBytes) % 4 != 0)
  ------------------
  |  Branch (313:10): [True: 159k, False: 63.9k]
  ------------------
  314|   159k|			newNumberOfTrailingBytes++;
  315|       |
  316|  63.9k|		if (newNumberOfTrailingBytes < m_NumOfTrailingBytes)
  ------------------
  |  Branch (316:7): [True: 0, False: 63.9k]
  ------------------
  317|      0|			shortenLayer(sizeof(tcphdr) + totalOptSize, m_NumOfTrailingBytes - newNumberOfTrailingBytes - 1);
  318|  63.9k|		else if (newNumberOfTrailingBytes > m_NumOfTrailingBytes)
  ------------------
  |  Branch (318:12): [True: 55.5k, False: 8.41k]
  ------------------
  319|  55.5k|			extendLayer(sizeof(tcphdr) + totalOptSize, newNumberOfTrailingBytes - m_NumOfTrailingBytes);
  320|       |
  321|  63.9k|		m_NumOfTrailingBytes = newNumberOfTrailingBytes;
  322|       |
  323|   223k|		for (int i = 0; i < m_NumOfTrailingBytes; i++)
  ------------------
  |  Branch (323:19): [True: 159k, False: 63.9k]
  ------------------
  324|   159k|			m_Data[sizeof(tcphdr) + totalOptSize + i] = TcpOptionDummy;
  325|       |
  326|  63.9k|		getTcpHeader()->dataOffset = (sizeof(tcphdr) + totalOptSize + m_NumOfTrailingBytes) / 4;
  327|  63.9k|	}
_ZN4pcpp8TcpLayer17calculateChecksumEb:
  330|   104k|	{
  331|   104k|		tcphdr* tcpHdr = getTcpHeader();
  332|   104k|		uint16_t checksumRes = 0;
  333|   104k|		const uint16_t currChecksumValue = tcpHdr->headerChecksum;
  334|       |
  335|   104k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (335:7): [True: 104k, False: 0]
  ------------------
  336|   104k|		{
  337|   104k|			tcpHdr->headerChecksum = 0;
  338|   104k|			PCPP_LOG_DEBUG("TCP data len = " << m_DataLen);
  ------------------
  |  |  427|   104k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|   104k|	do                                                                                                                 \
  |  |  |  |  415|   104k|	{                                                                                                                  \
  |  |  |  |  416|   104k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|   104k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|   104k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 104k]
  |  |  |  |  ------------------
  |  |  |  |  418|   104k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|   104k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 104k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  339|       |
  340|   104k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (340:8): [True: 85.8k, False: 18.1k]
  ------------------
  341|  85.8k|			{
  342|  85.8k|				const IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
  343|  85.8k|				const IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
  344|       |
  345|  85.8k|				checksumRes =
  346|  85.8k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  347|  85.8k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  348|       |
  349|  85.8k|				PCPP_LOG_DEBUG("calculated IPv4 TCP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  427|  85.8k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  85.8k|	do                                                                                                                 \
  |  |  |  |  415|  85.8k|	{                                                                                                                  \
  |  |  |  |  416|  85.8k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  85.8k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  85.8k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 85.8k]
  |  |  |  |  ------------------
  |  |  |  |  418|  85.8k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  85.8k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 85.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  350|  85.8k|			}
  351|  18.1k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (351:13): [True: 18.1k, False: 18]
  ------------------
  352|  18.1k|			{
  353|  18.1k|				const IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
  354|  18.1k|				const IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
  355|       |
  356|  18.1k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(tcpHdr), getDataLen(),
  357|  18.1k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_TCP, srcIP, dstIP);
  358|       |
  359|  18.1k|				PCPP_LOG_DEBUG("calculated IPv6 TCP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  427|  18.1k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  18.1k|	do                                                                                                                 \
  |  |  |  |  415|  18.1k|	{                                                                                                                  \
  |  |  |  |  416|  18.1k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  18.1k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  18.1k|#define LOG_MODULE PacketLogModuleTcpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 18.1k]
  |  |  |  |  ------------------
  |  |  |  |  418|  18.1k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  18.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 18.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|  18.1k|			}
  361|   104k|		}
  362|       |
  363|   104k|		if (writeResultToPacket)
  ------------------
  |  Branch (363:7): [True: 104k, False: 0]
  ------------------
  364|   104k|			tcpHdr->headerChecksum = htobe16(checksumRes);
  365|      0|		else
  366|      0|			tcpHdr->headerChecksum = currChecksumValue;
  367|       |
  368|   104k|		return checksumRes;
  369|   104k|	}
_ZN4pcpp8TcpLayerC2EPhmPNS_5LayerEPNS_6PacketE:
  381|   572k|	    : Layer(data, dataLen, prevLayer, packet, TCP)
  382|   572k|	{
  383|   572k|		m_NumOfTrailingBytes = 0;
  384|   572k|	}
_ZN4pcpp8TcpLayer13copyLayerDataERKS0_:
  399|   104k|	{
  400|   104k|		m_OptionReader = other.m_OptionReader;
  401|   104k|		m_NumOfTrailingBytes = other.m_NumOfTrailingBytes;
  402|   104k|	}
_ZN4pcpp8TcpLayerC2ERKS0_:
  404|   104k|	TcpLayer::TcpLayer(const TcpLayer& other) : Layer(other)
  405|   104k|	{
  406|   104k|		copyLayerData(other);
  407|   104k|	}
_ZN4pcpp8TcpLayer14parseNextLayerEv:
  419|   572k|	{
  420|   572k|		const size_t headerLen = getHeaderLen();
  421|   572k|		if (m_DataLen <= headerLen)
  ------------------
  |  Branch (421:7): [True: 83.0k, False: 489k]
  ------------------
  422|  83.0k|			return;
  423|       |
  424|   489k|		uint8_t* payload = m_Data + headerLen;
  425|   489k|		const size_t payloadLen = m_DataLen - headerLen;
  426|   489k|		const uint16_t portDst = getDstPort();
  427|   489k|		const uint16_t portSrc = getSrcPort();
  428|   489k|		const char* payloadChar = reinterpret_cast<const char*>(payload);
  429|       |
  430|   489k|		if (HttpMessage::isHttpPort(portDst) &&
  ------------------
  |  Branch (430:7): [True: 24.5k, False: 464k]
  ------------------
  431|  24.5k|		    HttpRequestFirstLine::parseMethod(payloadChar, payloadLen) != HttpRequestLayer::HttpMethodUnknown)
  ------------------
  |  Branch (431:7): [True: 7.25k, False: 17.2k]
  ------------------
  432|  7.25k|		{
  433|  7.25k|			constructNextLayer<HttpRequestLayer>(payload, payloadLen, getAttachedPacket());
  434|  7.25k|		}
  435|   481k|		else if (HttpMessage::isHttpPort(portSrc) &&
  ------------------
  |  Branch (435:12): [True: 40.6k, False: 441k]
  |  Branch (435:12): [True: 10.8k, False: 471k]
  ------------------
  436|  40.6k|		         HttpResponseFirstLine::parseVersion(payloadChar, payloadLen) != HttpVersion::HttpVersionUnknown &&
  ------------------
  |  Branch (436:12): [True: 12.2k, False: 28.4k]
  ------------------
  437|  12.2k|		         !HttpResponseFirstLine::parseStatusCode(payloadChar, payloadLen).isUnsupportedCode())
  ------------------
  |  Branch (437:12): [True: 10.8k, False: 1.33k]
  ------------------
  438|  10.8k|		{
  439|  10.8k|			constructNextLayer<HttpResponseLayer>(payload, payloadLen, getAttachedPacket());
  440|  10.8k|		}
  441|   471k|		else if (SSLLayer::IsSSLMessage(portSrc, portDst, payload, payloadLen))
  ------------------
  |  Branch (441:12): [True: 137k, False: 333k]
  ------------------
  442|   137k|		{
  443|   137k|			constructNextLayerFromFactory(SSLLayer::createSSLMessage, payload, payloadLen);
  444|   137k|		}
  445|   333k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (445:12): [True: 61, False: 333k]
  |  Branch (445:44): [True: 20, False: 333k]
  ------------------
  446|     81|		{
  447|     81|			if (SipRequestFirstLine::parseMethod(payloadChar, payloadLen) != SipRequestLayer::SipMethodUnknown)
  ------------------
  |  Branch (447:8): [True: 0, False: 81]
  ------------------
  448|      0|			{
  449|      0|				constructNextLayer<SipRequestLayer>(payload, payloadLen, getAttachedPacket());
  450|      0|			}
  451|     81|			else if (SipResponseFirstLine::parseStatusCode(payloadChar, payloadLen) !=
  ------------------
  |  Branch (451:13): [True: 10, False: 71]
  ------------------
  452|     81|			         SipResponseLayer::SipStatusCodeUnknown)
  453|     10|			{
  454|     10|				constructNextLayer<SipResponseLayer>(payload, payloadLen, getAttachedPacket());
  455|     10|			}
  456|     71|			else
  457|     71|			{
  458|     71|				constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  459|     71|			}
  460|     81|		}
  461|   333k|		else if (BgpLayer::isBgpPort(portSrc, portDst))
  ------------------
  |  Branch (461:12): [True: 50.7k, False: 282k]
  ------------------
  462|  50.7k|		{
  463|  50.7k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(BgpLayer::parseBgpLayer, payload, payloadLen);
  464|  50.7k|		}
  465|   282k|		else if (SSHLayer::isSSHPort(portSrc, portDst))
  ------------------
  |  Branch (465:12): [True: 16.5k, False: 266k]
  ------------------
  466|  16.5k|		{
  467|  16.5k|			constructNextLayerFromFactory(SSHLayer::createSSHMessage, payload, payloadLen);
  468|  16.5k|		}
  469|   266k|		else if (DnsLayer::isDataValid(payload, payloadLen, true) &&
  ------------------
  |  Branch (469:12): [True: 228k, False: 37.4k]
  ------------------
  470|   228k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (470:13): [True: 8.36k, False: 220k]
  |  Branch (470:45): [True: 5.36k, False: 215k]
  ------------------
  471|  13.7k|		{
  472|  13.7k|			constructNextLayer<DnsOverTcpLayer>(payload, payloadLen, getAttachedPacket());
  473|  13.7k|		}
  474|   252k|		else if (TelnetLayer::isDataValid(payload, payloadLen) &&
  ------------------
  |  Branch (474:12): [True: 252k, False: 0]
  ------------------
  475|   252k|		         (TelnetLayer::isTelnetPort(portDst) || TelnetLayer::isTelnetPort(portSrc)))
  ------------------
  |  Branch (475:13): [True: 63.3k, False: 189k]
  |  Branch (475:51): [True: 553, False: 188k]
  ------------------
  476|  63.8k|		{
  477|  63.8k|			constructNextLayer<TelnetLayer>(payload, payloadLen, getAttachedPacket());
  478|  63.8k|		}
  479|   188k|		else if (FtpLayer::isFtpPort(portSrc) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (479:12): [True: 10.9k, False: 177k]
  |  Branch (479:44): [True: 10.7k, False: 165]
  ------------------
  480|  10.7k|		{
  481|  10.7k|			constructNextLayer<FtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  482|  10.7k|		}
  483|   178k|		else if (FtpLayer::isFtpPort(portDst) && FtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (483:12): [True: 1.89k, False: 176k]
  |  Branch (483:44): [True: 1.70k, False: 196]
  ------------------
  484|  1.70k|		{
  485|  1.70k|			constructNextLayer<FtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  486|  1.70k|		}
  487|   176k|		else if (FtpLayer::isFtpDataPort(portSrc) || FtpLayer::isFtpDataPort(portDst))
  ------------------
  |  Branch (487:12): [True: 1.00k, False: 175k]
  |  Branch (487:48): [True: 2.45k, False: 172k]
  ------------------
  488|  3.45k|		{
  489|  3.45k|			constructNextLayer<FtpDataLayer>(payload, payloadLen, getAttachedPacket());
  490|  3.45k|		}
  491|   172k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (491:13): [True: 8.35k, False: 164k]
  |  Branch (491:47): [True: 10.3k, False: 154k]
  ------------------
  492|  18.7k|		         (DoIpLayer::isDataValid(payload, payloadLen)))
  ------------------
  |  Branch (492:12): [True: 14.3k, False: 4.36k]
  ------------------
  493|  14.3k|		{
  494|  14.3k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, payload, payloadLen);
  495|  14.3k|		}
  496|   158k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (496:12): [True: 70, False: 158k]
  |  Branch (496:50): [True: 6, False: 158k]
  ------------------
  497|     76|		{
  498|     76|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, payload, payloadLen);
  499|     76|		}
  500|   158k|		else if (TpktLayer::isDataValid(payload, payloadLen) && TpktLayer::isTpktPort(portSrc, portDst))
  ------------------
  |  Branch (500:12): [True: 146k, False: 11.7k]
  |  Branch (500:59): [True: 18.9k, False: 127k]
  ------------------
  501|  18.9k|		{
  502|  18.9k|			constructNextLayer<TpktLayer>(payload, payloadLen, getAttachedPacket());
  503|  18.9k|		}
  504|   139k|		else if (SmtpLayer::isSmtpPort(portSrc) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (504:12): [True: 2.24k, False: 137k]
  |  Branch (504:46): [True: 501, False: 1.74k]
  ------------------
  505|    501|		{
  506|    501|			constructNextLayer<SmtpResponseLayer>(payload, payloadLen, getAttachedPacket());
  507|    501|		}
  508|   138k|		else if (SmtpLayer::isSmtpPort(portDst) && SmtpLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (508:12): [True: 2.31k, False: 136k]
  |  Branch (508:46): [True: 1.11k, False: 1.19k]
  ------------------
  509|  1.11k|		{
  510|  1.11k|			constructNextLayer<SmtpRequestLayer>(payload, payloadLen, getAttachedPacket());
  511|  1.11k|		}
  512|   137k|		else if (LdapLayer::isLdapPort(portDst) || LdapLayer::isLdapPort(portSrc))
  ------------------
  |  Branch (512:12): [True: 15.3k, False: 122k]
  |  Branch (512:46): [True: 31.5k, False: 90.9k]
  ------------------
  513|  46.9k|		{
  514|  46.9k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(LdapLayer::parseLdapMessage, payload,
  515|  46.9k|			                                                           payloadLen);
  516|  46.9k|		}
  517|  90.9k|		else if (PostgresLayer::isPostgresPort(portDst))
  ------------------
  |  Branch (517:12): [True: 2.92k, False: 88.0k]
  ------------------
  518|  2.92k|		{
  519|  2.92k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresFrontendMessages,
  520|  2.92k|			                                                           payload, payloadLen);
  521|  2.92k|		}
  522|  88.0k|		else if (PostgresLayer::isPostgresPort(portSrc))
  ------------------
  |  Branch (522:12): [True: 433, False: 87.5k]
  ------------------
  523|    433|		{
  524|    433|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(PostgresLayer::parsePostgresBackendMessages,
  525|    433|			                                                           payload, payloadLen);
  526|    433|		}
  527|  87.5k|		else if (MySqlLayer::isMySqlPort(portSrc))
  ------------------
  |  Branch (527:12): [True: 1.41k, False: 86.1k]
  ------------------
  528|  1.41k|		{
  529|  1.41k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlServerMessage, payload,
  530|  1.41k|			                                                           payloadLen);
  531|  1.41k|		}
  532|  86.1k|		else if (MySqlLayer::isMySqlPort(portDst))
  ------------------
  |  Branch (532:12): [True: 2.94k, False: 83.2k]
  ------------------
  533|  2.94k|		{
  534|  2.94k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(MySqlLayer::parseMySqlClientMessage, payload,
  535|  2.94k|			                                                           payloadLen);
  536|  2.94k|		}
  537|  83.2k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (537:13): [True: 5, False: 83.2k]
  |  Branch (537:49): [True: 5, False: 83.2k]
  ------------------
  538|     10|		         GtpV2Layer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (538:12): [True: 5, False: 5]
  ------------------
  539|      5|		{
  540|      5|			constructNextLayer<GtpV2Layer>(payload, payloadLen, getAttachedPacket());
  541|      5|		}
  542|  83.2k|		else if (ModbusLayer::isModbusPort(portDst) && ModbusLayer::isDataValid(payload, payloadLen))
  ------------------
  |  Branch (542:12): [True: 1.01k, False: 82.2k]
  |  Branch (542:50): [True: 992, False: 18]
  ------------------
  543|    992|		{
  544|    992|			constructNextLayer<ModbusLayer>(payload, payloadLen, getAttachedPacket());
  545|    992|		}
  546|  82.2k|		else
  547|  82.2k|		{
  548|  82.2k|			constructNextLayer<PayloadLayer>(payload, payloadLen, getAttachedPacket());
  549|  82.2k|		}
  550|   489k|	}
_ZN4pcpp8TcpLayer22computeCalculateFieldsEv:
  553|   104k|	{
  554|   104k|		tcphdr* tcpHdr = getTcpHeader();
  555|       |
  556|   104k|		tcpHdr->dataOffset = getHeaderLen() >> 2;
  557|   104k|		calculateChecksum(true);
  558|   104k|	}
_ZNK4pcpp8TcpLayer8toStringEv:
  561|   208k|	{
  562|   208k|		const tcphdr* hdr = getTcpHeader();
  563|   208k|		std::string result = "TCP Layer, ";
  564|   208k|		if (hdr->synFlag)
  ------------------
  |  Branch (564:7): [True: 18.5k, False: 189k]
  ------------------
  565|  18.5k|		{
  566|  18.5k|			if (hdr->ackFlag)
  ------------------
  |  Branch (566:8): [True: 7.94k, False: 10.5k]
  ------------------
  567|  7.94k|				result += "[SYN, ACK], ";
  568|  10.5k|			else
  569|  10.5k|				result += "[SYN], ";
  570|  18.5k|		}
  571|   189k|		else if (hdr->finFlag)
  ------------------
  |  Branch (571:12): [True: 11.7k, False: 177k]
  ------------------
  572|  11.7k|		{
  573|  11.7k|			if (hdr->ackFlag)
  ------------------
  |  Branch (573:8): [True: 8.47k, False: 3.24k]
  ------------------
  574|  8.47k|				result += "[FIN, ACK], ";
  575|  3.24k|			else
  576|  3.24k|				result += "[FIN], ";
  577|  11.7k|		}
  578|   177k|		else if (hdr->ackFlag)
  ------------------
  |  Branch (578:12): [True: 175k, False: 1.89k]
  ------------------
  579|   175k|			result += "[ACK], ";
  580|       |
  581|   208k|		std::ostringstream srcPortStream;
  582|   208k|		srcPortStream << getSrcPort();
  583|   208k|		std::ostringstream dstPortStream;
  584|   208k|		dstPortStream << getDstPort();
  585|   208k|		result += "Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  586|       |
  587|   208k|		return result;
  588|   208k|	}

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

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

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

_ZNK4pcpp8UdpLayer10getSrcPortEv:
   43|   543k|	{
   44|       |		return be16toh(getUdpHeader()->portSrc);
   45|   543k|	}
_ZNK4pcpp8UdpLayer10getDstPortEv:
   48|   543k|	{
   49|       |		return be16toh(getUdpHeader()->portDst);
   50|   543k|	}
_ZN4pcpp8UdpLayer17calculateChecksumEb:
   53|  63.3k|	{
   54|  63.3k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
   55|  63.3k|		uint16_t checksumRes = 0;
   56|  63.3k|		uint16_t currChecksumValue = udpHdr->headerChecksum;
   57|       |
   58|  63.3k|		if (m_PrevLayer != nullptr)
  ------------------
  |  Branch (58:7): [True: 63.3k, False: 0]
  ------------------
   59|  63.3k|		{
   60|  63.3k|			udpHdr->headerChecksum = 0;
   61|  63.3k|			PCPP_LOG_DEBUG("UDP data len = " << m_DataLen);
  ------------------
  |  |  427|  63.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  63.3k|	do                                                                                                                 \
  |  |  |  |  415|  63.3k|	{                                                                                                                  \
  |  |  |  |  416|  63.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  63.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  63.3k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 63.3k]
  |  |  |  |  ------------------
  |  |  |  |  418|  63.3k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  63.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 63.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   62|       |
   63|  63.3k|			if (m_PrevLayer->getProtocol() == IPv4)
  ------------------
  |  Branch (63:8): [True: 57.3k, False: 5.98k]
  ------------------
   64|  57.3k|			{
   65|  57.3k|				IPv4Address srcIP = static_cast<IPv4Layer*>(m_PrevLayer)->getSrcIPv4Address();
   66|  57.3k|				IPv4Address dstIP = static_cast<IPv4Layer*>(m_PrevLayer)->getDstIPv4Address();
   67|       |
   68|  57.3k|				checksumRes =
   69|  57.3k|				    pcpp::computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(udpHdr), getDataLen(),
   70|  57.3k|				                                   IPAddress::IPv4AddressType, PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   71|       |
   72|  57.3k|				PCPP_LOG_DEBUG("calculated IPv4 UDP checksum = 0x" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  427|  57.3k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  57.3k|	do                                                                                                                 \
  |  |  |  |  415|  57.3k|	{                                                                                                                  \
  |  |  |  |  416|  57.3k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  57.3k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  57.3k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 57.3k]
  |  |  |  |  ------------------
  |  |  |  |  418|  57.3k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  57.3k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 57.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|  57.3k|			}
   74|  5.98k|			else if (m_PrevLayer->getProtocol() == IPv6)
  ------------------
  |  Branch (74:13): [True: 5.98k, False: 1]
  ------------------
   75|  5.98k|			{
   76|  5.98k|				IPv6Address srcIP = static_cast<IPv6Layer*>(m_PrevLayer)->getSrcIPv6Address();
   77|  5.98k|				IPv6Address dstIP = static_cast<IPv6Layer*>(m_PrevLayer)->getDstIPv6Address();
   78|       |
   79|  5.98k|				checksumRes = computePseudoHdrChecksum(reinterpret_cast<uint8_t*>(udpHdr), getDataLen(),
   80|  5.98k|				                                       IPAddress::IPv6AddressType, PACKETPP_IPPROTO_UDP, srcIP, dstIP);
   81|       |
   82|  5.98k|				PCPP_LOG_DEBUG("calculated IPv6 UDP checksum = 0xX" << std::uppercase << std::hex << checksumRes);
  ------------------
  |  |  427|  5.98k|#	define PCPP_LOG_DEBUG(message) PCPP_LOG(pcpp::LogLevel::Debug, message)
  |  |  ------------------
  |  |  |  |  414|  5.98k|	do                                                                                                                 \
  |  |  |  |  415|  5.98k|	{                                                                                                                  \
  |  |  |  |  416|  5.98k|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|  5.98k|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|  5.98k|#define LOG_MODULE PacketLogModuleUdpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 5.98k]
  |  |  |  |  ------------------
  |  |  |  |  418|  5.98k|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|  5.98k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 5.98k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|  5.98k|			}
   84|  63.3k|		}
   85|       |
   86|  63.3k|		if (checksumRes == 0)
  ------------------
  |  Branch (86:7): [True: 37, False: 63.2k]
  ------------------
   87|     37|			checksumRes = 0xffff;
   88|       |
   89|  63.3k|		if (writeResultToPacket)
  ------------------
  |  Branch (89:7): [True: 63.3k, False: 0]
  ------------------
   90|  63.3k|			udpHdr->headerChecksum = htobe16(checksumRes);
   91|      0|		else
   92|      0|			udpHdr->headerChecksum = currChecksumValue;
   93|       |
   94|  63.3k|		return checksumRes;
   95|  63.3k|	}
_ZN4pcpp8UdpLayer14parseNextLayerEv:
   98|   416k|	{
   99|   416k|		if (m_DataLen <= sizeof(udphdr))
  ------------------
  |  Branch (99:7): [True: 72, False: 416k]
  ------------------
  100|     72|			return;
  101|       |
  102|   416k|		uint16_t portDst = getDstPort();
  103|   416k|		uint16_t portSrc = getSrcPort();
  104|       |
  105|   416k|		uint8_t* udpData = m_Data + sizeof(udphdr);
  106|   416k|		size_t udpDataLen = m_DataLen - sizeof(udphdr);
  107|       |
  108|   416k|		if (DhcpLayer::isDhcpPorts(portSrc, portDst))
  ------------------
  |  Branch (108:7): [True: 17.4k, False: 399k]
  ------------------
  109|  17.4k|		{
  110|  17.4k|			tryConstructNextLayerWithFallback<DhcpLayer, PayloadLayer>(udpData, udpDataLen);
  111|  17.4k|		}
  112|   399k|		else if (VxlanLayer::isVxlanPort(portDst))
  ------------------
  |  Branch (112:12): [True: 1.12k, False: 398k]
  ------------------
  113|  1.12k|		{
  114|  1.12k|			tryConstructNextLayerWithFallback<VxlanLayer, PayloadLayer>(udpData, udpDataLen);
  115|  1.12k|		}
  116|   398k|		else if (GeneveLayer::isGenevePort(portDst))
  ------------------
  |  Branch (116:12): [True: 0, False: 398k]
  ------------------
  117|      0|		{
  118|      0|			tryConstructNextLayerWithFallback<GeneveLayer, PayloadLayer>(udpData, udpDataLen);
  119|      0|		}
  120|   398k|		else if (DnsLayer::isDataValid(udpData, udpDataLen) &&
  ------------------
  |  Branch (120:12): [True: 353k, False: 44.9k]
  ------------------
  121|   353k|		         (DnsLayer::isDnsPort(portDst) || DnsLayer::isDnsPort(portSrc)))
  ------------------
  |  Branch (121:13): [True: 44.5k, False: 308k]
  |  Branch (121:45): [True: 12.0k, False: 296k]
  ------------------
  122|  56.6k|		{
  123|  56.6k|			constructNextLayer<DnsLayer>(udpData, udpDataLen);
  124|  56.6k|		}
  125|   341k|		else if (QuicV1Layer::isQuicPort(portDst) || QuicV1Layer::isQuicPort(portSrc))
  ------------------
  |  Branch (125:12): [True: 825, False: 340k]
  |  Branch (125:48): [True: 653, False: 339k]
  ------------------
  126|  1.47k|		{
  127|  1.47k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(QuicV1Layer::parseQuicLayer, udpData,
  128|  1.47k|			                                                           udpDataLen);
  129|  1.47k|		}
  130|   339k|		else if (SipLayer::isSipPort(portDst) || SipLayer::isSipPort(portSrc))
  ------------------
  |  Branch (130:12): [True: 94.4k, False: 245k]
  |  Branch (130:44): [True: 1.78k, False: 243k]
  ------------------
  131|  96.1k|		{
  132|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  133|  96.1k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*, uint16_t, uint16_t) = SipLayer::parseSipLayer;
  134|  96.1k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen, portSrc, portDst);
  135|  96.1k|		}
  136|   243k|		else if ((RadiusLayer::isRadiusPort(portDst) || RadiusLayer::isRadiusPort(portSrc)) &&
  ------------------
  |  Branch (136:13): [True: 3.36k, False: 240k]
  |  Branch (136:51): [True: 7.25k, False: 233k]
  ------------------
  137|  10.6k|		         RadiusLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (137:12): [True: 9.62k, False: 994]
  ------------------
  138|  9.62k|		{
  139|  9.62k|			constructNextLayer<RadiusLayer>(udpData, udpDataLen);
  140|  9.62k|		}
  141|   234k|		else if ((GtpV1Layer::isGTPv1Port(portDst) || GtpV1Layer::isGTPv1Port(portSrc)) &&
  ------------------
  |  Branch (141:13): [True: 40.6k, False: 193k]
  |  Branch (141:49): [True: 11.0k, False: 182k]
  ------------------
  142|  51.6k|		         GtpV1Layer::isGTPv1(udpData, udpDataLen))
  ------------------
  |  Branch (142:12): [True: 50.9k, False: 700]
  ------------------
  143|  50.9k|		{
  144|  50.9k|			constructNextLayer<GtpV1Layer>(udpData, udpDataLen);
  145|  50.9k|		}
  146|   183k|		else if ((GtpV2Layer::isGTPv2Port(portDst) || GtpV2Layer::isGTPv2Port(portSrc)) &&
  ------------------
  |  Branch (146:13): [True: 168, False: 183k]
  |  Branch (146:49): [True: 52, False: 182k]
  ------------------
  147|    220|		         GtpV2Layer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (147:12): [True: 145, False: 75]
  ------------------
  148|    145|		{
  149|    145|			constructNextLayer<GtpV2Layer>(udpData, udpDataLen);
  150|    145|		}
  151|   183k|		else if ((DhcpV6Layer::isDhcpV6Port(portSrc) || DhcpV6Layer::isDhcpV6Port(portDst)) &&
  ------------------
  |  Branch (151:13): [True: 15.1k, False: 167k]
  |  Branch (151:51): [True: 4.31k, False: 163k]
  ------------------
  152|  19.4k|		         (DhcpV6Layer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (152:12): [True: 19.2k, False: 200]
  ------------------
  153|  19.2k|		{
  154|  19.2k|			constructNextLayer<DhcpV6Layer>(udpData, udpDataLen);
  155|  19.2k|		}
  156|   163k|		else if ((NtpLayer::isNTPPort(portSrc) || NtpLayer::isNTPPort(portDst)) &&
  ------------------
  |  Branch (156:13): [True: 13.7k, False: 150k]
  |  Branch (156:45): [True: 2.20k, False: 147k]
  ------------------
  157|  15.9k|		         NtpLayer::isDataValid(udpData, udpDataLen))
  ------------------
  |  Branch (157:12): [True: 15.8k, False: 133]
  ------------------
  158|  15.8k|		{
  159|  15.8k|			constructNextLayer<NtpLayer>(udpData, udpDataLen);
  160|  15.8k|		}
  161|   147k|		else if ((DoIpLayer::isDoIpPort(portSrc) || DoIpLayer::isDoIpPort(portDst)) &&
  ------------------
  |  Branch (161:13): [True: 17.7k, False: 130k]
  |  Branch (161:47): [True: 38.4k, False: 91.8k]
  ------------------
  162|  56.1k|		         (DoIpLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (162:12): [True: 47.2k, False: 8.93k]
  ------------------
  163|  47.2k|		{
  164|  47.2k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(DoIpLayer::parseDoIpLayer, udpData, udpDataLen);
  165|  47.2k|		}
  166|   100k|		else if (SomeIpLayer::isSomeIpPort(portSrc) || SomeIpLayer::isSomeIpPort(portDst))
  ------------------
  |  Branch (166:12): [True: 33.8k, False: 66.9k]
  |  Branch (166:50): [True: 4.03k, False: 62.9k]
  ------------------
  167|  37.8k|		{
  168|  37.8k|			constructNextLayerFromFactory(SomeIpLayer::parseSomeIpLayer, udpData, udpDataLen);
  169|  37.8k|		}
  170|  62.9k|		else if ((WakeOnLanLayer::isWakeOnLanPort(portDst) && WakeOnLanLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (170:13): [True: 3.30k, False: 59.6k]
  |  Branch (170:57): [True: 646, False: 2.65k]
  ------------------
  171|    646|		{
  172|    646|			constructNextLayer<WakeOnLanLayer>(udpData, udpDataLen);
  173|    646|		}
  174|  62.2k|		else if ((WireGuardLayer::isWireGuardPorts(portDst, portSrc) &&
  ------------------
  |  Branch (174:13): [True: 4.20k, False: 58.0k]
  ------------------
  175|  4.20k|		          WireGuardLayer::isDataValid(udpData, udpDataLen)))
  ------------------
  |  Branch (175:13): [True: 4.06k, False: 145]
  ------------------
  176|  4.06k|		{
  177|  4.06k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(WireGuardLayer::parseWireGuardLayer, udpData,
  178|  4.06k|			                                                           udpDataLen);
  179|  4.06k|		}
  180|  58.1k|		else if (GvcpLayer::isGvcpPort(portDst) || GvcpLayer::isGvcpPort(portSrc))
  ------------------
  |  Branch (180:12): [True: 0, False: 58.1k]
  |  Branch (180:46): [True: 0, False: 58.1k]
  ------------------
  181|      0|		{
  182|      0|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(GvcpLayer::parseGvcpLayer, udpData, udpDataLen);
  183|      0|		}
  184|       |
  185|       |		// If a valid layer was found, return immediately
  186|   416k|		if (hasNextLayer())
  ------------------
  |  Branch (186:7): [True: 358k, False: 58.1k]
  ------------------
  187|   358k|		{
  188|   358k|			return;
  189|   358k|		}
  190|       |
  191|       |		// Here, heuristics for all protocols should be invoked to determine the correct layer
  192|  58.1k|		{
  193|       |			// Resolves the overload of parseSipLayer, without static_casting a function pointer.
  194|  58.1k|			auto* (*fac)(uint8_t*, size_t, Layer*, Packet*) = SipLayer::parseSipLayer;
  195|  58.1k|			tryConstructNextLayerFromFactoryWithFallback<PayloadLayer>(fac, udpData, udpDataLen);
  196|  58.1k|		}
  197|       |
  198|       |		// cppcheck-suppress knownConditionTrueFalse
  199|  58.1k|		if (!hasNextLayer())
  ------------------
  |  Branch (199:7): [True: 0, False: 58.1k]
  ------------------
  200|      0|		{
  201|      0|			constructNextLayer<PayloadLayer>(udpData, udpDataLen);
  202|      0|		}
  203|  58.1k|	}
_ZN4pcpp8UdpLayer22computeCalculateFieldsEv:
  206|  63.3k|	{
  207|  63.3k|		udphdr* udpHdr = reinterpret_cast<udphdr*>(m_Data);
  208|       |		udpHdr->length = htobe16(m_DataLen);
  209|  63.3k|		calculateChecksum(true);
  210|  63.3k|	}
_ZNK4pcpp8UdpLayer8toStringEv:
  213|   126k|	{
  214|   126k|		std::ostringstream srcPortStream;
  215|   126k|		srcPortStream << getSrcPort();
  216|   126k|		std::ostringstream dstPortStream;
  217|   126k|		dstPortStream << getDstPort();
  218|       |
  219|   126k|		return "UDP Layer, Src port: " + srcPortStream.str() + ", Dst port: " + dstPortStream.str();
  220|   126k|	}

_ZNK4pcpp9VlanLayer9getVlanIDEv:
   30|  69.5k|	{
   31|       |		return be16toh(getVlanHeader()->vlan) & 0xFFF;
   32|  69.5k|	}
_ZNK4pcpp9VlanLayer6getCFIEv:
   35|  69.5k|	{
   36|       |		return ((be16toh(getVlanHeader()->vlan) >> 12) & 1);
   37|  69.5k|	}
_ZNK4pcpp9VlanLayer11getPriorityEv:
   40|  69.5k|	{
   41|       |		return (be16toh(getVlanHeader()->vlan) >> 13) & 7;
   42|  69.5k|	}
_ZN4pcpp9VlanLayer14parseNextLayerEv:
   60|   302k|	{
   61|   302k|		if (m_DataLen <= sizeof(vlan_header))
  ------------------
  |  Branch (61:7): [True: 390, False: 301k]
  ------------------
   62|    390|			return;
   63|       |
   64|   301k|		uint8_t* payload = m_Data + sizeof(vlan_header);
   65|   301k|		size_t payloadLen = m_DataLen - sizeof(vlan_header);
   66|       |
   67|   301k|		vlan_header* hdr = getVlanHeader();
   68|   301k|		switch (be16toh(hdr->etherType))
   69|   301k|		{
   70|   127k|		case PCPP_ETHERTYPE_IP:
  ------------------
  |  |   33|   127k|#define PCPP_ETHERTYPE_IP 0x0800
  ------------------
  |  Branch (70:3): [True: 127k, False: 174k]
  ------------------
   71|   127k|		{
   72|   127k|			tryConstructNextLayerWithFallback<IPv4Layer, PayloadLayer>(payload, payloadLen);
   73|   127k|			break;
   74|      0|		}
   75|  19.9k|		case PCPP_ETHERTYPE_IPV6:
  ------------------
  |  |   49|  19.9k|#define PCPP_ETHERTYPE_IPV6 0x86dd
  ------------------
  |  Branch (75:3): [True: 19.9k, False: 281k]
  ------------------
   76|  19.9k|		{
   77|  19.9k|			tryConstructNextLayerWithFallback<IPv6Layer, PayloadLayer>(payload, payloadLen);
   78|  19.9k|			break;
   79|      0|		}
   80|  1.81k|		case PCPP_ETHERTYPE_ARP:
  ------------------
  |  |   35|  1.81k|#define PCPP_ETHERTYPE_ARP 0x0806
  ------------------
  |  Branch (80:3): [True: 1.81k, False: 299k]
  ------------------
   81|  1.81k|		{
   82|  1.81k|			tryConstructNextLayerWithFallback<ArpLayer, PayloadLayer>(payload, payloadLen);
   83|  1.81k|			break;
   84|      0|		}
   85|  86.2k|		case PCPP_ETHERTYPE_VLAN:
  ------------------
  |  |   45|  86.2k|#define PCPP_ETHERTYPE_VLAN 0x8100
  ------------------
  |  Branch (85:3): [True: 86.2k, False: 215k]
  ------------------
   86|  86.3k|		case PCPP_ETHERTYPE_IEEE_802_1AD:
  ------------------
  |  |   63|  86.3k|#define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
  ------------------
  |  Branch (86:3): [True: 77, False: 301k]
  ------------------
   87|  86.3k|		{
   88|  86.3k|			tryConstructNextLayerWithFallback<VlanLayer, PayloadLayer>(payload, payloadLen);
   89|  86.3k|			break;
   90|  86.2k|		}
   91|  58.7k|		case PCPP_ETHERTYPE_PPPOES:
  ------------------
  |  |   55|  58.7k|#define PCPP_ETHERTYPE_PPPOES 0x8864
  ------------------
  |  Branch (91:3): [True: 58.7k, False: 243k]
  ------------------
   92|  58.7k|		{
   93|  58.7k|			tryConstructNextLayerWithFallback<PPPoESessionLayer, PayloadLayer>(payload, payloadLen);
   94|  58.7k|			break;
   95|  86.2k|		}
   96|  3.25k|		case PCPP_ETHERTYPE_PPPOED:
  ------------------
  |  |   53|  3.25k|#define PCPP_ETHERTYPE_PPPOED 0x8863
  ------------------
  |  Branch (96:3): [True: 3.25k, False: 298k]
  ------------------
   97|  3.25k|		{
   98|  3.25k|			tryConstructNextLayerWithFallback<PPPoEDiscoveryLayer, PayloadLayer>(payload, payloadLen);
   99|  3.25k|			break;
  100|  86.2k|		}
  101|  2.24k|		case PCPP_ETHERTYPE_MPLS:
  ------------------
  |  |   57|  2.24k|#define PCPP_ETHERTYPE_MPLS 0x8847
  ------------------
  |  Branch (101:3): [True: 2.24k, False: 299k]
  ------------------
  102|  2.24k|		{
  103|  2.24k|			tryConstructNextLayerWithFallback<MplsLayer, PayloadLayer>(payload, payloadLen);
  104|  2.24k|			break;
  105|  86.2k|		}
  106|  1.76k|		default:
  ------------------
  |  Branch (106:3): [True: 1.76k, False: 299k]
  ------------------
  107|  1.76k|		{
  108|  1.76k|			if ((be16toh(hdr->etherType) < 1500))
  ------------------
  |  Branch (108:8): [True: 1.10k, False: 656]
  ------------------
  109|  1.10k|			{
  110|  1.10k|				tryConstructNextLayerWithFallback<LLCLayer, PayloadLayer>(payload, payloadLen);
  111|  1.10k|			}
  112|    656|			else
  113|    656|			{
  114|    656|				constructNextLayer<PayloadLayer>(payload, payloadLen);
  115|    656|			}
  116|  1.76k|			break;
  117|  86.2k|		}
  118|   301k|		}
  119|   301k|	}
_ZN4pcpp9VlanLayer22computeCalculateFieldsEv:
  122|  34.7k|	{
  123|  34.7k|		if (m_NextLayer == nullptr)
  ------------------
  |  Branch (123:7): [True: 130, False: 34.6k]
  ------------------
  124|    130|			return;
  125|       |
  126|  34.6k|		switch (m_NextLayer->getProtocol())
  127|  34.6k|		{
  128|  15.5k|		case IPv4:
  ------------------
  |  Branch (128:3): [True: 15.5k, False: 19.1k]
  ------------------
  129|  15.5k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IP);
  130|  15.5k|			break;
  131|  3.18k|		case IPv6:
  ------------------
  |  Branch (131:3): [True: 3.18k, False: 31.4k]
  ------------------
  132|  3.18k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_IPV6);
  133|  3.18k|			break;
  134|    354|		case ARP:
  ------------------
  |  Branch (134:3): [True: 354, False: 34.2k]
  ------------------
  135|    354|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_ARP);
  136|    354|			break;
  137|  8.67k|		case VLAN:
  ------------------
  |  Branch (137:3): [True: 8.67k, False: 25.9k]
  ------------------
  138|  8.67k|			getVlanHeader()->etherType = htobe16(PCPP_ETHERTYPE_VLAN);
  139|  8.67k|			break;
  140|  6.89k|		default:
  ------------------
  |  Branch (140:3): [True: 6.89k, False: 27.7k]
  ------------------
  141|  6.89k|			return;
  142|  34.6k|		}
  143|  34.6k|	}
_ZNK4pcpp9VlanLayer8toStringEv:
  146|  69.5k|	{
  147|  69.5k|		std::ostringstream cfiStream;
  148|  69.5k|		cfiStream << (int)getCFI();
  149|  69.5k|		std::ostringstream priStream;
  150|  69.5k|		priStream << (int)getPriority();
  151|  69.5k|		std::ostringstream idStream;
  152|  69.5k|		idStream << getVlanID();
  153|       |
  154|  69.5k|		return "VLAN Layer, Priority: " + priStream.str() + ", Vlan ID: " + idStream.str() +
  155|  69.5k|		       ", CFI: " + cfiStream.str();
  156|  69.5k|	}

_ZN4pcpp9VrrpLayer18getVersionFromDataEPhm:
   46|  10.3k|	{
   47|  10.3k|		if (!data || dataLen <= VrrpPacketFixedLength)
  ------------------
  |  Branch (47:7): [True: 0, False: 10.3k]
  |  Branch (47:16): [True: 24, False: 10.2k]
  ------------------
   48|     24|		{
   49|     24|			return UnknownProtocol;
   50|     24|		}
   51|       |
   52|  10.2k|		auto* vrrpPacketCommon = (vrrp_header*)data;
   53|  10.2k|		uint8_t version = vrrpPacketCommon->version;
   54|  10.2k|		switch (version)
   55|  10.2k|		{
   56|  3.06k|		case VrrpVersion2:
  ------------------
  |  Branch (56:3): [True: 3.06k, False: 7.21k]
  ------------------
   57|  3.06k|			return VRRPv2;
   58|  6.73k|		case VrrpVersion3:
  ------------------
  |  Branch (58:3): [True: 6.73k, False: 3.54k]
  ------------------
   59|  6.73k|			return VRRPv3;
   60|    482|		default:
  ------------------
  |  Branch (60:3): [True: 482, False: 9.79k]
  ------------------
   61|    482|			return UnknownProtocol;
   62|  10.2k|		}
   63|  10.2k|	}
_ZN4pcpp9VrrpLayer22computeCalculateFieldsEv:
   66|  2.09k|	{
   67|       |		// calculate and fill the checksum to packet
   68|  2.09k|		calculateAndSetChecksum();
   69|  2.09k|	}
_ZNK4pcpp9VrrpLayer15getIPAddressLenEv:
   72|  27.3k|	{
   73|  27.3k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (73:7): [True: 26.4k, False: 913]
  ------------------
   74|  26.4k|		{
   75|  26.4k|			return 4;
   76|  26.4k|		}
   77|       |
   78|    913|		return 16;
   79|  27.3k|	}
_ZNK4pcpp9VrrpLayer17isChecksumCorrectEv:
   82|  2.09k|	{
   83|  2.09k|		auto vrrpHeader = getVrrpHeader();
   84|  2.09k|		if (vrrpHeader == nullptr)
  ------------------
  |  Branch (84:7): [True: 0, False: 2.09k]
  ------------------
   85|      0|		{
   86|      0|			return false;
   87|      0|		}
   88|       |
   89|  2.09k|		return (calculateChecksum() == be16toh(vrrpHeader->checksum));
   90|  2.09k|	}
_ZNK4pcpp9VrrpLayer17getPriorityAsEnumEv:
   93|  2.09k|	{
   94|  2.09k|		switch (getVrrpHeader()->priority)
   95|  2.09k|		{
   96|    116|		case VrrpPriorityDefault:
  ------------------
  |  Branch (96:3): [True: 116, False: 1.98k]
  ------------------
   97|    116|			return VrrpLayer::VrrpPriority::Default;
   98|       |
   99|    618|		case VrrpPriorityStop:
  ------------------
  |  Branch (99:3): [True: 618, False: 1.47k]
  ------------------
  100|    618|			return VrrpLayer::VrrpPriority::Stop;
  101|       |
  102|     66|		case VrrpPriorityOwner:
  ------------------
  |  Branch (102:3): [True: 66, False: 2.03k]
  ------------------
  103|     66|			return VrrpLayer::VrrpPriority::Owner;
  104|       |
  105|  1.29k|		default:
  ------------------
  |  Branch (105:3): [True: 1.29k, False: 800]
  ------------------
  106|  1.29k|			return VrrpLayer::VrrpPriority::Other;
  107|  2.09k|		}
  108|  2.09k|	}
_ZNK4pcpp9VrrpLayer8toStringEv:
  111|  4.19k|	{
  112|  4.19k|		return "VRRP v" + std::to_string(getVersion()) +
  113|  4.19k|		       " Layer, virtual router ID: " + std::to_string(getVirtualRouterID()) +
  114|  4.19k|		       ", IP address count: " + std::to_string(getIPAddressesCount());
  115|  4.19k|	}
_ZNK4pcpp9VrrpLayer10getVersionEv:
  118|  4.19k|	{
  119|  4.19k|		return getVrrpHeader()->version;
  120|  4.19k|	}
_ZNK4pcpp9VrrpLayer7getTypeEv:
  123|  2.09k|	{
  124|  2.09k|		if (getVrrpHeader()->type == VrrpType_Advertisement)
  ------------------
  |  Branch (124:7): [True: 639, False: 1.45k]
  ------------------
  125|    639|		{
  126|    639|			return VrrpType_Advertisement;
  127|    639|		}
  128|       |
  129|  1.45k|		return VrrpType_Unknown;
  130|  2.09k|	}
_ZNK4pcpp9VrrpLayer18getVirtualRouterIDEv:
  133|  4.19k|	{
  134|  4.19k|		return getVrrpHeader()->vrId;
  135|  4.19k|	}
_ZNK4pcpp9VrrpLayer11getPriorityEv:
  143|  2.09k|	{
  144|  2.09k|		return getVrrpHeader()->priority;
  145|  2.09k|	}
_ZNK4pcpp9VrrpLayer11getChecksumEv:
  153|  2.09k|	{
  154|       |		return be16toh(getVrrpHeader()->checksum);
  155|  2.09k|	}
_ZN4pcpp9VrrpLayer23calculateAndSetChecksumEv:
  158|  2.09k|	{
  159|       |		getVrrpHeader()->checksum = htobe16(calculateChecksum());
  160|  2.09k|	}
_ZNK4pcpp9VrrpLayer19getIPAddressesCountEv:
  163|  4.19k|	{
  164|  4.19k|		return getVrrpHeader()->ipAddrCount;
  165|  4.19k|	}
_ZNK4pcpp9VrrpLayer14getIPAddressesEv:
  168|  2.09k|	{
  169|  2.09k|		std::vector<IPAddress> ipAddressesVec;
  170|  2.09k|		auto ipAddressesPtr = getFirstIPAddressPtr();
  171|  27.3k|		while (ipAddressesPtr != nullptr)
  ------------------
  |  Branch (171:10): [True: 25.2k, False: 2.09k]
  ------------------
  172|  25.2k|		{
  173|  25.2k|			IPAddress ipAddress = getIPAddressFromData(ipAddressesPtr);
  174|  25.2k|			ipAddressesVec.push_back(ipAddress);
  175|  25.2k|			ipAddressesPtr = getNextIPAddressPtr(ipAddressesPtr);
  176|  25.2k|		}
  177|       |
  178|  2.09k|		return ipAddressesVec;
  179|  2.09k|	}
_ZNK4pcpp9VrrpLayer20getFirstIPAddressPtrEv:
  182|  2.09k|	{
  183|  2.09k|		size_t ipAddressLen = getIPAddressLen();
  184|       |
  185|       |		// check if there are virtual IP address at all
  186|  2.09k|		if (getHeaderLen() <= VrrpPacketFixedLength + ipAddressLen)
  ------------------
  |  Branch (186:7): [True: 770, False: 1.32k]
  ------------------
  187|    770|		{
  188|    770|			return nullptr;
  189|    770|		}
  190|       |
  191|  1.32k|		return (m_Data + VrrpPacketFixedLength);
  192|  2.09k|	}
_ZNK4pcpp9VrrpLayer19getNextIPAddressPtrEPh:
  195|  25.2k|	{
  196|  25.2k|		if (ipAddressPtr == nullptr)
  ------------------
  |  Branch (196:7): [True: 0, False: 25.2k]
  ------------------
  197|      0|		{
  198|      0|			return nullptr;
  199|      0|		}
  200|       |
  201|  25.2k|		size_t ipAddressLen = getIPAddressLen();
  202|  25.2k|		size_t nextOffset = static_cast<size_t>(ipAddressPtr - m_Data) + ipAddressLen;
  203|       |
  204|       |		// The next virtual IP address must fit entirely inside the layer. Checking only that the current
  205|       |		// address ends inside it leaves a trailing partial address reachable, which the caller then reads
  206|       |		// in full and runs past the end of the buffer.
  207|  25.2k|		if (nextOffset + ipAddressLen > getHeaderLen())
  ------------------
  |  Branch (207:7): [True: 1.32k, False: 23.9k]
  ------------------
  208|  1.32k|		{
  209|  1.32k|			return nullptr;
  210|  1.32k|		}
  211|       |
  212|  23.9k|		return (m_Data + nextOffset);
  213|  25.2k|	}
_ZNK4pcpp9VrrpLayer20getIPAddressFromDataEPh:
  350|  25.2k|	{
  351|  25.2k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (351:7): [True: 25.1k, False: 115]
  ------------------
  352|  25.1k|		{
  353|  25.1k|			return IPv4Address(*reinterpret_cast<const uint32_t*>(data));
  354|  25.1k|		}
  355|       |
  356|    115|		return IPv6Address(data);
  357|  25.2k|	}
_ZNK4pcpp9VrrpLayer14getAddressTypeEv:
  376|  55.2k|	{
  377|  55.2k|		return m_AddressType;
  378|  55.2k|	}
_ZNK4pcpp11VrrpV2Layer17getAuthTypeAsEnumEv:
  448|    739|	{
  449|    739|		auto authType = getAuthType();
  450|    739|		if (authType > 3)
  ------------------
  |  Branch (450:7): [True: 652, False: 87]
  ------------------
  451|    652|		{
  452|    652|			return VrrpAuthType::Other;
  453|    652|		}
  454|       |
  455|     87|		return static_cast<VrrpAuthType>(authType);
  456|    739|	}
_ZNK4pcpp11VrrpV2Layer9getAdvIntEv:
  459|    739|	{
  460|    739|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  461|    739|		auto authAdvIntPtr = reinterpret_cast<vrrpv2_auth_adv*>(&authAdvInt);
  462|    739|		return authAdvIntPtr->advInt;
  463|    739|	}
_ZNK4pcpp11VrrpV2Layer11getAuthTypeEv:
  472|    739|	{
  473|    739|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  474|    739|		auto* authAdvIntPtr = reinterpret_cast<vrrpv2_auth_adv*>(&authAdvInt);
  475|    739|		return authAdvIntPtr->authType;
  476|    739|	}
_ZNK4pcpp11VrrpV2Layer17calculateChecksumEv:
  485|  1.47k|	{
  486|  1.47k|		if ((getData() == nullptr) || (getDataLen() == 0))
  ------------------
  |  Branch (486:7): [True: 0, False: 1.47k]
  |  Branch (486:33): [True: 0, False: 1.47k]
  ------------------
  487|      0|		{
  488|      0|			return 0;
  489|      0|		}
  490|       |
  491|  1.47k|		auto vrrpHeader = getVrrpHeader();
  492|  1.47k|		ScalarBuffer<uint16_t> buffer = {};
  493|  1.47k|		buffer.buffer = reinterpret_cast<uint16_t*>(vrrpHeader);
  494|  1.47k|		buffer.len = getHeaderLen();
  495|       |
  496|  1.47k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  497|  1.47k|		vrrpHeader->checksum = 0;
  498|  1.47k|		uint16_t checksum = computeChecksum(&buffer, 1);
  499|  1.47k|		vrrpHeader->checksum = currChecksumValue;
  500|       |
  501|  1.47k|		return checksum;
  502|  1.47k|	}
_ZNK4pcpp11VrrpV3Layer12getMaxAdvIntEv:
  541|  1.35k|	{
  542|  1.35k|		uint16_t authAdvInt = getVrrpHeader()->authTypeAdvInt;
  543|  1.35k|		auto rsvdAdv = reinterpret_cast<vrrpv3_rsvd_adv*>(&authAdvInt);
  544|       |		return be16toh(rsvdAdv->maxAdvInt);
  545|  1.35k|	}
_ZNK4pcpp11VrrpV3Layer17calculateChecksumEv:
  558|  2.71k|	{
  559|  2.71k|		auto* ipLayer = getAttachedPacket()->getLayerOfType<pcpp::IPLayer>();
  560|  2.71k|		if (ipLayer == nullptr)
  ------------------
  |  Branch (560:7): [True: 0, False: 2.71k]
  ------------------
  561|      0|		{
  562|      0|			PCPP_LOG_ERROR("Calculate checksum failed, for can not get IPLayer" << "");
  ------------------
  |  |  445|      0|#	define PCPP_LOG_ERROR(message) PCPP_LOG(pcpp::LogLevel::Error, message)
  |  |  ------------------
  |  |  |  |  414|      0|	do                                                                                                                 \
  |  |  |  |  415|      0|	{                                                                                                                  \
  |  |  |  |  416|      0|		auto& logger = pcpp::Logger::getInstance();                                                                    \
  |  |  |  |  417|      0|		if (logger.shouldLog(level, LOG_MODULE))                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |    1|      0|#define LOG_MODULE PacketLogModuleVrrpLayer
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (417:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  418|      0|		{                                                                                                              \
  |  |  |  |  419|      0|			auto ctx =                                                                                                 \
  |  |  |  |  420|      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__
  |  |  |  |  ------------------
  |  |  |  |  421|      0|			(*ctx) << message;                                                                                         \
  |  |  |  |  422|      0|			logger.emit(std::move(ctx));                                                                               \
  |  |  |  |  423|      0|		}                                                                                                              \
  |  |  |  |  424|      0|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (424:11): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  563|      0|			return 0;
  564|      0|		}
  565|       |
  566|  2.71k|		auto vrrpHeader = getVrrpHeader();
  567|  2.71k|		uint16_t currChecksumValue = vrrpHeader->checksum;
  568|  2.71k|		vrrpHeader->checksum = 0;
  569|       |
  570|  2.71k|		pcpp::IPAddress srcIPAddr = ipLayer->getSrcIPAddress();
  571|  2.71k|		pcpp::IPAddress dstIPAddr = ipLayer->getDstIPAddress();
  572|  2.71k|		uint16_t checksum;
  573|  2.71k|		if (getAddressType() == IPAddress::IPv4AddressType)
  ------------------
  |  Branch (573:7): [True: 1.12k, False: 1.59k]
  ------------------
  574|  1.12k|		{
  575|  1.12k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv4AddressType,
  576|  1.12k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  577|  1.12k|		}
  578|  1.59k|		else
  579|  1.59k|		{
  580|  1.59k|			checksum = computePseudoHdrChecksum((uint8_t*)vrrpHeader, getDataLen(), IPAddress::IPv6AddressType,
  581|  1.59k|			                                    PACKETPP_IPPROTO_VRRP, srcIPAddr, dstIPAddr);
  582|  1.59k|		}
  583|       |
  584|  2.71k|		vrrpHeader->checksum = currChecksumValue;
  585|       |
  586|  2.71k|		return checksum;
  587|  2.71k|	}

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

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

_ZN4pcpp14WireGuardLayer19parseWireGuardLayerEPhmPNS_5LayerEPNS_6PacketE:
   13|  4.06k|	{
   14|  4.06k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (14:7): [True: 0, False: 4.06k]
  ------------------
   15|      0|			return nullptr;
   16|  4.06k|		wg_common_header* wgHeader = reinterpret_cast<wg_common_header*>(data);
   17|       |
   18|  4.06k|		switch (wgHeader->messageType)
   19|  4.06k|		{
   20|    760|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (20:3): [True: 760, False: 3.30k]
  ------------------
   21|    760|			if (!WireGuardHandshakeInitiationLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (21:8): [True: 34, False: 726]
  ------------------
   22|     34|				return nullptr;
   23|    726|			return new WireGuardHandshakeInitiationLayer(data, dataLen, prevLayer, packet);
   24|    733|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (24:3): [True: 733, False: 3.32k]
  ------------------
   25|    733|			if (!WireGuardHandshakeResponseLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (25:8): [True: 65, False: 668]
  ------------------
   26|     65|				return nullptr;
   27|    668|			return new WireGuardHandshakeResponseLayer(data, dataLen, prevLayer, packet);
   28|     20|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (28:3): [True: 20, False: 4.04k]
  ------------------
   29|     20|			if (!WireGuardCookieReplyLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (29:8): [True: 5, False: 15]
  ------------------
   30|      5|				return nullptr;
   31|     15|			return new WireGuardCookieReplyLayer(data, dataLen, prevLayer, packet);
   32|  2.54k|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (32:3): [True: 2.54k, False: 1.51k]
  ------------------
   33|  2.54k|			if (!WireGuardTransportDataLayer::isDataValid(data, dataLen))
  ------------------
  |  Branch (33:8): [True: 31, False: 2.51k]
  ------------------
   34|     31|				return nullptr;
   35|  2.51k|			return new WireGuardTransportDataLayer(data, dataLen, prevLayer, packet);
   36|      0|		default:
  ------------------
  |  Branch (36:3): [True: 0, False: 4.06k]
  ------------------
   37|      0|			return nullptr;
   38|  4.06k|		}
   39|  4.06k|	}
_ZNK4pcpp14WireGuardLayer22getMessageTypeAsStringEv:
   42|  1.56k|	{
   43|  1.56k|		uint32_t messageType = getMessageType();
   44|  1.56k|		switch (messageType)
   45|  1.56k|		{
   46|    290|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeInitiation):
  ------------------
  |  Branch (46:3): [True: 290, False: 1.27k]
  ------------------
   47|    290|			return "Handshake Initiation";
   48|    266|		case static_cast<uint8_t>(WireGuardMessageType::HandshakeResponse):
  ------------------
  |  Branch (48:3): [True: 266, False: 1.30k]
  ------------------
   49|    266|			return "Handshake Response";
   50|      6|		case static_cast<uint8_t>(WireGuardMessageType::CookieReply):
  ------------------
  |  Branch (50:3): [True: 6, False: 1.56k]
  ------------------
   51|      6|			return "Cookie Reply";
   52|  1.00k|		case static_cast<uint8_t>(WireGuardMessageType::TransportData):
  ------------------
  |  Branch (52:3): [True: 1.00k, False: 562]
  ------------------
   53|  1.00k|			return "Transport Data";
   54|      0|		default:
  ------------------
  |  Branch (54:3): [True: 0, False: 1.56k]
  ------------------
   55|      0|			return "Unknown";
   56|  1.56k|		}
   57|  1.56k|	}
_ZNK4pcpp14WireGuardLayer8toStringEv:
   60|  1.56k|	{
   61|  1.56k|		return "WireGuard Layer, " + getMessageTypeAsString() + " message";
   62|  1.56k|	}
_ZNK4pcpp14WireGuardLayer12getHeaderLenEv:
   65|    784|	{
   66|    784|		return m_DataLen;
   67|    784|	}
_ZNK4pcpp14WireGuardLayer14getMessageTypeEv:
   70|  1.56k|	{
   71|  1.56k|		return getBasicHeader()->messageType;
   72|  1.56k|	}
_ZN4pcpp14WireGuardLayer11isDataValidEPKhm:
   88|  4.20k|	{
   89|  4.20k|		if (dataLen < sizeof(WireGuardLayer::wg_common_header))
  ------------------
  |  Branch (89:7): [True: 70, False: 4.13k]
  ------------------
   90|     70|			return false;
   91|       |
   92|  4.13k|		uint8_t messageType = data[0];
   93|  4.13k|		return messageType >= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::HandshakeInitiation) &&
  ------------------
  |  Branch (93:10): [True: 4.06k, False: 75]
  ------------------
   94|  4.06k|		       messageType <= static_cast<uint8_t>(WireGuardLayer::WireGuardMessageType::TransportData);
  ------------------
  |  Branch (94:10): [True: 4.06k, False: 0]
  ------------------
   95|  4.20k|	}

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

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

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

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

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

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

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

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

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

