aboutsummaryrefslogtreecommitdiff
path: root/pcap-can-linux.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-can-linux.c
parent8924ffeafc0cef74a399e9c8eb285b46c5a04e0f (diff)
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-can-linux.c')
-rw-r--r--pcap-can-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-can-linux.c b/pcap-can-linux.c
index b4e2a008..ef7ca35b 100644
--- a/pcap-can-linux.c
+++ b/pcap-can-linux.c
@@ -172,7 +172,7 @@ can_activate(pcap_t* handle)
/* get interface index */
memset(&ifr, 0, sizeof(ifr));
- strlcpy(ifr.ifr_name, handle->opt.source, sizeof(ifr.ifr_name));
+ strlcpy(ifr.ifr_name, handle->opt.device, sizeof(ifr.ifr_name));
if (ioctl(handle->fd, SIOCGIFINDEX, &ifr) < 0)
{
pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,