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
d45f9144
Commit
d45f9144
authored
Aug 15, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Aug 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpcap: Implement pcap_loop.
parent
927f8bee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
wpcap.c
dlls/wpcap/wpcap.c
+18
-0
wpcap.spec
dlls/wpcap/wpcap.spec
+1
-1
No files found.
dlls/wpcap/wpcap.c
View file @
d45f9144
...
@@ -123,6 +123,24 @@ int CDECL wine_pcap_lookupnet(const char *device, unsigned int *netp, unsigned i
...
@@ -123,6 +123,24 @@ int CDECL wine_pcap_lookupnet(const char *device, unsigned int *netp, unsigned i
return
pcap_lookupnet
(
device
,
netp
,
maskp
,
errbuf
);
return
pcap_lookupnet
(
device
,
netp
,
maskp
,
errbuf
);
}
}
int
CDECL
wine_pcap_loop
(
pcap_t
*
p
,
int
cnt
,
void
(
CALLBACK
*
callback
)(
u_char
*
,
const
struct
pcap_pkthdr
*
,
const
u_char
*
),
unsigned
char
*
user
)
{
TRACE
(
"(%p %i %p %p)
\n
"
,
p
,
cnt
,
callback
,
user
);
if
(
callback
)
{
PCAP_HANDLER_CALLBACK
*
pcb
;
pcb
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
PCAP_HANDLER_CALLBACK
));
pcb
->
pfn_cb
=
callback
;
pcb
->
user_data
=
user
;
return
pcap_loop
(
p
,
cnt
,
pcap_handler_callback
,
(
unsigned
char
*
)
pcb
);
}
return
pcap_loop
(
p
,
cnt
,
NULL
,
user
);
}
int
CDECL
wine_pcap_major_version
(
pcap_t
*
p
)
int
CDECL
wine_pcap_major_version
(
pcap_t
*
p
)
{
{
TRACE
(
"(%p)
\n
"
,
p
);
TRACE
(
"(%p)
\n
"
,
p
);
...
...
dlls/wpcap/wpcap.spec
View file @
d45f9144
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
@ stub pcap_live_dump_ended
@ stub pcap_live_dump_ended
@ cdecl pcap_lookupdev(ptr) wine_pcap_lookupdev
@ cdecl pcap_lookupdev(ptr) wine_pcap_lookupdev
@ cdecl pcap_lookupnet(str ptr ptr ptr) wine_pcap_lookupnet
@ cdecl pcap_lookupnet(str ptr ptr ptr) wine_pcap_lookupnet
@
stub
pcap_loop
@
cdecl pcap_loop(ptr long ptr ptr) wine_
pcap_loop
@ cdecl pcap_major_version(ptr) wine_pcap_major_version
@ cdecl pcap_major_version(ptr) wine_pcap_major_version
@ cdecl pcap_minor_version(ptr) wine_pcap_minor_version
@ cdecl pcap_minor_version(ptr) wine_pcap_minor_version
@ stub pcap_next
@ stub pcap_next
...
...
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