Re: [libvirt] [PATCHv2 07/13] Replace brSetInetAddress/brSetInetNetmask with brAddInetAddress

2010-12-22 Thread Eric Blake
On 12/22/2010 11:58 AM, Laine Stump wrote: > brSetInetAddress can only set a single IP address on the bridge, and > uses a method (ioctl(SIOCSETIFADDR)) that only works for IPv4. Replace > it and brSetInetNetmask with a single function that uses the external > "ip addr add" command to add an addres

[libvirt] [PATCHv2 07/13] Replace brSetInetAddress/brSetInetNetmask with brAddInetAddress

2010-12-22 Thread Laine Stump
brSetInetAddress can only set a single IP address on the bridge, and uses a method (ioctl(SIOCSETIFADDR)) that only works for IPv4. Replace it and brSetInetNetmask with a single function that uses the external "ip addr add" command to add an address/prefix to the interface - this supports IPv6, and