Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
26042608
Commit
26042608
authored
Jul 15, 2010
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function crc32 to stun_crc32 to avoid conflict with existing crc32 function in libz.so
parent
824a25d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
stun/stun5389.c
stun/stun5389.c
+1
-1
stun/stuncrc32.c
stun/stuncrc32.c
+1
-1
stun/stuncrc32.h
stun/stuncrc32.h
+1
-1
No files found.
stun/stun5389.c
View file @
26042608
...
...
@@ -83,7 +83,7 @@ uint32_t stun_fingerprint (const uint8_t *msg, size_t len,
/* first 4 bytes done, last 8 bytes not summed */
data
[
2
].
len
=
len
-
12u
;
return
htonl
(
crc32
(
data
,
3
,
wlm2009_stupid_crc32_typo
)
^
0x5354554e
);
return
htonl
(
stun_
crc32
(
data
,
3
,
wlm2009_stupid_crc32_typo
)
^
0x5354554e
);
}
bool
stun_message_has_cookie
(
const
StunMessage
*
msg
)
...
...
stun/stuncrc32.c
View file @
26042608
...
...
@@ -140,7 +140,7 @@ static const uint32_t crc32_tab[] = {
};
uint32_t
crc32
(
const
crc_data
*
data
,
size_t
n
,
bool
wlm2009_stupid_crc32_typo
)
uint32_t
stun_
crc32
(
const
crc_data
*
data
,
size_t
n
,
bool
wlm2009_stupid_crc32_typo
)
{
size_t
i
;
uint32_t
crc
=
0xffffffff
;
...
...
stun/stuncrc32.h
View file @
26042608
...
...
@@ -54,6 +54,6 @@ typedef struct {
}
crc_data
;
uint32_t
crc32
(
const
crc_data
*
data
,
size_t
n
,
bool
wlm2009_stupid_crc32_typo
);
uint32_t
stun_
crc32
(
const
crc_data
*
data
,
size_t
n
,
bool
wlm2009_stupid_crc32_typo
);
#endif
/* _CRC32_H */
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