39 questions
0
votes
0
answers
126
views
get jbyteArray from a pointer uint8_t* [closed]
The function getLayerPayload() in PcapPlusPlus returns a uint8_t* pointer, and I just want to make a jbyteArray out of this data to give back to Java.
I tried the following code:
while (reader->...
3
votes
1
answer
109
views
Create a RawPacket with a byte array
I'm creating an Android app that can capture the internet traffic to analyze later. Through a VPN tunnel, I can get the packets in a byte[] array.
Is it possible to create a pcpp::RawPacket in ...
-3
votes
2
answers
347
views
Load balancing in PCPP and DPDK
I’ve been trying to load balance the received packets across multiple physical rx queues (4 queues).
I assigned a core to each queue in order to receive packets from it.
After using DPDK’s ...
0
votes
1
answer
96
views
PcapPlusPlus cross compilation
I use the PcapPlusPlus library to craft packets and use them in my unit tests for my C application. These packets are not sent over the network. I just use functions to create/add protocol headers and ...
1
vote
0
answers
164
views
Dpdk packets corruptions using PcapPlusPlus
I'm using the dpdk api in PcapPlusPlus with a computer that has 32Gb Ram , 16 cores and 10 Gbp/s fiber optical sfp support.
However,with this configuration (im guessing, mainly the "...
1
vote
1
answer
408
views
Failing to compile and link PcapPlusPlus library with SYCL code
I want to use the C++ library PcapPlusPlus and it‘s header files in my SYCL code. More exactly I want to compile it with the Intel C++ Compiler (icpx). I know how to program and know how C, Java and ...
0
votes
0
answers
78
views
Problem with detect IP Layer When Pcap file have several Ethernet
I use the latest version of pcapplusplus(23.09). I have a pcap file that each frame has several Ethernet, like the below image:
I can't find the IP packet with the following commands. I think pcap ...
0
votes
1
answer
370
views
FetchContent_MakeAvailable adds optimization flag
In the project I'm building I experience wrong behavior regarding optimization flags. Normally I build with -g -O0.
Recently I wanted to add the PcapPlusPlus library to my project so I added following ...
0
votes
1
answer
307
views
How to add PcapPlusPlus library to a Qt Widgets project
I am working on Qt projects and will use PcapPlusPlus library for reading a PcapNG file.
I am using Windows and MSVC 2019 64 bit, and downloaded this library for my project: pcapplusplus-23.09-windows-...
0
votes
0
answers
564
views
Why did I get a Null/Loopback after I send a packet with pcpp?
I have a nginx instance running on localhost:80 and I want to send it a raw TCP SYN packet.
So I generate a dummy packet and send it to lo interface via pcapplusplus. However, when the Wireshark is ...
0
votes
0
answers
529
views
Entry Point Not Found wpcap.dll not found by starting the PcapPrinter
I test actually with PcapPlusPlus. It is checked out and added to my Visual Studio Pro 2022. The batch files in ci are executed and the npcap sdk is installed. In parallel Wireshark and Winpcap are ...
0
votes
0
answers
113
views
Which rpm i need to download for pcapplusplus library?
getting error
fatal error: SystemUtils.h: No such file or directory
#include "SystemUtils.h"
^~~~~~~~~~~~~~~
Packet.h: No such file or directory
#include "Packet.h"
^~~~~~~~~~
...
0
votes
0
answers
525
views
I get an empty device list when using PcapPlusPlus
At the moment, I am interested in networking and in order to learn more, I decided to use the PcapPlusPlus library to capture packets on my local network. My goal is to understand how packets are ...
0
votes
0
answers
82
views
How can I get the E2AP packet details and printed it using PcapPlusPlus?
I am trying to implement PcapPlusPlus and print E2AP packet details.
0
votes
0
answers
253
views
PcapPlusPlus Example- DPDKFilterTraffic not performing like I would expect, do I have something misconfigured?
I am working on an application that uses DPDK to write packet payloads to file and am investigating whether or not PcapPlusPlus could be used for this purpose. My setup is as follows:
I am using a ...