This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
MT#55283 add endpoint_parse_any_str()
Change-Id: I75b169b9d39f8e7b81cf04d1cee8a0cc7c014615
pull/1640/head
Richard Fuchs
3 years ago
parent
998b55cbcc
commit
a20b7b3c26
1 changed files
with
8 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
lib/socket.h
+ 8
- 0
lib/socket.h
View File
@ -290,6 +290,14 @@ INLINE int ipv46_any_convert(endpoint_t *ep) {
ZERO
(
ep
-
>
address
.
u
.
ipv6
)
;
ZERO
(
ep
-
>
address
.
u
.
ipv6
)
;
return
1
;
return
1
;
}
}
/
/
needs
a
writeable
str
INLINE
int
endpoint_parse_any_str
(
endpoint_t
*
d
,
str
*
s
)
{
char
tmp
=
s
-
>
s
[
s
-
>
len
]
;
s
-
>
s
[
s
-
>
len
]
=
'
\0
'
;
int
ret
=
endpoint_parse_any
(
d
,
s
-
>
s
)
;
s
-
>
s
[
s
-
>
len
]
=
tmp
;
return
ret
;
}
#
define endpoint_packet_header(o, src, dst, len) (dst)->address.family->packet_header(o, src, dst, len)
#
define endpoint_packet_header(o, src, dst, len) (dst)->address.family->packet_header(o, src, dst, len)
Write
Preview
Loading…
Cancel
Save