o
odin.langpkg.dev
packages / binding / odin-libpcap

odin-libpcap

0351188binding

Odin Bindings for the libpcap C library

No license · updated 3 years ago

Odin Libpcap!


General bindings for using the libpcap library on Linux, Mac and theoretically NPcap on Windows (untested)

Everything should be converted from the standard libpcap headers. Not everything has been completely tested, happy to fix errors as they pop up!

Converted Files:


  • bluetooth.odin
  • bpf.odin
  • can_socketcan.odin
  • dlt.odin
  • ipnet.odin
  • namedb.odin
  • nflog.odin
  • pcap.odin
  • sll.odin
  • usb.odin
  • vlan.odin

Tests inside tests/... will be expanded upon to clear everything as I get time..

Notes:

I have not added the function attrs to each to show which func is available where - I don't plan to but if someone wants to go through and add decorators etc, I'm happy to merge