|
PcapPlusPlus
20.08
|
Go to the documentation of this file. 1 #ifndef PCAPPP_RAW_PACKET
2 #define PCAPPP_RAW_PACKET
244 #define PCPP_MAX_PACKET_SIZE 65536
258 timespec m_TimeStamp;
259 bool m_DeleteRawDataAtDestructor;
262 void init(
bool deleteRawDataAtDestructor =
true);
263 void copyDataFrom(
const RawPacket& other,
bool allocateData =
true);
413 virtual void clear();
422 virtual void appendData(
const uint8_t* dataToAppend,
size_t dataToAppendLen);
432 virtual void insertData(
int atIndex,
const uint8_t* dataToInsert,
size_t dataToInsertLen);
440 virtual bool removeData(
int atIndex,
size_t numOfBytesToRemove);
virtual bool removeData(int atIndex, size_t numOfBytesToRemove)
@ LINKTYPE_DOCSIS
Definition: RawPacket.h:90
@ LINKTYPE_IEEE802_11
Definition: RawPacket.h:58
@ LINKTYPE_FC_2
Definition: RawPacket.h:170
@ LINKTYPE_FRELAY
Definition: RawPacket.h:60
@ LINKTYPE_USER9
Definition: RawPacket.h:112
@ LINKTYPE_BLUETOOTH_HCI_H4
Definition: RawPacket.h:140
virtual void appendData(const uint8_t *dataToAppend, size_t dataToAppendLen)
@ LINKTYPE_USER10
Definition: RawPacket.h:114
@ LINKTYPE_AX25_KISS
Definition: RawPacket.h:154
@ LINKTYPE_USER8
Definition: RawPacket.h:110
@ LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR
Definition: RawPacket.h:222
@ LINKTYPE_SCTP
Definition: RawPacket.h:208
@ LINKTYPE_PROFIBUS_DL
Definition: RawPacket.h:224
@ LINKTYPE_MTP2
Definition: RawPacket.h:84
@ LINKTYPE_ETHERNET
Definition: RawPacket.h:30
@ LINKTYPE_USER14
Definition: RawPacket.h:122
@ LINKTYPE_C_HDLC_WITH_DIR
Definition: RawPacket.h:160
@ LINKTYPE_MTP2_WITH_PHDR
Definition: RawPacket.h:82
virtual bool setRawData(const uint8_t *pRawData, int rawDataLen, timeval timestamp, LinkLayerType layerType=LINKTYPE_ETHERNET, int frameLength=-1)
@ LINKTYPE_LTALK
Definition: RawPacket.h:66
@ LINKTYPE_NFC_LLCP
Definition: RawPacket.h:204
@ LINKTYPE_NG40
Definition: RawPacket.h:202
@ LINKTYPE_SLIP
Definition: RawPacket.h:38
@ LINKTYPE_WATTSTOPPER_DLM
Definition: RawPacket.h:236
@ LINKTYPE_DLT_RAW2
Definition: RawPacket.h:46
@ LINKTYPE_LINUX_IRDA
Definition: RawPacket.h:92
@ LINKTYPE_PPP_WITH_DIR
Definition: RawPacket.h:158
@ LINKTYPE_IP_OVER_FC
Definition: RawPacket.h:72
@ LINKTYPE_SITA
Definition: RawPacket.h:148
@ LINKTYPE_USER11
Definition: RawPacket.h:116
int getRawDataLen() const
Definition: RawPacket.h:372
virtual uint8_t getObjectType() const
Definition: RawPacket.h:323
@ LINKTYPE_IEEE802_11_RADIOTAP
Definition: RawPacket.h:76
virtual bool reallocateData(size_t newBufferLength)
@ LINKTYPE_USER2
Definition: RawPacket.h:98
@ LINKTYPE_RAW
Definition: RawPacket.h:54
int getFrameLength() const
Definition: RawPacket.h:378
@ LINKTYPE_NETANALYZER_TRANSPARENT
Definition: RawPacket.h:196
@ LINKTYPE_IPV4
Definition: RawPacket.h:178
@ LINKTYPE_USB_LINUX_MMAPPED
Definition: RawPacket.h:168
@ LINKTYPE_MUX27010
Definition: RawPacket.h:188
@ LINKTYPE_IPMI_HPM_2
Definition: RawPacket.h:230
@ LINKTYPE_IPNET
Definition: RawPacket.h:174
@ LINKTYPE_USER1
Definition: RawPacket.h:96
@ LINKTYPE_ERF
Definition: RawPacket.h:150
@ LINKTYPE_C_HDLC
Definition: RawPacket.h:56
const uint8_t * getRawData() const
Definition: RawPacket.h:353
@ LINKTYPE_PPP_HDLC
Definition: RawPacket.h:48
@ LINKTYPE_FRELAY_WITH_DIR
Definition: RawPacket.h:162
@ LINKTYPE_LINUX_SLL
Definition: RawPacket.h:64
@ LINKTYPE_IEEE802_15_4
Definition: RawPacket.h:146
@ LINKTYPE_IEEE802_11_PRISM
Definition: RawPacket.h:70
@ LINKTYPE_PKTAP
Definition: RawPacket.h:226
@ LINKTYPE_SCCP
Definition: RawPacket.h:88
@ LINKTYPE_RTAC_SERIAL
Definition: RawPacket.h:212
@ LINKTYPE_NETANALYZER
Definition: RawPacket.h:194
RawPacket & operator=(const RawPacket &other)
@ LINKTYPE_DVB_CI
Definition: RawPacket.h:186
@ LINKTYPE_PPP
Definition: RawPacket.h:40
@ LINKTYPE_PPP_PPPD
Definition: RawPacket.h:130
@ LINKTYPE_GPF_F
Definition: RawPacket.h:136
@ LINKTYPE_NULL
Definition: RawPacket.h:28
virtual void insertData(int atIndex, const uint8_t *dataToInsert, size_t dataToInsertLen)
@ LINKTYPE_LINUX_LAPD
Definition: RawPacket.h:138
@ LINKTYPE_BLUETOOTH_LINUX_MONITOR
Definition: RawPacket.h:218
@ LINKTYPE_NETLINK
Definition: RawPacket.h:216
@ LINKTYPE_GPF_T
Definition: RawPacket.h:134
@ LINKTYPE_USER6
Definition: RawPacket.h:106
@ LINKTYPE_USBPCAP
Definition: RawPacket.h:210
@ LINKTYPE_FDDI
Definition: RawPacket.h:42
@ LINKTYPE_ATM_RFC1483
Definition: RawPacket.h:52
LinkLayerType getLinkLayerType() const
Definition: RawPacket.h:359
@ LINKTYPE_USER13
Definition: RawPacket.h:120
@ LINKTYPE_IEEE802_15_4_NONASK_PHY
Definition: RawPacket.h:166
@ LINKTYPE_BLUETOOTH_LE_LL
Definition: RawPacket.h:214
@ LINKTYPE_PPP_ETHER
Definition: RawPacket.h:50
bool isPacketSet() const
Definition: RawPacket.h:405
The main namespace for the PcapPlusPlus lib.
@ LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR
Definition: RawPacket.h:152
@ LINKTYPE_CAN_SOCKETCAN
Definition: RawPacket.h:176
@ LINKTYPE_EPON
Definition: RawPacket.h:228
@ LINKTYPE_DLT_RAW1
Definition: RawPacket.h:44
@ LINKTYPE_APPLE_IP_OVER_IEEE1394
Definition: RawPacket.h:80
LinkLayerType
Definition: RawPacket.h:25
@ LINKTYPE_AX25
Definition: RawPacket.h:32
@ LINKTYPE_USER0
Definition: RawPacket.h:94
@ LINKTYPE_MPEG_2_TS
Definition: RawPacket.h:200
@ LINKTYPE_MTP3
Definition: RawPacket.h:86
@ LINKTYPE_IEEE802_15_4_NOFCS
Definition: RawPacket.h:182
@ LINKTYPE_USER7
Definition: RawPacket.h:108
@ LINKTYPE_ZWAVE_R1_R2
Definition: RawPacket.h:232
static bool isLinkTypeValid(int linkTypeValue)
@ LINKTYPE_BLUETOOTH_BREDR_BB
Definition: RawPacket.h:220
@ LINKTYPE_SUNATM
Definition: RawPacket.h:74
@ LINKTYPE_INFINIBAND
Definition: RawPacket.h:206
@ LINKTYPE_USER5
Definition: RawPacket.h:104
@ LINKTYPE_USER4
Definition: RawPacket.h:102
@ LINKTYPE_ZWAVE_R3
Definition: RawPacket.h:234
@ LINKTYPE_IPMB_LINUX
Definition: RawPacket.h:164
@ LINKTYPE_FC_2_WITH_FRAME_DELIMS
Definition: RawPacket.h:172
@ LINKTYPE_IEEE802_11_AVS
Definition: RawPacket.h:126
@ LINKTYPE_IPV6
Definition: RawPacket.h:180
@ LINKTYPE_USER3
Definition: RawPacket.h:100
@ LINKTYPE_LOOP
Definition: RawPacket.h:62
@ LINKTYPE_STANAG_5066_D_PDU
Definition: RawPacket.h:190
@ LINKTYPE_ISO_14443
Definition: RawPacket.h:238
@ LINKTYPE_BACNET_MS_TP
Definition: RawPacket.h:128
@ LINKTYPE_ARCNET_BSD
Definition: RawPacket.h:36
@ LINKTYPE_LAPD
Definition: RawPacket.h:156
@ LINKTYPE_NFLOG
Definition: RawPacket.h:192
@ LINKTYPE_USB_LINUX
Definition: RawPacket.h:142
@ LINKTYPE_IPOIB
Definition: RawPacket.h:198
timespec getPacketTimeStamp() const
Definition: RawPacket.h:383
@ LINKTYPE_IEEE802_5
Definition: RawPacket.h:34
@ LINKTYPE_PFLOG
Definition: RawPacket.h:68
virtual bool setPacketTimeStamp(timeval timestamp)
@ LINKTYPE_PPI
Definition: RawPacket.h:144
@ LINKTYPE_ARCNET_LINUX
Definition: RawPacket.h:78
Definition: RawPacket.h:252
@ LINKTYPE_USER12
Definition: RawPacket.h:118
@ LINKTYPE_DBUS
Definition: RawPacket.h:184
@ LINKTYPE_GPRS_LLC
Definition: RawPacket.h:132
@ LINKTYPE_USER15
Definition: RawPacket.h:124