]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
c/r: remember to increment netnr
authorTycho Andersen <tycho.andersen@canonical.com>
Wed, 12 Oct 2016 23:18:02 +0000 (23:18 +0000)
committerTycho Andersen <tycho.andersen@canonical.com>
Mon, 24 Oct 2016 21:28:56 +0000 (21:28 +0000)
We need this for calculating the name of unnamed interfaces in the config.
But we also need to remember to increment it :)

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/criu.c

index 0b5fc091515931d79899be4eaf2dbe3fec0ee56e..84d420956d033e81c4a1f62fde8d7f881b041d2c 100644 (file)
@@ -460,6 +460,7 @@ static void exec_criu(struct criu_opts *opts)
 
                        DECLARE_ARG("--external");
                        DECLARE_ARG(buf);
+                       netnr++;
                }
 
        }