[CRIU] [PATCH] net: Dump venet links
Pavel Emelyanov
xemul at parallels.com
Tue Sep 17 14:48:31 EDT 2013
On 09/17/2013 10:42 PM, Cyrill Gorcunov wrote:
> On Tue, Sep 17, 2013 at 10:31:05PM +0400, Pavel Emelyanov wrote:
>>> @@ -170,6 +170,13 @@ static int dump_one_link(struct nlmsghdr *hdr, void *arg)
>>> case ARPHRD_NONE:
>>> ret = dump_one_gendev(ifi, tb, fds);
>>> break;
>>> + case ARPHRD_VOID:
>>> + if (tb[IFLA_IFNAME] &&
>>> + !strncmp(RTA_DATA(tb[IFLA_IFNAME]), "venet", 5)) {
>>
>> Name can be changed for network device, thus it's a bad classifier.
>
> Are you sure?
I am.
> Things are that otherwise there is no unique idenifier
> which would allow us to understand that it's venet.
Then patch the kernel adding .kind string to venet devices.
> .
>
More information about the CRIU
mailing list