From: Christopher K Lee Date: Thu, 14 May 2015 23:59:47 +0000 (-0700) Subject: Allow pcap_set_buffer_size() to set SNF_DATARING_SIZE in pcap-snf.c. X-Git-Tag: libpcap-1.9.0-rc1~41^2~5 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/dcabbcf1978231363dff66b45b2b82e464f64f64?hp=-c Allow pcap_set_buffer_size() to set SNF_DATARING_SIZE in pcap-snf.c. --- dcabbcf1978231363dff66b45b2b82e464f64f64 diff --git a/pcap-snf.c b/pcap-snf.c index bfa0990e..0eefb5d4 100644 --- a/pcap-snf.c +++ b/pcap-snf.c @@ -268,7 +268,7 @@ snf_activate(pcap_t* p) err = snf_open(ps->snf_boardnum, 0, /* let SNF API parse SNF_NUM_RINGS, if set */ NULL, /* default RSS, or use SNF_RSS_FLAGS env */ - 0, /* default to SNF_DATARING_SIZE from env */ + p->opt.buffer_size, /* default to SNF_DATARING_SIZE from env */ flags, /* may want pshared */ &ps->snf_handle); if (err != 0) {