pcap_freecode
free a BPF program
- Provided by: libpcap0.8-dev (Version: 1.10.1-4ubuntu1.22.04.1)
- Source: libpcap
- Report a bug
free a BPF program
#include <pcap/pcap.h>
void pcap_freecode(struct bpf_program *);
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 structure by a call to pcap_setfilter(3PCAP).
pcap(3PCAP)