diff options
| author | Guy Harris <guy@alum.mit.edu> | 2019-01-06 18:30:59 -0800 |
|---|---|---|
| committer | Guy Harris <guy@alum.mit.edu> | 2019-01-06 18:30:59 -0800 |
| commit | 0f24a43a7e9fbdcff2baae3990939b2bc25d9fd1 (patch) | |
| tree | e9454c53673854d2baea5478b91a055061ee7325 /tcpdump.c | |
| parent | e6fc07a5162a3b2f64aa3fcb274e142399c5e36b (diff) | |
| download | tcpdump-0f24a43a7e9fbdcff2baae3990939b2bc25d9fd1.tar.gz | |
Handle rpcaps:// URLs as well, for rpcap-over-TLS.
Diffstat (limited to 'tcpdump.c')
| -rw-r--r-- | tcpdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1188,9 +1188,10 @@ _U_ #ifdef HAVE_PCAP_OPEN /* - * Prefix for rpcap URLs. + * Prefixes for rpcap URLs. */ static char rpcap_prefix[] = "rpcap://"; +static char rpcap_ssl_prefix[] = "rpcaps://"; #endif static pcap_t * @@ -1206,7 +1207,8 @@ open_interface(const char *device, netdissect_options *ndo, char *ebuf) /* * Is this an rpcap URL? */ - if (strncmp(device, rpcap_prefix, sizeof(rpcap_prefix) - 1) == 0) { + if (strncmp(device, rpcap_prefix, sizeof(rpcap_prefix) - 1) == 0 || + strncmp(device, rpcap_ssl_prefix, sizeof(rpcap_ssl_prefix) - 1) == 0) { /* * Yes. Open it with pcap_open(). */ |
