index
:
ptunnel-ng.git
Tunnel TCP connections through ICMP.
log msg
author
committer
range
coverity_scan
feature/libsodium-integration
feature/wireshark-dissector
master
ptunnel-ng/2.0.0
release
removed_extended_options
about
summary
refs
log
tree
commit
diff
path:
root
/
src
/
ptunnel.c
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'src/ptunnel.c')
-rw-r--r--
src/ptunnel.c
5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c
index 5089eca..d70edce 100644
--- a/
src/ptunnel.c
+++ b/
src/ptunnel.c
@@ -165,8 +165,13 @@ int main(int argc, char *argv[]) {
pt_random();
if (opts.list_pcap_devices) {
+#ifdef HAVE_PCAP
print_pcap_devices();
return 0;
+#else
+ pt_log(kLog_error, "Pcap not available!\n");
+ return 1;
+#endif
}
#ifdef HAVE_PCAP