aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-02-06 13:00:46 -0800
committerGuy Harris <guy@alum.mit.edu>2019-02-06 13:00:46 -0800
commita9ab840836f5dea800d9e121a8616fee084c1729 (patch)
treee742ba06553d9fa56af35b3e4fa04dddc1379840 /pcap-rpcap.c
parentf3bcb37f7986503455cbc5becc5960b7dc0d075b (diff)
When fetching interfaces over TLS, put rpcaps:// into the interface names.
If we're fetching interfaces with pcap_findalldevs_ex() with an rpcaps:// URL, put rpcaps:// rather than rpcap:// into the URLs that we return.
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r--pcap-rpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index 64b66c99..5b285004 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -2566,8 +2566,8 @@ pcap_findalldevs_ex_remote(const char *source, struct pcap_rmtauth *auth, pcap_i
tmpstring[findalldevs_if.namelen] = 0;
/* Create the new device identifier */
- if (pcap_createsrcstr(tmpstring2, PCAP_SRC_IFREMOTE,
- host, port, tmpstring, errbuf) == -1)
+ if (pcap_createsrcstr_ex(tmpstring2, PCAP_SRC_IFREMOTE,
+ host, port, tmpstring, uses_ssl, errbuf) == -1)
goto error;
stringlen = strlen(tmpstring2);