]> xenbits.xensource.com Git - libvirt.git/commit
macvtap: work-around for 2.6.32 and older kernels
authorStefan Berger <stefanb@us.ibm.com>
Thu, 17 Jun 2010 11:05:38 +0000 (07:05 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 17 Jun 2010 11:05:38 +0000 (07:05 -0400)
commit045a5722ab7c5d321754a051b3a556e3317627b6
tree227c828172814d61f9f533b79b6f8ee939b56c7f
parent07be2403b6157bbc6ef408aa0f4e0df312c480ef
macvtap: work-around for 2.6.32 and older kernels

This patch works around a recent extension of the netlink driver I had made use of when building the netlink messages. Unfortunately older kernels don't accept IFLA_IFNAME + name of interface as a replacement for the interface's index, so this patch now gets the interface index ifindex if it's not provided (ifindex <= 0).
src/util/macvtap.c