diff -NurpP --minimal linux-2.6.19-vs2.1.x-t7.1/include/linux/vserver/network_cmd.h linux-2.6.19-vs2.1.x-t7.2/include/linux/vserver/network_cmd.h --- linux-2.6.19-vs2.1.x-t7.1/include/linux/vserver/network_cmd.h 2006-11-08 04:57:49 +0100 +++ linux-2.6.19-vs2.1.x-t7.2/include/linux/vserver/network_cmd.h 2006-12-08 02:04:31 +0100 @@ -43,6 +43,29 @@ struct vcmd_net_addr_v0 { /* more to come */ }; +#define VCMD_add_match_ipv4 VC_CMD(NETALT, 4, 0) +#define VCMD_get_match_ipv4 VC_CMD(NETALT, 5, 0) + +struct vcmd_match_ipv4_v0 { + uint16_t type; + uint16_t flags; + uint32_t parent; + uint32_t ip; + uint32_t mask; +}; + +#define VCMD_add_match_ipv6 VC_CMD(NETALT, 6, 0) +#define VCMD_get_match_ipv6 VC_CMD(NETALT, 7, 0) + +struct vcmd_match_ipv6_v0 { + uint16_t type; + uint16_t flags; + uint32_t parent; + uint32_t prefix; + uint32_t ip[4]; + uint32_t mask[4]; +}; + #ifdef __KERNEL__ extern int vc_net_create(uint32_t, void __user *); @@ -51,6 +74,12 @@ extern int vc_net_migrate(struct nx_info extern int vc_net_add(struct nx_info *, void __user *); extern int vc_net_remove(struct nx_info *, void __user *); +extern int vc_add_match_ipv4(struct nx_info *, void __user *); +extern int vc_get_match_ipv4(struct nx_info *, void __user *); + +extern int vc_add_match_ipv6(struct nx_info *, void __user *); +extern int vc_get_match_ipv6(struct nx_info *, void __user *); + #endif /* __KERNEL__ */