PCAP_FREECODE(3PCAP)PCAP_FREECODE(3PCAP)NAMEpcap_freecode - free a BPF program
SYNOPSIS
#include <pcap/pcap.h>
void pcap_freecode(struct bpf_program *);
DESCRIPTIONpcap_freecode() is used to free up allocated memory pointed to by a
bpf_program struct generated by pcap_compile() 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().
SEE ALSOpcap(3PCAP), pcap_compile(3PCAP), pcap_setfilter(3PCAP)ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌────────────────────┬─────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├────────────────────┼─────────────────────────┤
│Availability │ system/library/libpcap │
├────────────────────┼─────────────────────────┤
│Interface Stability │ Uncommitted │
└────────────────────┴─────────────────────────┘
NOTES
Source for libpcap is available at http://opensolaris.org and at
http://www.tcpdump.org. Documentation is available at
file:///usr/share/man, and http://www.tcpdump.org.
5 April 2008 PCAP_FREECODE(3PCAP)