Giter VIP home page Giter VIP logo

Comments (4)

gil-obradors avatar gil-obradors commented on August 30, 2024

Found it!

if pcap.findalldevs(ct.byref(devlist), ebuf) == -1:

I start to understand...

But may be must be more easy for final user?
I come from pcap that isn't maintained and there exists some helper functions for that, for example:

https://github.com/pynetwork/pypcap/blob/a10cce7f4034e128ee257bf8f429e0ddc37cf54b/pcap.pyx#L510

Is the same method of bindings from pcap and pypcap?

from libpcap.

karpierz avatar karpierz commented on August 30, 2024

;>I come from pcap that isn't maintained
Take a look at: https://pypi.org/project/pcap-ct/ https://github.com/karpierz/pcap-ct
libpcap is strictly lowest level (C level) package.
It is a base for higher level pcap-ct (100% compatible with https://github.com/pynetwork/pypcap - de facto a fork of it, but based on libpcap/ctypes instead of Cython based bibding.)
pypcap/pcap-ct is much more pythonic and much more easier to use than raw libpcap.

from libpcap.

gil-obradors avatar gil-obradors commented on August 30, 2024

Ok! Thank you very much for your guidance!

from libpcap.

Related Issues (9)

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.