pcap_freecode(3pcap)

pcap_freecode3pcap

Free a bpf program

Usage

#include <pcap/pcap.h>

void pcap_freecode(struct bpf_program *);

Overview

pcap_freecode() is used to free up allocated memory pointed to by a bpf_program struct generated by pcap_compile(3PCAP) when that BPF program is no longer needed, for example after it has been made the filter program for a pcap_t handle by a call to pcap_setfilter(3PCAP).

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0–7
  2. 8
  3. 9–10
  4. 11–13
  5. Arch

From libpcap 1.11.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.