diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-29 20:45:03 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-29 20:45:03 -0700 |
commit | d6998249084df8dc1131b8dd3cbce0d65a075b4f (patch) | |
tree | a8e5e12973f2fa5c6797b578441f165dde7f5005 /pcap-can-linux.c | |
parent | 8924ffeafc0cef74a399e9c8eb285b46c5a04e0f (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.c | 2 |
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, |