net: Add interface to bridge when SIOCBRADDIF isn't available
authorCorey Bryant <coreyb@linux.vnet.ibm.com>
Thu, 12 Jul 2012 13:24:31 +0000 (09:24 -0400)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 1 Aug 2012 11:28:51 +0000 (12:28 +0100)
commit34309d2b12bf379814b1635850bf1ed3557337d7
treeb711bd7d2850e7f5687809b16489f77adfd4f82e
parent0b22ef0f57a8910d849602bef0940edcd0553d2c
net: Add interface to bridge when SIOCBRADDIF isn't available

The bridge helper uses the SIOCBRADDIF ioctl to add an inteface to
a bridge.  SIOCBRADDIF is not available on old Linux versions.  This
patch adds support to use the SIOCDEVPRIVATE ioctl with BRCTL_ADD_IF
if SIOCBRADDIF is not available.

Reported-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qemu-bridge-helper.c