[libvirt] [PATCH v4 0/5] qemu: use arp table of host to get the

Chen Hanxiao chen_han_xiao at 126.com
Wed Feb 21 12:23:41 UTC 2018


At 2018-02-08 15:46:59, "Chen Hanxiao" <chen_han_xiao at 126.com> wrote:
>introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address
>of VM from the output of /proc/net/arp
>
>Chen Hanxiao (5):
>  util: introduce virNetlinkGetNeighbor to get neighbor table entry
>  util: introduce helper to parse message from RTM_GETNEIGH query
>  qemu: introduce qemuARPGetInterfaces to get IP from host's arp table
>  virsh: add --source arp to domifaddr
>  news: qemu: use arp table of host to get the IP address of guests
>
> docs/news.xml                    |   9 ++
> include/libvirt/libvirt-domain.h |   1 +
> po/POTFILES.in                   |   1 +
> src/Makefile.am                  |   1 +
> src/libvirt-domain.c             |   7 ++
> src/libvirt_private.syms         |   6 ++
> src/qemu/qemu_driver.c           |  72 ++++++++++++++++
> src/util/virarptable.c           | 182 +++++++++++++++++++++++++++++++++++++++
> src/util/virarptable.h           |  47 ++++++++++
> src/util/virnetlink.c            |  82 ++++++++++++++++++
> src/util/virnetlink.h            |   2 +
> tools/virsh-domain-monitor.c     |   2 +
> tools/virsh.pod                  |   7 +-
> 13 files changed, 416 insertions(+), 3 deletions(-)
> create mode 100644 src/util/virarptable.c
> create mode 100644 src/util/virarptable.h
>

ping

Regards,

- Chen




More information about the libvir-list mailing list