Add support for fd=name to tap and socket networking
commit413fb2412d1ff956099e1b1a76ee9a7e41c69e4a
authorMark McLoughlin <markmc@redhat.com>
Wed, 22 Jul 2009 08:11:42 +0000 (22 09:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 29 Jul 2009 16:47:09 +0000 (29 11:47 -0500)
treec3ba5b05e5a813256879a1dd602b5890cd69dbc9
parent9bab7711ca7c3a0daaaaf7d645caa9722bfe7be1
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