PCAP_FREECODE(3PCAP)

πŸ“¦
version 1.10.7 Β· 2 versions
  • 1.10.7 Β· alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.11.0 Β· arch rolling
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

pcap_freecode β€” free a BPF program. This page is from the 3PCAP manual, bestie. πŸ’…

✨ SYNOPSIS ✨

#include <pcap/pcap.h>

void pcap_freecode(struct bpf_program *);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so pcap_freecode() is your cleanup bestie: it frees up allocated memory pointed to by a bpf_program struct generated by pcap_compile(3PCAP) when that BPF program is no longer needed. Like, for example, after it has been made the filter program for a pcap structure by a call to pcap_setfilter(3PCAP). That’s the moment. Slay. 🫢

🌈 SEE ALSO 🌈

  • pcap(3PCAP) β€” the reference bestie, fr fr. πŸ‘‘

Mwah! πŸ’– This lil page is from the 3PCAP manual, dated 3 January 2014, and the footer vibe is PCAP_FREECODE(3PCAP). Periodt. πŸŽ€

πŸ“¦ where this page comes from