PcapPlusPlus
Next
|
The main namespace for the PcapPlusPlus lib. More...
Functions | |
std::string | byteArrayToHexString (const uint8_t *byteArr, size_t byteArrSize, int stringSizeLimit=-1) |
size_t | hexStringToByteArray (const std::string &hexString, uint8_t *resultByteArr, size_t resultByteArrSize) |
char * | cross_platform_memmem (const char *haystack, size_t haystackLen, const char *needle, size_t needleLen) |
bool | operator== (const IPv4Address &lhs, const in_addr &rhs) |
bool | operator!= (const IPv4Address &lhs, const in_addr &rhs) |
bool | operator== (const in_addr &lhs, const IPv4Address &rhs) |
bool | operator!= (const in_addr &lhs, const IPv4Address &rhs) |
bool | operator== (const IPv6Address &lhs, const in6_addr &rhs) |
bool | operator!= (const IPv6Address &lhs, const in6_addr &rhs) |
bool | operator== (const in6_addr &lhs, const IPv6Address &rhs) |
bool | operator!= (const in6_addr &lhs, const IPv6Address &rhs) |
bool | operator== (const IPAddress &lhs, const in_addr &rhs) |
bool | operator!= (const IPAddress &lhs, const in_addr &rhs) |
bool | operator== (const in_addr &lhs, const IPAddress &rhs) |
bool | operator!= (const in_addr &lhs, const IPAddress &rhs) |
bool | operator== (const IPAddress &lhs, const in6_addr &rhs) |
bool | operator!= (const IPAddress &lhs, const in6_addr &rhs) |
bool | operator== (const in6_addr &lhs, const IPAddress &rhs) |
bool | operator!= (const in6_addr &lhs, const IPAddress &rhs) |
std::string | getErrorString (int errnum) |
std::string | getPcapPlusPlusVersion () |
std::string | getPcapPlusPlusVersionFull () |
std::string | getBuildDateTime () |
std::string | getGitCommit () |
std::string | getGitBranch () |
std::string | getGitInfo () |
int | getNumOfCores () |
CoreMask | getCoreMaskForAllMachineCores () |
CoreMask | createCoreMaskFromCoreVector (const std::vector< SystemCore > &cores) |
CoreMask | createCoreMaskFromCoreIds (const std::vector< int > &coreIds) |
void | createCoreVectorFromCoreMask (CoreMask coreMask, std::vector< SystemCore > &resultVec) |
std::string | executeShellCommand (const std::string &command) |
bool | directoryExists (const std::string &dirPath) |
int | clockGetTime (long &sec, long &nsec) |
void | multiPlatformSleep (uint32_t seconds) |
void | multiPlatformMSleep (uint32_t milliseconds) |
uint16_t | hostToNet16 (uint16_t host) |
uint16_t | netToHost16 (uint16_t net) |
uint32_t | hostToNet32 (uint32_t host) |
uint32_t | netToHost32 (uint32_t net) |
uint16_t | computeChecksum (ScalarBuffer< uint16_t > vec[], size_t vecSize) |
uint16_t | computePseudoHdrChecksum (uint8_t *dataPtr, size_t dataLen, IPAddress::AddressType ipAddrType, uint8_t protocolType, IPAddress srcIPAddress, IPAddress dstIPAddress) |
uint32_t | fnvHash (ScalarBuffer< uint8_t > vec[], size_t vecSize) |
uint32_t | fnvHash (uint8_t *buffer, size_t bufSize) |
uint32_t | hash5Tuple (Packet *packet, bool const &directionUnique=false) |
uint32_t | hash2Tuple (Packet *packet) |
Variables | |
const ProtocolType | UnknownProtocol = 0 |
Unknown protocol (or unsupported by PcapPlusPlus) | |
const ProtocolType | Ethernet = 1 |
Ethernet protocol. | |
const ProtocolType | IPv4 = 2 |
IPv4 protocol. | |
const ProtocolType | IPv6 = 3 |
IPv6 protocol. | |
const ProtocolTypeFamily | IP = 0x203 |
IP protocol family (IPv4 and IPv6 protocols) | |
const ProtocolType | TCP = 4 |
TCP protocol. | |
const ProtocolType | UDP = 5 |
UDP protocol. | |
const ProtocolType | HTTPRequest = 6 |
HTTP request protocol. | |
const ProtocolType | HTTPResponse = 7 |
HTTP response protocol. | |
const ProtocolTypeFamily | HTTP = 0x607 |
HTTP protocol family (HTTP request and HTTP response protocols) | |
const ProtocolType | ARP = 8 |
ARP protocol. | |
const ProtocolType | VLAN = 9 |
VLAN protocol. | |
const ProtocolType | ICMP = 10 |
ICMP protocol. | |
const ProtocolType | PPPoESession = 11 |
PPPoE session protocol. | |
const ProtocolType | PPPoEDiscovery = 12 |
PPPoE discovery protocol. | |
const ProtocolTypeFamily | PPPoE = 0xb0c |
PPPoE protocol family (PPPoESession and PPPoEDiscovery protocols) | |
const ProtocolType | DNS = 13 |
DNS protocol. | |
const ProtocolType | MPLS = 14 |
MPLS protocol. | |
const ProtocolType | GREv0 = 15 |
GRE version 0 protocol. | |
const ProtocolType | GREv1 = 16 |
GRE version 1 protocol. | |
const ProtocolTypeFamily | GRE = 0xf10 |
GRE protocol family (GREv0 and GREv1 protocols) | |
const ProtocolType | PPP_PPTP = 17 |
PPP for PPTP protocol. | |
const ProtocolType | SSL = 18 |
SSL/TLS protocol. | |
const ProtocolType | SLL = 19 |
SLL (Linux cooked capture) protocol. | |
const ProtocolType | DHCP = 20 |
DHCP/BOOTP protocol. | |
const ProtocolType | NULL_LOOPBACK = 21 |
Null/Loopback protocol. | |
const ProtocolType | IGMPv1 = 22 |
IGMPv1 protocol. | |
const ProtocolType | IGMPv2 = 23 |
IGMPv2 protocol. | |
const ProtocolType | IGMPv3 = 24 |
IGMPv3 protocol. | |
const ProtocolTypeFamily | IGMP = 0x161718 |
IGMP protocol family (IGMPv1, IGMPv2, IGMPv3) | |
const ProtocolType | GenericPayload = 25 |
Generic payload (no specific protocol) | |
const ProtocolType | VXLAN = 26 |
VXLAN protocol. | |
const ProtocolType | SIPRequest = 27 |
SIP request protocol. | |
const ProtocolType | SIPResponse = 28 |
SIP response protocol. | |
const ProtocolTypeFamily | SIP = 0x1b1c |
SIP protocol family (SIPRequest and SIPResponse protocols) | |
const ProtocolType | SDP = 29 |
SDP protocol. | |
const ProtocolType | PacketTrailer = 30 |
Packet trailer. | |
const ProtocolType | Radius = 31 |
RADIUS protocol. | |
const ProtocolType | GTPv1 = 32 |
GTPv1 protocol. | |
const ProtocolTypeFamily | GTP = 0x2039 |
GTP protocol family (GTPv1 and GTPv2) | |
const ProtocolType | EthernetDot3 = 33 |
IEEE 802.3 Ethernet protocol. | |
const ProtocolType | BGP = 34 |
Border Gateway Protocol (BGP) version 4 protocol. | |
const ProtocolType | SSH = 35 |
SSH version 2 protocol. | |
const ProtocolType | AuthenticationHeader = 36 |
IPSec Authentication Header (AH) protocol. | |
const ProtocolType | ESP = 37 |
IPSec Encapsulating Security Payload (ESP) protocol. | |
const ProtocolTypeFamily | IPSec = 0x2425 |
IPSec protocol family (AH and ESP protocols) | |
const ProtocolType | DHCPv6 = 38 |
Dynamic Host Configuration Protocol version 6 (DHCPv6) protocol. | |
const ProtocolType | NTP = 39 |
Network Time (NTP) Protocol. | |
const ProtocolType | Telnet = 40 |
Telnet Protocol. | |
const ProtocolType | FTP = 41 |
File Transfer (FTP) Protocol. | |
const ProtocolType | ICMPv6 = 42 |
ICMPv6 protocol. | |
const ProtocolType | STP = 43 |
Spanning Tree Protocol. | |
const ProtocolType | LLC = 44 |
Logical Link Control (LLC) | |
const ProtocolType | SomeIP = 45 |
SOME/IP Base protocol. | |
const ProtocolType | WakeOnLan = 46 |
Wake On LAN (WOL) Protocol. | |
const ProtocolType | NFLOG = 47 |
NFLOG (Linux Netfilter NFLOG) Protocol. | |
const ProtocolType | TPKT = 48 |
TPKT protocol. | |
const ProtocolType | VRRPv2 = 49 |
VRRP version 2 protocol. | |
const ProtocolType | VRRPv3 = 50 |
VRRP version 3 protocol. | |
const ProtocolTypeFamily | VRRP = 0x3132 |
VRRP protocol family (VRRPv2 and VRRPv3 protocols) | |
const ProtocolType | COTP = 51 |
COTP protocol. | |
const ProtocolType | SLL2 = 52 |
SLL2 protocol. | |
const ProtocolType | S7COMM = 53 |
S7COMM protocol. | |
const ProtocolType | SMTP = 54 |
SMTP protocol. | |
const ProtocolType | LDAP = 55 |
LDAP protocol. | |
const ProtocolType | WireGuard = 56 |
WireGuard protocol. | |
const ProtocolType | GTPv2 = 57 |
GTPv2 protocol. | |
const ProtocolType | CiscoHDLC = 58 |
Cisco HDLC protocol. | |
The main namespace for the PcapPlusPlus lib.
@
using pcpp::AndFilter = typedef CompositeLogicFilter<CompositeLogicFilterOp::AND> |
A class for connecting several filters into one filter with logical "and" between them. For example: if the 2 filters are: "IPv4 address = x.x.x.x" + "TCP port dst = 80", then the new filter will be: "IPv4 address = x.x.x.x _AND_ TCP port dst = 80"
This class follows the composite design pattern.
For deeper understanding of the filter concept please refer to PcapFilter.h
ICMP address mask reply message structure, same as icmp_address_mask_request
ICMP echo (ping) reply message structure, same as icmp_echo_request
ICMP information reply message structure, same as icmp_info_request
ICMP router solicitation message structure, same as icmphdr
ICMP source quence message structure, same as icmp_time_exceeded
ICMP timestamp reply message structure, same as icmp_timestamp_request
A vector of pointers to MBufRawPacket
pcpp::OnDpdkPacketsArriveCallback |
A callback that is called when a burst of packets are captured by DpdkDevice
[in] | packets | A pointer to an array of MBufRawPacket |
[in] | numOfPackets | The length of the array |
[in] | threadId | The thread/core ID who captured the packets |
[in] | device | A pointer to the DpdkDevice who captured the packets |
[in] | userCookie | The user cookie assigned by the user in DpdkDevice::startCaptureSingleThread() or DpdkDevice::startCaptureMultiThreads |
using pcpp::OnPacketArrivesCallback = typedef std::function<void(RawPacket*, PcapLiveDevice*, void*)> |
A callback that is called when a packet is captured by PcapLiveDevice
[in] | packet | A pointer to the raw packet |
[in] | device | A pointer to the PcapLiveDevice instance |
[in] | userCookie | A pointer to the object put by the user when packet capturing stared |
using pcpp::OnPacketArrivesStopBlocking = typedef std::function<bool(RawPacket*, PcapLiveDevice*, void*)> |
A callback that is called when a packet is captured by PcapLiveDevice
[in] | packet | A pointer to the raw packet |
[in] | device | A pointer to the PcapLiveDevice instance |
[in] | userCookie | A pointer to the object put by the user when packet capturing stared |
using pcpp::OnStatsUpdateCallback = typedef std::function<void(IPcapDevice::PcapStats&, void*)> |
A callback that is called periodically for stats collection if user asked to start packet capturing with periodic stats collection
[in] | stats | A reference to the most updated stats |
[in] | userCookie | A pointer to the object put by the user when packet capturing stared |
using pcpp::OrFilter = typedef CompositeLogicFilter<CompositeLogicFilterOp::OR> |
A class for connecting several filters into one filter with logical "or" between them. For example: if the 2 filters are: "IPv4 address = x.x.x.x" + "TCP port dst = 80", then the new filter will be: "IPv4 address = x.x.x.x _OR_ TCP port dst = 80"
This class follows the composite design pattern.
For deeper understanding of the filter concept please refer to PcapFilter.h
Representing all protocols supported by PcapPlusPlus
Representing a family of protocols
|
strong |
enum pcpp::ArpOpcode |
|
strong |
|
strong |
An enum for representing ASN.1 Universal tag types.
enum pcpp::BootpOpCodes |
|
strong |
DHCP message types.
DHCP option types.
DHCPv6 message types.
DHCPv6 option types. Resources for more information:
enum pcpp::Direction |
enum pcpp::DnsClass |
enum pcpp::DnsType |
An enum for all possible DNS record types.
enum pcpp::DpdkPMDType |
An enum describing all PMD (poll mode driver) types supported by DPDK. For more info about these PMDs please visit the DPDK web-site
|
strong |
enum pcpp::FilterOperator |
An enum representing the possible GTP v1 message types. All of the message types except for GtpV1_GPDU are considered GTP-C messages. GtpV1_GPDU is considered a GTP-U message
enum pcpp::HttpVersion |
An enum for all possible codes for a destination unreachable message type Documentation is taken from Wikipedia: https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
Enumerator | |
---|---|
IcmpNetworkUnreachable | Network unreachable error. |
IcmpHostUnreachable | Host unreachable error. |
IcmpProtocolUnreachable | Protocol unreachable error (the designated transport protocol is not supported) |
IcmpPortUnreachable | Port unreachable error (the designated protocol is unable to inform the host of the incoming message) |
IcmpDatagramTooBig | The datagram is too big. Packet fragmentation is required but the 'don't fragment' (DF) flag is on. |
IcmpSourceRouteFailed | Source route failed error. |
IcmpDestinationNetworkUnknown | Destination network unknown error. |
IcmpDestinationHostUnknown | Destination host unknown error. |
IcmpSourceHostIsolated | Source host isolated error. |
IcmpDestinationNetworkProhibited | The destination network is administratively prohibited. |
IcmpDestinationHostProhibited | The destination host is administratively prohibited. |
IcmpNetworkUnreachableForTypeOfService | The network is unreachable for Type Of Service. |
IcmpHostUnreachableForTypeOfService | The host is unreachable for Type Of Service. |
IcmpCommunicationProhibited | Communication administratively prohibited (administrative filtering prevents packet from being forwarded) |
IcmpHostPrecedenceViolation | Host precedence violation (indicates the requested precedence is not permitted for the combination of host or network and port) |
IcmpPrecedenceCutoff | Precedence cutoff in effect (precedence of datagram is below the level set by the network administrators) |
An enum of all supported ICMP message types.
|
strong |
An enum representing the available ICMPv6 message types.
Enumerator | |
---|---|
ICMPv6_UNKNOWN_MESSAGE | Unknown ICMPv6 message. |
ICMPv6_DESTINATION_UNREACHABLE | Destination Unreachable Message. |
ICMPv6_PACKET_TOO_BIG | Packet Too Big Message. |
ICMPv6_TIME_EXCEEDED | Time Exceeded Message. |
ICMPv6_PARAMETER_PROBLEM | Parameter Problem Message. |
ICMPv6_PRIVATE_EXPERIMENTATION1 | Private Experimentation Message. |
ICMPv6_PRIVATE_EXPERIMENTATION2 | Private Experimentation Message. |
ICMPv6_RESERVED_EXPANSION_ERROR | Reserved for expansion of ICMPv6 error messages. |
ICMPv6_ECHO_REQUEST | Echo Request Message. |
ICMPv6_ECHO_REPLY | Echo Reply Message. |
ICMPv6_MULTICAST_LISTENER_QUERY | Multicast Listener Query Message. |
ICMPv6_MULTICAST_LISTENER_REPORT | Multicast Listener Report Message. |
ICMPv6_MULTICAST_LISTENER_DONE | Multicast Listener Done Message. |
ICMPv6_ROUTER_SOLICITATION | Router Solicitation Message. |
ICMPv6_ROUTER_ADVERTISEMENT | Router Advertisement Message. |
ICMPv6_NEIGHBOR_SOLICITATION | Neighbor Solicitation Message. |
ICMPv6_NEIGHBOR_ADVERTISEMENT | Neighbor Advertisement Message. |
ICMPv6_REDIRECT_MESSAGE | Redirect Message. |
ICMPv6_ROUTER_RENUMBERING | Router Renumbering Message. |
ICMPv6_ICMP_NODE_INFORMATION_QUERY | Node Information Query Message. |
ICMPv6_ICMP_NODE_INFORMATION_RESPONSE | Node Information Reply Message. |
ICMPv6_INVERSE_NEIGHBOR_DISCOVERY_SOLICITATION_MESSAGE | Inverse Neighbor Discovery Solicitation Message. |
ICMPv6_INVERSE_NEIGHBOR_DISCOVERY_ADVERTISEMENT_MESSAGE | Inverse Neighbor Discovery Advertisement Message. |
ICMPv6_MULTICAST_LISTENER_DISCOVERY_REPORTS | Multicast Listener Report Message. |
ICMPv6_HOME_AGENT_ADDRESS_DISCOVERY_REQUEST_MESSAGE | Home Agent Address Discovery Request Message. |
ICMPv6_HOME_AGENT_ADDRESS_DISCOVERY_REPLY_MESSAGE | Home Agent Address Discovery Reply Message. |
ICMPv6_MOBILE_PREFIX_SOLICITATION | Mobile Prefix Solicitation Message. |
ICMPv6_MOBILE_PREFIX_ADVERTISEMENT | Mobile Prefix Advertisement Message. |
ICMPv6_CERTIFICATION_PATH_SOLICITATION | Certification Path Solicitation Message. |
ICMPv6_CERTIFICATION_PATH_ADVERTISEMENT | Certification Path Advertisement Message. |
ICMPv6_EXPERIMENTAL_MOBILITY | ICMP Experimental Mobility Subtype Format and Registry Message. |
ICMPv6_MULTICAST_ROUTER_ADVERTISEMENT | Multicast Router Advertisement Message. |
ICMPv6_MULTICAST_ROUTER_SOLICITATION | Multicast Router Solicitation Message. |
ICMPv6_MULTICAST_ROUTER_TERMINATION | Multicast Router Termination Message. |
ICMPv6_RPL_CONTROL_MESSAGE | RPL Control Message. |
ICMPv6_PRIVATE_EXPERIMENTATION3 | Private Experimentation Message. |
ICMPv6_PRIVATE_EXPERIMENTATION4 | Private Experimentation Message. |
ICMPv6_RESERVED_EXPANSION_INFORMATIONAL | Reserved for expansion of ICMPv6 informational messages. |
enum pcpp::IgmpType |
IGMP message types.
An enum for all possible IPv4 and IPv6 protocol types.
An enum for supported IPv4 option types.
Enumerator | |
---|---|
IPV4OPT_EndOfOptionsList | End of Options List. |
IPV4OPT_NOP | No Operation. |
IPV4OPT_RecordRoute | Record Route. |
IPV4OPT_MTUProbe | MTU Probe. |
IPV4OPT_MTUReply | MTU Reply. |
IPV4OPT_QuickStart | Quick-Start. |
IPV4OPT_Timestamp | Timestamp. |
IPV4OPT_Traceroute | Traceroute. |
IPV4OPT_Security | Security. |
IPV4OPT_LooseSourceRoute | Loose Source Route. |
IPV4OPT_ExtendedSecurity | Extended Security. |
IPV4OPT_CommercialSecurity | Commercial Security. |
IPV4OPT_StreamID | Stream ID. |
IPV4OPT_StrictSourceRoute | Strict Source Route. |
IPV4OPT_ExtendedInternetProtocol | Extended Internet Protocol. |
IPV4OPT_AddressExtension | Address Extension. |
IPV4OPT_RouterAlert | Router Alert. |
IPV4OPT_SelectiveDirectedBroadcast | Selective Directed Broadcast. |
IPV4OPT_DynamicPacketState | Dynamic Packet State. |
IPV4OPT_UpstreamMulticastPkt | Upstream Multicast Pkt. |
IPV4OPT_Unknown | Unknown IPv4 option. |
enum pcpp::LinkLayerType |
An enum describing all known link layer type. Taken from: http://www.tcpdump.org/linktypes.html .
Enumerator | |
---|---|
LINKTYPE_NULL | BSD loopback encapsulation. |
LINKTYPE_ETHERNET | IEEE 802.3 Ethernet. |
LINKTYPE_AX25 | AX.25 packet. |
LINKTYPE_IEEE802_5 | IEEE 802.5 Token Ring. |
LINKTYPE_ARCNET_BSD | ARCNET Data Packets. |
LINKTYPE_SLIP | SLIP, encapsulated with a LINKTYPE_SLIP header. |
LINKTYPE_PPP | PPP, as per RFC 1661 and RFC 1662. |
LINKTYPE_FDDI | FDDI, as specified by ANSI INCITS 239-1994. |
LINKTYPE_DLT_RAW1 | Raw IP. |
LINKTYPE_DLT_RAW2 | Raw IP (OpenBSD) |
LINKTYPE_PPP_HDLC | PPP in HDLC-like framing, as per RFC 1662, or Cisco PPP with HDLC framing, as per section 4.3.1 of RFC 1547. |
LINKTYPE_PPP_ETHER | PPPoE. |
LINKTYPE_ATM_RFC1483 | RFC 1483 LLC/SNAP-encapsulated ATM. |
LINKTYPE_RAW | Raw IP. |
LINKTYPE_C_HDLC | Cisco PPP with HDLC framing. |
LINKTYPE_IEEE802_11 | IEEE 802.11 wireless LAN. |
LINKTYPE_FRELAY | Frame Relay. |
LINKTYPE_LOOP | OpenBSD loopback encapsulation. |
LINKTYPE_LINUX_SLL | Linux "cooked" capture encapsulation. |
LINKTYPE_LTALK | Apple LocalTalk. |
LINKTYPE_PFLOG | OpenBSD pflog. |
LINKTYPE_IEEE802_11_PRISM | Prism monitor mode information followed by an 802.11 header. |
LINKTYPE_IP_OVER_FC | RFC 2625 IP-over-Fibre Channel. |
LINKTYPE_SUNATM | ATM traffic, encapsulated as per the scheme used by SunATM devices. |
LINKTYPE_IEEE802_11_RADIOTAP | Radiotap link-layer information followed by an 802.11 header. |
LINKTYPE_ARCNET_LINUX | ARCNET Data Packets, as described by the ARCNET Trade Association standard ATA 878.1-1999. |
LINKTYPE_APPLE_IP_OVER_IEEE1394 | Apple IP-over-IEEE 1394 cooked header. |
LINKTYPE_MTP2_WITH_PHDR | Signaling System 7 Message Transfer Part Level 2. |
LINKTYPE_MTP2 | Signaling System 7 Message Transfer Part Level 2. |
LINKTYPE_MTP3 | Signaling System 7 Message Transfer Part Level 3. |
LINKTYPE_SCCP | Signaling System 7 Signalling Connection Control Part. |
LINKTYPE_DOCSIS | Signaling System 7 Signalling Connection Control Part. |
LINKTYPE_LINUX_IRDA | Linux-IrDA packets. |
LINKTYPE_USER0 | Reserved for private use. |
LINKTYPE_USER1 | Reserved for private use. |
LINKTYPE_USER2 | Reserved for private use. |
LINKTYPE_USER3 | Reserved for private use. |
LINKTYPE_USER4 | Reserved for private use. |
LINKTYPE_USER5 | Reserved for private use. |
LINKTYPE_USER6 | Reserved for private use. |
LINKTYPE_USER7 | Reserved for private use. |
LINKTYPE_USER8 | Reserved for private use. |
LINKTYPE_USER9 | Reserved for private use. |
LINKTYPE_USER10 | Reserved for private use. |
LINKTYPE_USER11 | Reserved for private use. |
LINKTYPE_USER12 | Reserved for private use. |
LINKTYPE_USER13 | Reserved for private use. |
LINKTYPE_USER14 | Reserved for private use. |
LINKTYPE_USER15 | Reserved for private use. |
LINKTYPE_IEEE802_11_AVS | AVS monitor mode information followed by an 802.11 header. |
LINKTYPE_BACNET_MS_TP | BACnet MS/TP frames. |
LINKTYPE_PPP_PPPD | PPP in HDLC-like encapsulation, like LINKTYPE_PPP_HDLC, but with the 0xff address byte replaced by a direction indication - 0x00 for incoming and 0x01 for outgoing |
LINKTYPE_GPRS_LLC | General Packet Radio Service Logical Link Control. |
LINKTYPE_GPF_T | Transparent-mapped generic framing procedure. |
LINKTYPE_GPF_F | Frame-mapped generic framing procedure. |
LINKTYPE_LINUX_LAPD | Link Access Procedures on the D Channel (LAPD) frames. |
LINKTYPE_BLUETOOTH_HCI_H4 | Bluetooth HCI UART transport layer. |
LINKTYPE_USB_LINUX | USB packets, beginning with a Linux USB header. |
LINKTYPE_PPI | Per-Packet Information information. |
LINKTYPE_IEEE802_15_4 | IEEE 802.15.4 wireless Personal Area Network. |
LINKTYPE_SITA | Various link-layer types, with a pseudo-header, for SITA. |
LINKTYPE_ERF | Various link-layer types, with a pseudo-header, for Endace DAG cards; encapsulates Endace ERF record. |
LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR | Bluetooth HCI UART transport layer. |
LINKTYPE_AX25_KISS | AX.25 packet, with a 1-byte KISS header containing a type indicator. |
LINKTYPE_LAPD | Link Access Procedures on the D Channel (LAPD) frames. |
LINKTYPE_PPP_WITH_DIR | PPP, as per RFC 1661 and RFC 1662, preceded with a one-byte pseudo-header with a zero value meaning "received by this host" and a non-zero value meaning "sent by this host" |
LINKTYPE_C_HDLC_WITH_DIR | Cisco PPP with HDLC framing. |
LINKTYPE_FRELAY_WITH_DIR | Frame Relay. |
LINKTYPE_IPMB_LINUX | IPMB over an I2C circuit. |
LINKTYPE_IEEE802_15_4_NONASK_PHY | IEEE 802.15.4 wireless Personal Area Network. |
LINKTYPE_USB_LINUX_MMAPPED | USB packets, beginning with a Linux USB header. |
LINKTYPE_FC_2 | Fibre Channel FC-2 frames, beginning with a Frame_Header. |
LINKTYPE_FC_2_WITH_FRAME_DELIMS | Fibre Channel FC-2 frames. |
LINKTYPE_IPNET | Solaris ipnet pseudo-header. |
LINKTYPE_CAN_SOCKETCAN | CAN (Controller Area Network) frames, with a pseudo-header as supplied by Linux SocketCAN. |
LINKTYPE_IPV4 | Raw IPv4; the packet begins with an IPv4 header. |
LINKTYPE_IPV6 | Raw IPv6; the packet begins with an IPv6 header. |
LINKTYPE_IEEE802_15_4_NOFCS | IEEE 802.15.4 wireless Personal Area Network, without the FCS at the end of the frame. |
LINKTYPE_DBUS | Raw D-Bus messages, starting with the endianness flag, followed by the message type, etc., but without the authentication handshake before the message sequence |
LINKTYPE_DVB_CI | DVB-CI (DVB Common Interface for communication between a PC Card module and a DVB receiver), with the message format specified by the PCAP format for DVB-CI specification |
LINKTYPE_MUX27010 | Variant of 3GPP TS 27.010 multiplexing protocol (similar to, but not the same as, 27.010) |
LINKTYPE_STANAG_5066_D_PDU | D_PDUs as described by NATO standard STANAG 5066, starting with the synchronization sequence, and including both header and data CRCs |
LINKTYPE_NFLOG | Linux netlink NETLINK NFLOG socket log messages. |
LINKTYPE_NETANALYZER | Pseudo-header for Hilscher Gesellschaft für Systemautomation mbH netANALYZER devices, followed by an Ethernet frame, beginning with the MAC header and ending with the FCS |
LINKTYPE_NETANALYZER_TRANSPARENT | Pseudo-header for Hilscher Gesellschaft für Systemautomation mbH netANALYZER devices, followed by an Ethernet frame, beginning with the preamble, SFD, and MAC header, and ending with the FCS |
LINKTYPE_IPOIB | IP-over-InfiniBand, as specified by RFC 4391 section 6. |
LINKTYPE_MPEG_2_TS | MPEG-2 Transport Stream transport packets, as specified by ISO 13818-1/ITU-T Recommendation H.222.0. |
LINKTYPE_NG40 | Pseudo-header for ng4T GmbH's UMTS Iub/Iur-over-ATM and Iub/Iur-over-IP format as used by their ng40 protocol tester |
LINKTYPE_NFC_LLCP | Pseudo-header for NFC LLCP packet captures, followed by frame data for the LLCP Protocol as specified by NFCForum-TS-LLCP_1.1 |
LINKTYPE_INFINIBAND | Raw InfiniBand frames, starting with the Local Routing Header. |
LINKTYPE_SCTP | SCTP packets, as defined by RFC 4960, with no lower-level protocols such as IPv4 or IPv6. |
LINKTYPE_USBPCAP | USB packets, beginning with a USBPcap header. |
LINKTYPE_RTAC_SERIAL | Serial-line packet header for the Schweitzer Engineering Laboratories "RTAC" product. |
LINKTYPE_BLUETOOTH_LE_LL | Bluetooth Low Energy air interface Link Layer packets. |
LINKTYPE_NETLINK | Linux Netlink capture encapsulation. |
LINKTYPE_BLUETOOTH_LINUX_MONITOR | Bluetooth Linux Monitor encapsulation of traffic for the BlueZ stack. |
LINKTYPE_BLUETOOTH_BREDR_BB | Bluetooth Basic Rate and Enhanced Data Rate baseband packets. |
LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR | Bluetooth Low Energy link-layer packets. |
LINKTYPE_PROFIBUS_DL | PROFIBUS data link layer packets, as specified by IEC standard 61158-6-3. |
LINKTYPE_PKTAP | Apple PKTAP capture encapsulation. |
LINKTYPE_EPON | Ethernet-over-passive-optical-network packets. |
LINKTYPE_IPMI_HPM_2 | IPMI trace packets, as specified by Table 3-20 "Trace Data Block Format" in the PICMG HPM.2 specification. |
LINKTYPE_ZWAVE_R1_R2 | Per Joshua Wright jwrig, formats for Z-Wave RF profiles R1 and R2 captures. ht@h asbor g.co m |
LINKTYPE_ZWAVE_R3 | Per Joshua Wright jwrig, formats for Z-Wave RF profile R3 captures. ht@h asbor g.co m |
LINKTYPE_WATTSTOPPER_DLM | Formats for WattStopper Digital Lighting Management (DLM) and Legrand Nitoo Open protocol common packet structure captures |
LINKTYPE_ISO_14443 | Messages between ISO 14443 contactless smartcards (Proximity Integrated Circuit Card, PICC) and card readers (Proximity Coupling Device, PCD), with the message format specified by the PCAP format for ISO14443 specification |
LINKTYPE_LINUX_SLL2 | Linux "cooked" capture encapsulation v2. |
LINKTYPE_INVALID | Set if interface ID for a packet of a pcapng file is too high. |
|
strong |
An enum representing the log level. Currently 4 log levels are supported: Off, Error, Info and Debug. Info is the default log level
Enumerator | |
---|---|
Off | No log messages are emitted. |
Error | Error level logs are emitted. |
Info | Info level logs and above are emitted. |
Debug | Debug level logs and above are emitted. |
enum pcpp::LogModule : uint8_t |
An enum representing all PcapPlusPlus modules.
Enumerator | |
---|---|
CommonLogModuleIpUtils | IP Utils module (Common++) |
CommonLogModuleTablePrinter | Table printer module (Common++) |
CommonLogModuleGenericUtils | Generic Utils (Common++) |
PacketLogModuleRawPacket | RawPacket module (Packet++) |
PacketLogModulePacket | Packet module (Packet++) |
PacketLogModuleLayer | Layer module (Packet++) |
PacketLogModuleAsn1Codec | Asn1Codec module (Packet++) |
PacketLogModuleArpLayer | ArpLayer module (Packet++) |
PacketLogModuleEthLayer | EthLayer module (Packet++) |
PacketLogModuleIPv4Layer | IPv4Layer module (Packet++) |
PacketLogModuleIPv6Layer | IPv6Layer module (Packet++) |
PacketLogModulePayloadLayer | PayloadLayer module (Packet++) |
PacketLogModuleTcpLayer | TcpLayer module (Packet++) |
PacketLogModuleUdpLayer | UdpLayer module (Packet++) |
PacketLogModuleVlanLayer | VlanLayer module (Packet++) |
PacketLogModuleHttpLayer | HttpLayer module (Packet++) |
PacketLogModulePPPoELayer | PPPoELayer module (Packet++) |
PacketLogModuleDnsLayer | DnsLayer module (Packet++) |
PacketLogModuleMplsLayer | MplsLayer module (Packet++) |
PacketLogModuleIcmpLayer | IcmpLayer module (Packet++) |
PacketLogModuleIcmpV6Layer | IcmpV6Layer module (Packet++) |
PacketLogModuleGreLayer | GreLayer module (Packet++) |
PacketLogModuleSSLLayer | SSLLayer module (Packet++) |
PacketLogModuleSllLayer | SllLayer module (Packet++) |
PacketLogModuleSll2Layer | Sll2Layer module (Packet++) |
PacketLogModuleNflogLayer | NflogLayer module (Packet++) |
PacketLogModuleDhcpLayer | DhcpLayer module (Packet++) |
PacketLogModuleDhcpV6Layer | DhcpV6Layer module (Packet++) |
PacketLogModuleIgmpLayer | IgmpLayer module (Packet++) |
PacketLogModuleSipLayer | SipLayer module (Packet++) |
PacketLogModuleSdpLayer | SdpLayer module (Packet++) |
PacketLogModuleRadiusLayer | RadiusLayer module (Packet++) |
PacketLogModuleGtpLayer | GtpLayer module (Packet++) |
PacketLogModuleBgpLayer | GtpLayer module (Packet++) |
PacketLogModuleSSHLayer | SSHLayer module (Packet++) |
PacketLogModuleVrrpLayer | Vrrp Record module (Packet++) |
PacketLogModuleTcpReassembly | TcpReassembly module (Packet++) |
PacketLogModuleIPReassembly | IPReassembly module (Packet++) |
PacketLogModuleIPSecLayer | IPSecLayers module (Packet++) |
PacketLogModuleNtpLayer | NtpLayer module (Packet++) |
PacketLogModuleTelnetLayer | TelnetLayer module (Packet++) |
PacketLogModuleStpLayer | StpLayer module (Packet++) |
PacketLogModuleLLCLayer | LLCLayer module (Packet++) |
PacketLogModuleNdpLayer | NdpLayer module (Packet++) |
PacketLogModuleFtpLayer | FtpLayer module (Packet++) |
PacketLogModuleSomeIpLayer | SomeIpLayer module (Packet++) |
PacketLogModuleSomeIpSdLayer | SomeIpSdLayer module (Packet++) |
PacketLogModuleWakeOnLanLayer | WakeOnLanLayer module (Packet++) |
PacketLogModuleSmtpLayer | SmtpLayer module (Packet++) |
PacketLogModuleWireGuardLayer | WireGuardLayer module (Packet++) |
PcapLogModuleWinPcapLiveDevice | WinPcapLiveDevice module (Pcap++) |
PcapLogModuleRemoteDevice | WinPcapRemoteDevice module (Pcap++) |
PcapLogModuleLiveDevice | PcapLiveDevice module (Pcap++) |
PcapLogModuleFileDevice | FileDevice module (Pcap++) |
PcapLogModulePfRingDevice | PfRingDevice module (Pcap++) |
PcapLogModuleMBufRawPacket | MBufRawPacket module (Pcap++) |
PcapLogModuleDpdkDevice | DpdkDevice module (Pcap++) |
PcapLogModuleKniDevice | KniDevice module (Pcap++) |
PcapLogModuleXdpDevice | XdpDevice module (Pcap++) |
PcapLogModuleNetworkUtils | Network Utils module (Pcap++) |
|
strong |
Represents TLV types of NFLOG packets
enum pcpp::OsiModelLayer |
An enum representing OSI model layers.
enum pcpp::SomeIpSdProtocolType : uint8_t |
SSL/TLS alert description types.
enum pcpp::SSLAlertLevel |
SSL/TLS authentication algorithms.
SSL/TLS client certificate types.
SSL/TLS extension types.
Enumerator | |
---|---|
SSL_EXT_SERVER_NAME | Server Name Indication extension. |
SSL_EXT_MAX_FRAGMENT_LENGTH | Maximum Fragment Length Negotiation extension. |
SSL_EXT_CLIENT_CERTIFICATE_URL | Client Certificate URLs extension. |
SSL_EXT_TRUSTED_CA_KEYS | Trusted CA Indication extension. |
SSL_EXT_TRUNCATED_HMAC | Truncated HMAC extension. |
SSL_EXT_STATUS_REQUEST | Certificate Status Request extension. |
SSL_EXT_USER_MAPPING | TLS User Mapping extension. |
SSL_EXT_CLIENT_AUTHZ | Client Authorization extension. |
SSL_EXT_SERVER_AUTHZ | Server Authorization extension. |
SSL_EXT_CERT_TYPE | Certificate Type extension. |
SSL_EXT_SUPPORTED_GROUPS | Supported Groups extension (renamed from "elliptic curves") |
SSL_EXT_EC_POINT_FORMATS | Elliptic Curves Point Format extension. |
SSL_EXT_SRP | Secure Remote Password extension. |
SSL_EXT_SIGNATURE_ALGORITHMS | Signature Algorithms extension. |
SSL_EXT_USE_SRTP | Use Secure Real-time Transport Protocol extension. |
SSL_EXT_HEARTBEAT | TLS Heartbit extension. |
SSL_EXT_APPLICATION_LAYER_PROTOCOL_NEGOTIATION | Application Layer Protocol Negotiation (ALPN) extension. |
SSL_EXT_STATUS_REQUEST_V2 | Status Request extension. |
SSL_EXT_SIGNED_CERTIFICATE_TIMESTAMP | Signed Certificate Timestamp extension. |
SSL_EXT_CLIENT_CERTIFICATE_TYPE | Client Certificate Type extension. |
SSL_EXT_SERVER_CERTIFICATE_TYPE | Server Certificate Type extension. |
SSL_EXT_PADDING | ClientHello Padding extension. |
SSL_EXT_ENCRYPT_THEN_MAC | Encrypt-then-MAC extension. |
SSL_EXT_EXTENDED_MASTER_SECRET | Extended Master Secret extension. |
SSL_EXT_TOKEN_BINDING | Token Binding extension. |
SSL_EXT_SESSIONTICKET_TLS | SessionTicket TLS extension. |
SSL_EXT_PRE_SHARED_KEY | Pre-shared key (PSK) extension (TLS 1.3) |
SSL_EXT_EARLY_DATA | Early data extension (TLS 1.3) |
SSL_EXT_SUPPORTED_VERSIONS | Supported versions extension (TLS 1.3) |
SSL_EXT_COOKIE | Cookie extension (TLS 1.3) |
SSL_EXT_PSK_KEY_EXCHANGE_MODES | Pre-Shared Key Exchange Modes extension (TLS 1.3) |
SSL_EXT_CERTIFICATE_AUTHORITIES | Certificate authorities extension (TLS 1.3) |
SSL_EXT_OLD_FILTERS | Old filters extension (TLS 1.3) |
SSL_EXT_POST_HANDSHAKE_AUTH | Post handshake auth extension (TLS 1.3) |
SSL_EXT_SIGNATURE_ALGORITHM_CERT | Signature algorithm cert extension (TLS 1.3) |
SSL_EXT_KEY_SHARE | Key share extension (TLS 1.3) |
SSL_EXT_RENEGOTIATION_INFO | Renegotiation Indication extension. |
SSL_EXT_Unknown | Unknown extension. |
SSL/TLS handshake message types.
SSL/TLS hashing algorithms.
SSL/TLS key exchange algorithms.
enum pcpp::SSLRecordType |
SSL/TLS symmetric encryption algorithms.
|
strong |
TCP options types.
Enumerator | |
---|---|
Nop | Padding. |
Eol | End of options. |
Mss | Segment size negotiating. |
Window | Window scaling. |
SackPerm | SACK Permitted. |
Sack | SACK Block. |
Echo | Echo (obsoleted by option TcpOptionEnumType::Timestamp) |
EchoReply | Echo Reply (obsoleted by option TcpOptionEnumType::Timestamp) |
Timestamp | TCP Timestamps. |
Cc | CC (obsolete) |
CcNew | CC.NEW (obsolete) |
CcEcho | CC.ECHO(obsolete) |
Md5 | MD5 Signature Option. |
MpTcp | Multipath TCP. |
Scps | SCPS Capabilities. |
Snack | SCPS SNACK. |
RecBound | SCPS Record Boundary. |
CorrExp | SCPS Corruption Experienced. |
Qs | Quick-Start Response. |
UserTo | User Timeout Option (also, other known unauthorized use) |
ExpFd | RFC3692-style Experiment 1 (also improperly used for shipping products) |
ExpFe | RFC3692-style Experiment 2 (also improperly used for shipping products) |
RvbdProbe | Riverbed probe option, non IANA registered option number. |
RvbdTrpy | Riverbed transparency option, non IANA registered option number. |
Unknown | Unknown option. |
enum pcpp::TcpOptionType : uint8_t |
TCP options types.
std::string pcpp::byteArrayToHexString | ( | const uint8_t * | byteArr, |
size_t | byteArrSize, | ||
int | stringSizeLimit = -1 |
||
) |
Convert a byte array into a string of hex characters. For example: for the array { 0xaa, 0x2b, 0x10 } the string "aa2b10" will be returned
[in] | byteArr | A byte array |
[in] | byteArrSize | The size of the byte array [in bytes] |
[in] | stringSizeLimit | An optional parameter that enables to limit the returned string size. If set to a positive integer value the returned string size will be equal or less than this value. If the string representation of the whole array is longer than this size then only part of the array will be read. The default value is -1 which means no string size limitation |
int pcpp::clockGetTime | ( | long & | sec, |
long & | nsec | ||
) |
Retrieve a system-wide real-time accurate clock. It's actually a multi-platform version of clock_gettime() which is fully supported only on Linux
[out] | sec | The second portion of the time |
[out] | nsec | The nanosecond portion of the time |
uint16_t pcpp::computeChecksum | ( | ScalarBuffer< uint16_t > | vec[], |
size_t | vecSize | ||
) |
Computes the checksum for a vector of buffers
[in] | vec | The vector of buffers |
[in] | vecSize | Number of ScalarBuffers in vector |
uint16_t pcpp::computePseudoHdrChecksum | ( | uint8_t * | dataPtr, |
size_t | dataLen, | ||
IPAddress::AddressType | ipAddrType, | ||
uint8_t | protocolType, | ||
IPAddress | srcIPAddress, | ||
IPAddress | dstIPAddress | ||
) |
Computes the checksum for Pseudo header
[in] | dataPtr | Data pointer |
[in] | dataLen | Data length |
[in] | ipAddrType | IP address type(IPv4/IPv6) type IPAddress::AddressType |
[in] | protocolType | Current protocol type IPProtocolTypes |
[in] | srcIPAddress | Source IP Address |
[in] | dstIPAddress | Destination IP Address |
CoreMask pcpp::createCoreMaskFromCoreIds | ( | const std::vector< int > & | coreIds | ) |
Create a core mask from a vector of core IDs
[in] | coreIds | A vector of core IDs |
CoreMask pcpp::createCoreMaskFromCoreVector | ( | const std::vector< SystemCore > & | cores | ) |
Create a core mask from a vector of system cores
[in] | cores | A vector of SystemCore instances |
void pcpp::createCoreVectorFromCoreMask | ( | CoreMask | coreMask, |
std::vector< SystemCore > & | resultVec | ||
) |
Convert a core mask into a vector of its appropriate system cores
[in] | coreMask | The input core mask |
[out] | resultVec | The vector that will contain the system cores |
char* pcpp::cross_platform_memmem | ( | const char * | haystack, |
size_t | haystackLen, | ||
const char * | needle, | ||
size_t | needleLen | ||
) |
This is a cross platform version of memmem (https://man7.org/linux/man-pages/man3/memmem.3.html) which is not supported on all platforms.
[in] | haystack | A pointer to the buffer to be searched |
[in] | haystackLen | Length of the haystack buffer |
[in] | needle | A pointer to a buffer that will be searched for |
[in] | needleLen | Length of the needle buffer |
bool pcpp::directoryExists | ( | const std::string & | dirPath | ) |
Check if a directory exists
[in] | dirPath | Full path of the directory to search |
std::string pcpp::executeShellCommand | ( | const std::string & | command | ) |
Execute a shell command and return its output
[in] | command | The command to run |
std::runtime_error | Error executing the command. |
uint32_t pcpp::fnvHash | ( | ScalarBuffer< uint8_t > | vec[], |
size_t | vecSize | ||
) |
Computes Fowler-Noll-Vo (FNV-1) 32bit hash function on an array of byte buffers. The hash is calculated on each byte in each byte buffer, as if all byte buffers were one long byte buffer
[in] | vec | An array of byte buffers (ScalarBuffer of type uint8_t) |
[in] | vecSize | The length of vec |
uint32_t pcpp::fnvHash | ( | uint8_t * | buffer, |
size_t | bufSize | ||
) |
Computes Fowler-Noll-Vo (FNV-1) 32bit hash function on a byte buffer
[in] | buffer | The byte buffer |
[in] | bufSize | The size of the byte buffer |
|
inline |
CoreMask pcpp::getCoreMaskForAllMachineCores | ( | ) |
Create a core mask for all cores available on machine
std::string pcpp::getErrorString | ( | int | errnum | ) |
Cross-platform and thread-safe version of strerror
errnum | Value of errno |
std::string pcpp::getGitBranch | ( | ) |
std::string pcpp::getGitCommit | ( | ) |
std::string pcpp::getGitInfo | ( | ) |
int pcpp::getNumOfCores | ( | ) |
Get total number of cores on device
|
inline |
|
inline |
uint32_t pcpp::hash2Tuple | ( | Packet * | packet | ) |
A method that is given a packet and calculates a hash value by the packet's 2-tuple (IP src + IP dst). Supports IPv4 and IPv6. For packets which aren't IPv4/6 the value of 0 will be returned
[in] | packet | The packet to calculate hash for |
uint32_t pcpp::hash5Tuple | ( | Packet * | packet, |
bool const & | directionUnique = false |
||
) |
A method that is given a packet and calculates a hash value by the packet's 5-tuple. Supports IPv4, IPv6, TCP and UDP. For packets which doesn't have 5-tuple (for example: packets which aren't IPv4/6 or aren't TCP/UDP) the value of 0 will be returned
[in] | packet | The packet to calculate hash for |
[in] | directionUnique | Make hash value unique for each direction |
size_t pcpp::hexStringToByteArray | ( | const std::string & | hexString, |
uint8_t * | resultByteArr, | ||
size_t | resultByteArrSize | ||
) |
Convert a string of hex characters into a byte array. For example: for the string "aa2b10" an array of values { 0xaa, 0x2b, 0x10 } will be returned
[in] | hexString | A string of hex characters |
[out] | resultByteArr | A pre-allocated byte array where the result will be written to |
[in] | resultByteArrSize | The size of the pre-allocated byte array |
uint16_t pcpp::hostToNet16 | ( | uint16_t | host | ) |
A multi-platform version of htons
which convert host to network byte order
[in] | host | Value in host byte order |
uint32_t pcpp::hostToNet32 | ( | uint32_t | host | ) |
A multi-platform version of htonl
which convert host to network byte order
[in] | host | Value in host byte order |
void pcpp::multiPlatformMSleep | ( | uint32_t | milliseconds | ) |
A multi-platform version of sleep in milliseconds resolution. This method simply runs the right sleep method, according to the platform it is running on.
[in] | milliseconds | Number of milliseconds to sleep |
void pcpp::multiPlatformSleep | ( | uint32_t | seconds | ) |
A multi-platform version of the popular sleep method. This method simply runs the right sleep method, according to the platform it is running on.
[in] | seconds | Number of seconds to sleep |
uint16_t pcpp::netToHost16 | ( | uint16_t | net | ) |
A multi-platform version of ntohs
which convert network to host byte order
[in] | net | Value in network byte order |
uint32_t pcpp::netToHost32 | ( | uint32_t | net | ) |
A multi-platform version of ntohl
which convert network to host byte order
[in] | net | Value in network byte order |
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the not-equal-to operator
|
inline |
Overload of the equal-to operator
|
inline |
Overload of the equal-to operator
|
inline |
Overload of the equal-to operator
|
inline |
Overload of the equal-to operator
bool pcpp::operator== | ( | const IPAddress & | lhs, |
const in6_addr & | rhs | ||
) |
Overload of the equal-to operator
bool pcpp::operator== | ( | const IPAddress & | lhs, |
const in_addr & | rhs | ||
) |
Overload of the equal-to operator
bool pcpp::operator== | ( | const IPv4Address & | lhs, |
const in_addr & | rhs | ||
) |
Overload of the equal-to operator
bool pcpp::operator== | ( | const IPv6Address & | lhs, |
const in6_addr & | rhs | ||
) |
Overload of the equal-to operator