fdset: Call for fdset_close iff fdset is not nil

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Allocate fdset for namespace entries on init

There is no nested namespace support in criu thus allocate
namespace related fdset at init once all tasks are read
and we can use the PID of root task.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Call namespace related conversion from convert_ns

Zap write_task_netdev, write_task_netdev, write_task_route
calls from task.c, they are just stubs now and are to be
implemented in net.c.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Add conversion helper of netdevices

Only "lo" and "veth" are supported at moment,
"venet" yet ignored.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Add simple memory slab helpers

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Add netlink helpers

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Convert net interface addresses

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Add stab for routes

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Add libnetlink helpers

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
log: Rework log engine

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Rework convertion of net interface addresses

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>