Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
2b6a4f97
提交
2b6a4f97
authored
8月 01, 2011
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
trivial portability issues c89
上级
5c455bda
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
msg_internal.h
libs/sofia-sip/libsofia-sip-ua/msg/msg_internal.h
+6
-6
tport_logging.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c
+6
-6
没有找到文件。
libs/sofia-sip/libsofia-sip-ua/msg/msg_internal.h
浏览文件 @
2b6a4f97
...
...
@@ -116,12 +116,12 @@ struct msg_buffer_s {
struct
hep_hdr
{
u
_
int8_t
hp_v
;
/* version */
u
_
int8_t
hp_l
;
/* length */
u
_
int8_t
hp_f
;
/* family */
u
_
int8_t
hp_p
;
/* protocol */
u
_
int16_t
hp_sport
;
/* source port */
u
_
int16_t
hp_dport
;
/* destination port */
uint8_t
hp_v
;
/* version */
uint8_t
hp_l
;
/* length */
uint8_t
hp_f
;
/* family */
uint8_t
hp_p
;
/* protocol */
uint16_t
hp_sport
;
/* source port */
uint16_t
hp_dport
;
/* destination port */
};
...
...
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c
浏览文件 @
2b6a4f97
...
...
@@ -114,10 +114,10 @@ su_log_t tport_log[] = {
/** Initialize logging. */
int
tport_open_log
(
tport_master_t
*
mr
,
tagi_t
*
tags
)
{
int
n
;
int
log_msg
=
mr
->
mr_log
!=
0
;
char
const
*
dump
=
NULL
;
char
const
*
capt
=
NULL
;;
int
n
;
if
(
mr
->
mr_capt_name
)
capt
=
mr
->
mr_capt_name
;
...
...
@@ -352,7 +352,7 @@ void tport_capt_msg(tport_t const *self, msg_t *msg, size_t n,
struct
hep_ip6hdr
hep_ip6header
;
#endif
int
eth_frame_len
=
8000
;
void
*
buffer
;
char
*
buffer
;
size_t
i
,
dst
=
0
;
tport_master_t
*
mr
;
...
...
@@ -408,16 +408,16 @@ void tport_capt_msg(tport_t const *self, msg_t *msg, size_t n,
/* Copy hepheader */
memset
(
buffer
,
'\0'
,
eth_frame_len
);
memcpy
(
(
void
*
)
buffer
,
&
hep_header
,
sizeof
(
struct
hep_hdr
));
memcpy
(
buffer
,
&
hep_header
,
sizeof
(
struct
hep_hdr
));
buflen
=
sizeof
(
struct
hep_hdr
);
if
(
su
->
su_family
==
AF_INET
)
{
memcpy
(
(
void
*
)
buffer
+
buflen
,
&
hep_ipheader
,
sizeof
(
struct
hep_iphdr
));
memcpy
(
buffer
+
buflen
,
&
hep_ipheader
,
sizeof
(
struct
hep_iphdr
));
buflen
+=
sizeof
(
struct
hep_iphdr
);
}
#if SU_HAVE_IN6
else
{
memcpy
(
(
void
*
)
buffer
+
buflen
,
&
hep_ip6header
,
sizeof
(
struct
hep_ip6hdr
));
memcpy
(
buffer
+
buflen
,
&
hep_ip6header
,
sizeof
(
struct
hep_ip6hdr
));
buflen
+=
sizeof
(
struct
hep_ip6hdr
);
}
#endif
...
...
@@ -430,7 +430,7 @@ void tport_capt_msg(tport_t const *self, msg_t *msg, size_t n,
if
((
buflen
+
len
)
>
eth_frame_len
)
break
;
memcpy
(
(
void
*
)(
buffer
+
buflen
)
,
(
void
*
)
iov
[
i
].
mv_base
,
len
);
memcpy
(
buffer
+
buflen
,
(
void
*
)
iov
[
i
].
mv_base
,
len
);
buflen
+=
len
;
n
-=
len
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论