]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: add an ifaceGetIPAddress to the interface utilities
authorLaine Stump <laine@laine.org>
Thu, 7 Jul 2011 04:15:08 +0000 (00:15 -0400)
committerDaniel Veillard <veillard@redhat.com>
Mon, 25 Jul 2011 05:48:37 +0000 (13:48 +0800)
commitc5d1592e20899917b038463a77cd47eac2ce55a9
tree5abf1c2352fc97ec258ad661ad76d4a3e4805c92
parent5283ea9b1d8a4b0f2fd6796bf60615aca7b6c3e6
util: add an ifaceGetIPAddress to the interface utilities

This function uses ioctl(SIOCGIFADDR), which limits it to returning
the first IPv4 address of an interface, but that's what we want right
now (the place we're going to use the address only accepts one).
src/libvirt_private.syms
src/util/interface.c
src/util/interface.h