Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
10041b97
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
10041b97
编写于
2月 19, 2007
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed data type casts to address endianness issues on ia64
上级
cfa655f9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
9 deletion
+22
-9
ChangeLog
ChangeLog
+6
-0
qemud/bridge.c
qemud/bridge.c
+3
-3
qemud/conf.c
qemud/conf.c
+13
-6
未找到文件。
ChangeLog
浏览文件 @
10041b97
Mon Feb 19 09:38:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/bridge.c, qemud/conf.c: Fixed int -> char casts to deal
with endianness / alignment issues on IA64 platforms. Patch
from Atsushi SAKAI <sakaia@jp.fujitsu.com>
Fri Feb 16 18:28:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/qemud.c, qemud/dispatch.c, qemud/internal.h
...
...
qemud/bridge.c
浏览文件 @
10041b97
...
...
@@ -349,8 +349,8 @@ brSetInetAddr(brControl *ctl,
else
if
(
ret
==
0
)
return
EINVAL
;
((
struct
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_family
=
AF_INET
;
((
struct
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
=
inaddr
;
((
struct
sockaddr_in
*
)
((
void
*
)
&
ifr
.
ifr_addr
)
)
->
sin_family
=
AF_INET
;
((
struct
sockaddr_in
*
)
((
void
*
)
&
ifr
.
ifr_addr
)
)
->
sin_addr
=
inaddr
;
if
(
ioctl
(
ctl
->
fd
,
cmd
,
&
ifr
)
<
0
)
return
errno
;
...
...
@@ -386,7 +386,7 @@ brGetInetAddr(brControl *ctl,
if
(
maxlen
<
BR_INET_ADDR_MAXLEN
||
ifr
.
ifr_addr
.
sa_family
!=
AF_INET
)
return
EFAULT
;
inaddr
=
&
((
struct
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
;
inaddr
=
&
((
struct
sockaddr_in
*
)
((
void
*
)
&
ifr
.
ifr_addr
)
)
->
sin_addr
;
if
(
!
inet_ntop
(
AF_INET
,
inaddr
,
addr
,
maxlen
))
return
errno
;
...
...
qemud/conf.c
浏览文件 @
10041b97
...
...
@@ -447,13 +447,20 @@ static struct qemud_vm_net_def *qemudParseInterfaceXML(struct qemud_server *serv
net
->
vlan
=
0
;
if
(
macaddr
)
{
unsigned
int
mac
[
6
];
sscanf
((
const
char
*
)
macaddr
,
"%02x:%02x:%02x:%02x:%02x:%02x"
,
(
unsigned
int
*
)
&
net
->
mac
[
0
],
(
unsigned
int
*
)
&
net
->
mac
[
1
],
(
unsigned
int
*
)
&
net
->
mac
[
2
],
(
unsigned
int
*
)
&
net
->
mac
[
3
],
(
unsigned
int
*
)
&
net
->
mac
[
4
],
(
unsigned
int
*
)
&
net
->
mac
[
5
]);
(
unsigned
int
*
)
&
mac
[
0
],
(
unsigned
int
*
)
&
mac
[
1
],
(
unsigned
int
*
)
&
mac
[
2
],
(
unsigned
int
*
)
&
mac
[
3
],
(
unsigned
int
*
)
&
mac
[
4
],
(
unsigned
int
*
)
&
mac
[
5
]);
net
->
mac
[
0
]
=
mac
[
0
];
net
->
mac
[
1
]
=
mac
[
1
];
net
->
mac
[
2
]
=
mac
[
2
];
net
->
mac
[
3
]
=
mac
[
3
];
net
->
mac
[
4
]
=
mac
[
4
];
net
->
mac
[
5
]
=
mac
[
5
];
xmlFree
(
macaddr
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录