Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
676a646c
Commit
676a646c
authored
Feb 21, 2006
by
Arne Øslebø
Browse files
fixed bug in return value
git-svn-id:
file:///home/svn/mapi/trunk@357
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
21d9f3a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
stdlib/to_tcpdump.c
View file @
676a646c
...
...
@@ -56,7 +56,7 @@ static int to_tcpdump_init(mapidflib_function_instance_t *instance,
i
->
pkts
=
0
;
instance
->
internal_data
=
i
;
res
=
instance
->
result
.
data
;
*
res
=
1
;
*
res
=
1
1
;
//Write PCAP header
head
.
magic
=
2712847316U
;
...
...
@@ -83,6 +83,8 @@ static int to_tcpdump_process(mapidflib_function_instance_t *instance,MAPI_UNUSE
return
1
;
}
printf
(
"Res 1
\n
"
);
phdr
.
caplen
=
pkthdr
->
caplen
;
phdr
.
len
=
pkthdr
->
wlen
;
phdr
.
ts
.
tv_sec
=
pkthdr
->
ts
>>
32
;
...
...
@@ -110,7 +112,7 @@ static mapidflib_function_def_t finfo={
"iwl"
,
MAPI_DEVICE_ALL
,
MAPIRES_SHM
,
sizeof
(
char
),
//shm size
sizeof
(
int
),
//shm size
0
,
//modifies_pkts
0
,
//filters packets
MAPIOPT_NONE
,
//Optimization
...
...
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