netlink: Add NetworkSetMacAddress

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #194 from lmars/netlink-set-mac-addr

netlink: Add NetworkSetMacAddress
Refactored and added more tests.Cleaned up netlink.

I've added more tests. We now have almost 55% coverage.
I've also reorganized netlink_linux codebase and moved
the non-RTNETLINK functions at the bottom. I've also
added some comments to some functions.

Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
Fixing Travis builds by allowing short tests.

Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
Merge pull request #197 from milosgajdos83/netlink-tests

Refactored and added more tests.Cleaned up netlink a bit.
Add RootFs field to configuration options in libcontainer's Config

Since currently the container.json file does not include the pathname
to a container's root filesystem, we need to parse /proc/mounts which
is slow and error-prone.  This patch addresses this issue by adding a
new RootFs field.

Signed-off-by: Saied Kazemi <saied@google.com>
Add RootFs field to configuration options in libcontainer's Config

Since currently the container.json file does not include the pathname
to a container's root filesystem, we need to parse /proc/mounts which
is slow and error-prone.  This patch addresses this issue by adding a
new RootFs field.

Signed-off-by: Saied Kazemi <saied@google.com>
Merge branch 'rootfs' of https://github.com/SaiedKazemi/libcontainer into rootfs

Conflicts:
	namespaces/exec.go
Merge pull request #199 from SaiedKazemi/rootfs

Add RootFs field to configuration options in libcontainer's Config
Adding IPv6 network support

Docker-DCO-1.1-Signed-off-by: Malte Janduda <mail@janduda.net> (github: MalteJ)
Saturate negative memory stat values at '0'.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Merge pull request #201 from vishh/stats_rounding

Saturate negative memory stat values at '0'.
Address6 -> IPv6Address and Gateway6 -> IPv6Gateway

Docker-DCO-1.1-Signed-off-by: Malte Janduda <mail@janduda.net> (github: MalteJ)
Merge pull request #203 from MalteJ/master

Adding IPv6 network support
Fix leaking file descriptor in NetNs strategy

Docker-DCO-1.1-Signed-off-by: Hugo Duncan <hugo@hugoduncan.org> (github: hugoduncan)
Merge pull request #205 from hugoduncan/fix-leaking-fd-in-netns

Fix leaking file descriptor in NetNs strategy
Refactored SetNs funcs. Implemented ChangeName.

I've refactored NetworkSetNsPid and NetworkSetNsFd following
what we already have in place for Add/Del Ip and Add/Del Link.
I've reimplemented NetworkChangeName function which is now
using netlink for changing the interface name. I added tests too.
I've moved the original syscall implementation at the bottom
to keep it together with the other non-netlink functions.

Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
Added VLAN and MAC VLAN device support to netlink

You can now create VLAN and MAC VLAN devices using netlink.
I've also added tests for both VLAN and MAC VLAN stuff.

Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
Merge pull request #206 from milosgajdos83/vlan-macvlan

Added support for VLAN and MAC VLAN interfaces plus did a bit of refactoring.
implementing SetInterfaceMac

Docker-DCO-1.1-Signed-off-by: Malte Janduda <mail@janduda.net> (github: MalteJ)