Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
ca55bff1
Commit
ca55bff1
authored
Oct 27, 2015
by
Alexander Alashkin
Committed by
Marko Mikulicic
Oct 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mg compilation
PUBLISHED_FROM=ce7fdfebd3ebbf88688514be501b33ad1241743c
parent
cfee5c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mongoose.c
mongoose.c
+6
-0
No files found.
mongoose.c
View file @
ca55bff1
...
...
@@ -6380,8 +6380,14 @@ void mg_hexdump_connection(struct mg_connection *nc, const char *path,
int
buf_size
=
num_bytes
*
5
+
100
;
if
((
fp
=
fopen
(
path
,
"a"
))
!=
NULL
)
{
#ifndef MG_DISABLE_SOCKET_IF
mg_sock_to_str
(
nc
->
sock
,
src
,
sizeof
(
src
),
3
);
mg_sock_to_str
(
nc
->
sock
,
dst
,
sizeof
(
dst
),
7
);
#else
/* TODO (alashkin): should we request info from net_if? */
strcpy
(
src
,
"n/a"
);
strcpy
(
dst
,
"n/a"
);
#endif
fprintf
(
fp
,
"%lu %p %s %s %s %d
\n
"
,
(
unsigned
long
)
time
(
NULL
),
nc
,
src
,
ev
==
MG_EV_RECV
?
"<-"
:
ev
==
MG_EV_SEND
...
...
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