logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

pcap_freecode - free a BPF program

Description

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).

Name

pcap_freecode - free a BPF program

See Also

pcap(3PCAP) 3 January 2014 PCAP_FREECODE(3PCAP)

Synopsis

#include<pcap/pcap.h>voidpcap_freecode(structbpf_program*);

See Also