]> git.ipfire.org Git - thirdparty/lxc.git/commit
This change introduce mac address templating.
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 13 Jan 2014 16:02:29 +0000 (10:02 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 13 Jan 2014 16:04:10 +0000 (10:04 -0600)
commit508c263ee6ed2fac73f6979af287caba38963b4b
treebf89bf9ae49d8f52a4b424deff9d394551a959d1
parentbf3e09c00eab82850782ad6ec74e4403d84ae866
This change introduce mac address templating.

By setting lxc.network.hwaddr to something like fe:xx:xx:xx:xx:xx each
"x" will be replaced by a random value.  If less significant bit of
first byte is "templated", it will be set to 0.

This change introduce also a common randinit() function that could be
used to initialize random generator.

Signed-off-by: gza <lxc@zitta.fr>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
doc/lxc.conf.sgml.in
src/lxc/confile.c
src/lxc/utils.c
src/lxc/utils.h