{"id":61563,"library":"pfring","title":"PF_RING","description":"Library to interface with the PF_RING™ kernel module for processing packets at high-rates while providing a consistent API.","status":"active","version":"8.8.0","language":"cpp","source_language":null,"source_url":null,"tags":["packet-capture","networking","high-performance","linux"],"install":[{"cmd":"vcpkg install pfring","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(pfring CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE pfring::pfring)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"pfring.h","correct":"#include <pfring.h>"}],"quickstart":{"code":"#include <pfring.h>\n#include <iostream>\n\nint main() {\n    pfring *ring = pfring_open(\"eth0\", 1500, 0);\n    if (ring) {\n        pfring_enable_ring(ring);\n        // Capture packets with pfring_recv()\n        pfring_close(ring);\n    }\n    return 0;\n}","lang":"cpp","description":"Open a PF_RING socket on an interface"},"warnings":[{"fix":"Install and load the PF_RING kernel module (sudo modprobe pf_ring)","message":"Requires PF_RING kernel module to be loaded","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'api':23 'captur':26 'consist':22 'high':17,29 'high-perform':28 'high-rat':16 'interfac':5 'kernel':10 'librari':3 'linux':31 'modul':11 'network':27 'packet':14,25 'packet-captur':24 'perform':30 'pf':1,8 'process':13 'provid':20 'rate':18 'ring':2,9","created_at":"2026-06-17T04:55:55.018765+00:00","updated_at":"2026-06-17T04:55:55.018765+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}