1 #ifndef _VX_NETWORK_CMD_H
2 #define _VX_NETWORK_CMD_H
7 #define VCMD_task_nid VC_CMD(VINFO, 2, 0)
10 #define VCMD_nx_info VC_CMD(VINFO, 6, 0)
12 struct vcmd_nx_info_v0 {
18 #define VCMD_net_create_v0 VC_CMD(VNET, 1, 0)
19 #define VCMD_net_create VC_CMD(VNET, 1, 1)
21 struct vcmd_net_create {
25 #define VCMD_net_migrate VC_CMD(NETMIG, 1, 0)
27 #define VCMD_net_add_v0 VC_CMD(NETALT, 1, 0)
28 #define VCMD_net_remove_v0 VC_CMD(NETALT, 2, 0)
30 struct vcmd_net_addr_v0 {
34 struct in_addr mask[4];
37 #define VCMD_net_add_ipv4 VC_CMD(NETALT, 1, 1)
38 #define VCMD_net_remove_ipv4 VC_CMD(NETALT, 2, 1)
40 struct vcmd_net_addr_ipv4_v1 {
47 #define VCMD_net_add_ipv6 VC_CMD(NETALT, 3, 1)
48 #define VCMD_net_remove_ipv6 VC_CMD(NETALT, 4, 1)
50 struct vcmd_net_addr_ipv6_v1 {
58 #define VCMD_add_match_ipv4 VC_CMD(NETALT, 5, 0)
59 #define VCMD_get_match_ipv4 VC_CMD(NETALT, 6, 0)
61 struct vcmd_match_ipv4_v0 {
71 #define VCMD_add_match_ipv6 VC_CMD(NETALT, 7, 0)
72 #define VCMD_get_match_ipv6 VC_CMD(NETALT, 8, 0)
74 struct vcmd_match_ipv6_v0 {
89 #define VCMD_get_nflags VC_CMD(FLAGS, 5, 0)
90 #define VCMD_set_nflags VC_CMD(FLAGS, 6, 0)
92 struct vcmd_net_flags_v0 {
99 /* network caps commands */
101 #define VCMD_get_ncaps VC_CMD(FLAGS, 7, 0)
102 #define VCMD_set_ncaps VC_CMD(FLAGS, 8, 0)
104 struct vcmd_net_caps_v0 {
109 #endif /* _VX_CONTEXT_CMD_H */