git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5db130
)
If pcap_open_live() or pcap_open() fails due to not having WinPcap,
author
guy
<guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Dec 2011 21:18:08 +0000
(21:18 +0000)
committer
guy
<guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Dec 2011 21:18:08 +0000
(21:18 +0000)
supply an appropriate error string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40330
f5534014
-38df-0310-8fa8-
9805f1628bb7
capture-wpcap.c
patch
|
blob
|
history
diff --git
a/capture-wpcap.c
b/capture-wpcap.c
index 5492f972ca51ca0448cfaa097e3ddb13a442f386..6fd252f9878735fdf7c76882bf6663b84ab6eadd 100644
(file)
--- a/
capture-wpcap.c
+++ b/
capture-wpcap.c
@@
-324,6
+324,8
@@
pcap_t*
pcap_open_live(const char *a, int b, int c, int d, char *e)
{
if (!has_wpcap) {
+ g_snprintf(e, "unable to load WinPcap (wpcap.dll); can't open %s to capture",
+ a);
return NULL;
}
return p_pcap_open_live(a, b, c, d, e);
@@
-356,6
+358,8
@@
pcap_t*
pcap_open(const char *a, int b, int c, int d, struct pcap_rmtauth *e, char *f)
{
if (!has_wpcap) {
+ g_snprintf(f, "unable to load WinPcap (wpcap.dll); can't open %s to capture",
+ a);
return NULL;
}
return p_pcap_open(a, b, c, d, e, f);