altafinance / ushark Goto Github PK
View Code? Open in Web Editor NEWUshark is a native module which brings the Wireshark dissection to Nodejs apps
Ushark is a native module which brings the Wireshark dissection to Nodejs apps
I'm having a memory leak when modifying the real-time traffic that ushark uses to parse fetched from the network device:
pcap_open_offline
function in cap_example.c
to pcap_open_live
to listen for the traffic of a network device.atop -m
command to observe the change of the memory occupation of the program, and find that the memory occupation is increasing.valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --trace-children=yes --log-file=leak.txt -v ./test
gave the memory leak analysis report and found that there was no definitely lost
.memcpy(ws_buffer_start_ptr(buf), sk->dissect.pkt, len);
changed to memcpy(ws_buffer_start_ptr(buf), "", len);
When testing, the memory leak problem disappeared, so it can be judged that it is a problem with BUF. When I tried to add the processing logic for bufws_buffer_free(&buf);
There is no improvement either.Do you have an example of dfilter?
Is it possible to force Dissector to decode RTP packets more accurately?
Often it decodes them as "data" (raw) packets instead of RTP
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.