summaryrefslogtreecommitdiff
path: root/pcap-snf.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-29 20:45:03 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-29 20:45:03 -0700
commitd6998249084df8dc1131b8dd3cbce0d65a075b4f (patch)
treea8e5e12973f2fa5c6797b578441f165dde7f5005 /pcap-snf.c
parent8924ffeafc0cef74a399e9c8eb285b46c5a04e0f (diff)
downloadlibpcap-d6998249084df8dc1131b8dd3cbce0d65a075b4f.tar.gz
Rename opt.source to opt.device.
For local captures, it's jut the device. If we add remote capture support, we'll be handed a URL, and will split the URL into multiple components, and will store the various components in the opt structure, with the path of the URL being opt.device.
Diffstat (limited to 'pcap-snf.c')
-rw-r--r--pcap-snf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-snf.c b/pcap-snf.c
index a453b11c..521867ba 100644
--- a/pcap-snf.c
+++ b/pcap-snf.c
@@ -242,7 +242,7 @@ static int
snf_activate(pcap_t* p)
{
struct pcap_snf *ps = p->priv;
- char *device = p->opt.source;
+ char *device = p->opt.device;
const char *nr = NULL;
int err;
int flags = -1, ring_id = -1;