]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Extend RPC protocol to allow FD passing
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 21 Oct 2011 10:30:12 +0000 (11:30 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Oct 2011 09:27:15 +0000 (10:27 +0100)
commitb0f996a6b1cadb769923451ae3aa217d0f73fd8b
tree13791305abf3858f5f7bf4e76d120add9c4b286f
parent018044c89fd98abb4cbbc4cf131c4b4e5ee385ad
Extend RPC protocol to allow FD passing

Define two new RPC message types VIR_NET_CALL_WITH_FDS and
VIR_NET_REPLY_WITH_FDS. These message types are equivalent
to VIR_NET_CALL and VIR_NET_REPLY, except that between the
message header, and payload there is a 32-bit integer field
specifying how many file descriptors have been passed.

The actual file descriptors are sent/recv'd out of band.

* src/rpc/virnetmessage.c, src/rpc/virnetmessage.h,
  src/libvirt_private.syms: Add support for handling
  passed file descriptors
* src/rpc/virnetprotocol.x: Extend protocol for FD
  passing
docs/internals/rpc.html.in
src/libvirt_private.syms
src/rpc/virnetmessage.c
src/rpc/virnetmessage.h
src/rpc/virnetprotocol.x
src/virnetprotocol-structs