Code Monkey home page Code Monkey logo

ushark's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ushark's Issues

memory leak

I'm having a memory leak when modifying the real-time traffic that ushark uses to parse fetched from the network device:

  1. First, modify the pcap_open_offline function in cap_example.c to pcap_open_live to listen for the traffic of a network device.
  2. Then run the program, use the atop -m command to observe the change of the memory occupation of the program, and find that the memory occupation is increasing.
  3. When I gave the memory leak analysis report with 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.
  4. When I put 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.
  5. I don't know if it has anything to do with libpcap library, I hope to get your help, thank you!

dfilter example

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.