2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

net: save all attributes of sit devices

Currently we save only attributes with non-zero values. For example,
a default value for IFLA_IPTUN_PROTO is IPPROTO_IPV6 (41), so we have to
save even attributes with zero values.

https://github.com/checkpoint-restore/criu/issues/445

Fixes: 4a044e6af93f ("net: Dump regular sit device")
Cc: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Andrei Vagin 2018-02-26 03:19:07 +03:00
parent 0892cec451
commit e2a892b18c

View File

@ -705,7 +705,6 @@ static int dump_sit(NetDeviceEntry *nde, struct cr_imgset *imgset, struct nlattr
#define ENCODE_ENTRY(__type, __ifla, __proto) do { \
if (data[__ifla]) { \
se.__proto = *(__type *)nla_data(data[__ifla]); \
if (se.__proto) \
se.has_##__proto = true; \
} \
} while (0)