pcap_set_buffer_size(3pcap)

pcap_set_buffer_size3pcap

Set the buffer size for a not-yet-activated capture handle

Usage

#include <pcap/pcap.h>

int pcap_set_buffer_size(pcap_t *p, int buffer_size);

Overview

pcap_set_buffer_size() sets the buffer size that will be used on a capture handle when the handle is activated to buffer_size, which is in units of bytes.

Return value

pcap_set_buffer_size() returns 0 on success or PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated.

Releases

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

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

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