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-win32.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-win32.c')
-rw-r--r-- | pcap-win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-win32.c b/pcap-win32.c index 17ef874c..2ab6e2af 100644 --- a/pcap-win32.c +++ b/pcap-win32.c @@ -796,7 +796,7 @@ pcap_activate_win32(pcap_t *p) /* Init WinSock */ wsockinit(); - p->adapter = PacketOpenAdapter(p->opt.source); + p->adapter = PacketOpenAdapter(p->opt.device); if (p->adapter == NULL) { @@ -982,7 +982,7 @@ pcap_activate_win32(pcap_t *p) pcap_snprintf(keyname, sizeof(keyname), "%s\\CardParams\\%s", "SYSTEM\\CurrentControlSet\\Services\\DAG", - strstr(_strlwr(p->opt.source), "dag")); + strstr(_strlwr(p->opt.device), "dag")); do { status = RegOpenKeyEx(HKEY_LOCAL_MACHINE, keyname, 0, KEY_READ, &dagkey); |