Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e23bb54f
提交
e23bb54f
authored
4月 27, 2016
作者:
Mike Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9078: [sofia-sip] fix windows build of HEPv2/HEPv3 code
上级
3d447565
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
tport_logging.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c
+8
-8
没有找到文件。
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c
浏览文件 @
e23bb54f
...
...
@@ -558,7 +558,7 @@ int tport_capt_msg_hepv2 (tport_t const *self, msg_t *msg, size_t n,
hep_time
.
tv_usec
=
now
.
tv_usec
;
hep_time
.
captid
=
mr
->
mr_agent_id
;
memcpy
((
void
*
)
*
buffer
+
buflen
,
&
hep_time
,
sizeof
(
struct
hep_timehdr
));
memcpy
((
char
*
)
*
buffer
+
buflen
,
&
hep_time
,
sizeof
(
struct
hep_timehdr
));
buflen
+=
sizeof
(
struct
hep_timehdr
);
}
...
...
@@ -596,12 +596,12 @@ int tport_capt_msg_hepv3 (tport_t const *self, msg_t *msg, size_t n,
struct
hep_generic
*
hg
=
NULL
;
unsigned
int
buflen
=
0
,
iplen
=
0
,
tlen
=
0
,
payload_len
=
0
;
su_time_t
now
;
hep_chunk_ip4_t
src_ip4
,
dst_ip4
;
hep_chunk_ip4_t
src_ip4
=
{
0
},
dst_ip4
=
{
0
};
hep_chunk_t
payload_chunk
;
int
orig_n
=
0
;
#if SU_HAVE_IN6
hep_chunk_ip6_t
src_ip6
,
dst_ip6
;
hep_chunk_ip6_t
src_ip6
=
{
0
},
dst_ip6
=
{
0
};
#endif
int
eth_frame_len
=
16000
;
...
...
@@ -771,26 +771,26 @@ int tport_capt_msg_hepv3 (tport_t const *self, msg_t *msg, size_t n,
/* IPv4 */
if
(
su
->
su_family
==
AF_INET
)
{
/* SRC IP */
memcpy
((
void
*
)
*
buffer
+
buflen
,
&
src_ip4
,
sizeof
(
struct
hep_chunk_ip4
));
memcpy
((
char
*
)
*
buffer
+
buflen
,
&
src_ip4
,
sizeof
(
struct
hep_chunk_ip4
));
buflen
+=
sizeof
(
struct
hep_chunk_ip4
);
memcpy
((
void
*
)
*
buffer
+
buflen
,
&
dst_ip4
,
sizeof
(
struct
hep_chunk_ip4
));
memcpy
((
char
*
)
*
buffer
+
buflen
,
&
dst_ip4
,
sizeof
(
struct
hep_chunk_ip4
));
buflen
+=
sizeof
(
struct
hep_chunk_ip4
);
}
#if SU_HAVE_IN6
/* IPv6 */
else
if
(
su
->
su_family
==
AF_INET6
)
{
/* SRC IPv6 */
memcpy
((
void
*
)
*
buffer
+
buflen
,
&
src_ip4
,
sizeof
(
struct
hep_chunk_ip6
));
memcpy
((
char
*
)
*
buffer
+
buflen
,
&
src_ip4
,
sizeof
(
struct
hep_chunk_ip6
));
buflen
+=
sizeof
(
struct
hep_chunk_ip6
);
memcpy
((
void
*
)
*
buffer
+
buflen
,
&
dst_ip6
,
sizeof
(
struct
hep_chunk_ip6
));
memcpy
((
char
*
)
*
buffer
+
buflen
,
&
dst_ip6
,
sizeof
(
struct
hep_chunk_ip6
));
buflen
+=
sizeof
(
struct
hep_chunk_ip6
);
}
#endif
/* PAYLOAD CHUNK */
memcpy
((
void
*
)
*
buffer
+
buflen
,
&
payload_chunk
,
sizeof
(
struct
hep_chunk
));
memcpy
((
char
*
)
*
buffer
+
buflen
,
&
payload_chunk
,
sizeof
(
struct
hep_chunk
));
buflen
+=
sizeof
(
struct
hep_chunk
);
/* PAYLOAD */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论