Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
45ef4d5e
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,发现更多精彩内容 >>
提交
45ef4d5e
编写于
12月 03, 2010
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Implement virVMOperationType{To|From}String independent from WITH_MACVTAP
As this symbols are exported independent from WITH_MACVTAP.
上级
c6506ff8
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
19 addition
and
14 deletion
+19
-14
src/util/macvtap.c
src/util/macvtap.c
+19
-14
未找到文件。
src/util/macvtap.c
浏览文件 @
45ef4d5e
...
@@ -27,12 +27,13 @@
...
@@ -27,12 +27,13 @@
#include <config.h>
#include <config.h>
#include <stdint.h>
#if WITH_MACVTAP || WITH_VIRTUALPORT
#if WITH_MACVTAP || WITH_VIRTUALPORT
# include <stdio.h>
# include <stdio.h>
# include <errno.h>
# include <errno.h>
# include <fcntl.h>
# include <fcntl.h>
# include <stdint.h>
# include <c-ctype.h>
# include <c-ctype.h>
# include <sys/socket.h>
# include <sys/socket.h>
# include <sys/ioctl.h>
# include <sys/ioctl.h>
...
@@ -44,10 +45,15 @@
...
@@ -44,10 +45,15 @@
# include <netlink/msg.h>
# include <netlink/msg.h>
# include "util.h"
#endif
/* WITH_MACVTAP || WITH_VIRTUALPORT */
#include "util.h"
#include "macvtap.h"
#if WITH_MACVTAP || WITH_VIRTUALPORT
# include "memory.h"
# include "memory.h"
# include "logging.h"
# include "logging.h"
# include "macvtap.h"
# include "interface.h"
# include "interface.h"
# include "conf/domain_conf.h"
# include "conf/domain_conf.h"
# include "virterror_internal.h"
# include "virterror_internal.h"
...
@@ -77,17 +83,6 @@
...
@@ -77,17 +83,6 @@
# define LLDPAD_PID_FILE "/var/run/lldpad.pid"
# define LLDPAD_PID_FILE "/var/run/lldpad.pid"
VIR_ENUM_IMPL
(
virVMOperation
,
VIR_VM_OP_LAST
,
"create"
,
"save"
,
"restore"
,
"destroy"
,
"migrate out"
,
"migrate in start"
,
"migrate in finish"
,
"no-op"
)
enum
virVirtualPortOp
{
enum
virVirtualPortOp
{
ASSOCIATE
=
0x1
,
ASSOCIATE
=
0x1
,
DISASSOCIATE
=
0x2
,
DISASSOCIATE
=
0x2
,
...
@@ -1609,3 +1604,13 @@ vpDisassociatePortProfileId(const char *macvtap_ifname,
...
@@ -1609,3 +1604,13 @@ vpDisassociatePortProfileId(const char *macvtap_ifname,
}
}
#endif
/* WITH_MACVTAP || WITH_VIRTUALPORT */
#endif
/* WITH_MACVTAP || WITH_VIRTUALPORT */
VIR_ENUM_IMPL
(
virVMOperation
,
VIR_VM_OP_LAST
,
"create"
,
"save"
,
"restore"
,
"destroy"
,
"migrate out"
,
"migrate in start"
,
"migrate in finish"
,
"no-op"
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录