diff options
author | Christopher K Lee <christopher.lee@cspi.com> | 2016-12-13 15:08:56 -0500 |
---|---|---|
committer | Christopher K Lee <christopher.lee@cspi.com> | 2016-12-13 15:08:56 -0500 |
commit | 0abbe69768d8b0006fec74767e7a5650c692bfae (patch) | |
tree | 81e372f724bf2476a8d2aebdc68d86301ccecb58 /pcap-snf.c | |
parent | 842012ab4d8188a66a4c03da66f1782ba31dcecb (diff) | |
download | libpcap-0abbe69768d8b0006fec74767e7a5650c692bfae.tar.gz |
Remove use of p->opt.buffer_size from snf_open. SNF will use env var.
Diffstat (limited to 'pcap-snf.c')
-rw-r--r-- | pcap-snf.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -265,7 +265,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 */ - p->opt.buffer_size < 1048576 ? 1048576 : p->opt.buffer_size, /* default to SNF_DATARING_SIZE from env */ + 0, /* default to SNF_DATARING_SIZE from env */ flags, /* may want pshared */ &ps->snf_handle); if (err != 0) { @@ -478,8 +478,7 @@ snf_findalldevs(pcap_if_t **devlistp, char *errbuf) return (-1); } (void)pcap_snprintf(desc,MAX_DESC_LENGTH,"Myricom Merge Bitmask All Ports snf%d", - allports); - curdev->description = strdup(desc); + allports); curdev->description = strdup(desc); if (curdev->description == NULL) { (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, |