[CRIU] [PATCH] net: Don't try to restore sit6rd when not present
Andrei Vagin
avagin at virtuozzo.com
Wed Jul 19 21:17:25 MSK 2017
Applied, thanks
On Wed, Jul 19, 2017 at 12:04:03PM +0300, Pavel Emelyanov wrote:
> Due to a misprint in an if the 6rd info for sit device
> was restored when not present.
>
> https://github.com/xemul/criu/issues/366
>
> Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
> ---
> criu/net.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/criu/net.c b/criu/net.c
> index 8b479fc..8662e5a 100644
> --- a/criu/net.c
> +++ b/criu/net.c
> @@ -1467,7 +1467,7 @@ static int sit_link_info(struct ns_id *ns, struct net_link *link, struct newlink
> DECODE_ENTRY(u16, IFLA_IPTUN_ENCAP_SPORT, encap_sport);
> DECODE_ENTRY(u16, IFLA_IPTUN_ENCAP_DPORT, encap_dport);
>
> - if (!se->has_rd_prefixlen) {
> + if (se->has_rd_prefixlen) {
> u16 aux;
>
> if (se->n_rd_prefix != 4) {
> --
> 2.1.4
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list