Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
732d0db6
Commit
732d0db6
authored
Aug 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpcap: Avoid deprecated pcap_lookupdev().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f37157b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
wpcap.c
dlls/wpcap/wpcap.c
+11
-1
No files found.
dlls/wpcap/wpcap.c
View file @
732d0db6
...
...
@@ -202,8 +202,18 @@ int CDECL wine_pcap_list_datalinks(pcap_t *p, int **dlt_buffer)
char
*
CDECL
wine_pcap_lookupdev
(
char
*
errbuf
)
{
static
char
*
ret
;
pcap_if_t
*
devs
;
TRACE
(
"(%p)
\n
"
,
errbuf
);
return
pcap_lookupdev
(
errbuf
);
if
(
!
ret
)
{
if
(
pcap_findalldevs
(
&
devs
,
errbuf
)
==
-
1
)
return
NULL
;
if
(
!
devs
)
return
NULL
;
if
((
ret
=
heap_alloc
(
strlen
(
devs
->
name
)
+
1
)))
strcpy
(
ret
,
devs
->
name
);
pcap_freealldevs
(
devs
);
}
return
ret
;
}
int
CDECL
wine_pcap_lookupnet
(
const
char
*
device
,
unsigned
int
*
netp
,
unsigned
int
*
maskp
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment