Add support for fd=name to tap and socket networking
commitc1d6eed7e85f5cfae9c548e58971db657237050a
authorMark McLoughlin <markmc@redhat.com>
Wed, 22 Jul 2009 08:11:42 +0000 (22 09:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 13:39:28 +0000 (27 08:39 -0500)
tree88ef980b95f0142d376e5d222df091a80dfb2eb4
parent7768e04c34c60d99de57ddcc37fcbbe736185430
Add support for fd=name to tap and socket networking

This allows a program to initialize a host networking device using a
file descriptor passed over a unix monitor socket.

The program must first pass the file descriptor using SCM_RIGHTS
ancillary data with the getfd monitor command. It then may do
"host_net_add tap fd=name" to use the named file descriptor.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c