]> The Tcpdump Group git mirrors - libpcap/commitdiff
Allow pcap_set_buffer_size() to set SNF_DATARING_SIZE in pcap-snf.c.
authorChristopher K Lee <[email protected]>
Thu, 14 May 2015 23:59:47 +0000 (16:59 -0700)
committerChristopher K Lee <[email protected]>
Thu, 14 May 2015 23:59:47 +0000 (16:59 -0700)
pcap-snf.c

index bfa0990e0f6ddfe4fa378811381a076b32cd999a..0eefb5d4fdb059836b4a888b0fe34c71845d7657 100644 (file)
@@ -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) {