network driver: don't send default route to clients on isolated networks
network driver: don't send default route to clients on isolated networks

Normally dnsmasq will send a default route (the address of the host in
the network definition) to any client requesting an address via
DHCP. On an isolated network this makes no sense, as we have iptables
to prevent any traffic going out via that interface, so anything sent
that way would be dropped anyway.

This extra/unusable default route becomes problematic if you have
setup a guest with multiple network interfaces, with one connected to
an isolated network and another that provides connectivity to the
outside (example - one interface directly connecting to a physical
interface via macvtap, with a second connected to an isolated network
so that the host and guest can communicate (macvtap doesn't support
guest<->host communication without an external switch that supports
vepa, or reflecting all traffic back)). In this case, if the guest
chooses the default route of the isolated network, the guest will not
be able to get network traffic beyond the host.

To prevent dnsmasq from sending a default route, you can tell it to
send 0 bytes of data for the default route option (option number 3)
with --dhcp-option=3 (normally the data to send for the option would
follow the option number; no extra data means "don't send this option").

I have checked on RHEL5 (a good representative of the oldest supported
libvirt platforms) and its version of dnsmasq (2.45) does support
--dhcp-option, so this shouldn't create any compatibility problems.

cbosdo/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,usc-isi/libvirt,nertpinx/libvirt,emaste/libvirt,soulxu/libvirt-xuhj,trainstack/libvirt,usc-isi/libvirt,zippy2/libvirt,jfehlig/libvirt,jeckersb/libvirt,libvirt/libvirt,eskultety/libvirt,foomango/libvirt,olafhering/libvirt,taget/libvirt,libvirt/libvirt,rbu/libvirt,jeckersb/libvirt,soulxu/libvirt-xuhj,jardasgit/libvirt,shugaoye/libvirt,usc-isi/libvirt,emaste/libvirt,rmarwaha/libvirt,zhlcindy/libvirt-1.1.4-maintain,emaste/libvirt,cbosdo/libvirt,warewolf/libvirt,rbu/libvirt,danwent/libvirt-ovs,foomango/libvirt,bjzhang/libvirt,jeckersb/libvirt,wiedi/libvirt,bjzhang/libvirt,novel/fbsd-libvirt,foomango/libvirt,dumbbell/libvirt,rmarwaha/libvirt1,leilihh/libvirt,rmarwaha/libvirt1,zhlcindy/libvirt-1.1.4-maintain,soulxu/libvirt-xuhj,zippy2/libvirt,novel/fbsd-libvirt,rlaager/libvirt,warewolf/libvirt,trainstack/libvirt,usc-isi/libvirt,andreabolognani/libvirt,rmarwaha/libvirt,rlaager/libvirt,dumbbell/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,iam-TJ/libvirt,crobinso/libvirt,iam-TJ/libvirt,nertpinx/libvirt,bjzhang/libvirt,elmarco/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,VenkatDatta/libvirt,siboulet/libvirt-openvz,rbu/libvirt,trainstack/libvirt,kantai/libvirt-vfork,olafhering/libvirt,rlaager/libvirt,warewolf/libvirt,jardasgit/libvirt,trainstack/libvirt,elmarco/libvirt,rbu/libvirt,leilihh/libvirt,crobinso/libvirt,eskultety/libvirt,rlaager/libvirt,novel/fbsd-libvirt,andreabolognani/libvirt,kantai/libvirt-vfork,shugaoye/libvirt,jfehlig/libvirt,rmarwaha/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,eskultety/libvirt,rmarwaha/libvirt1,kantai/libvirt-vfork,zippy2/libvirt,fabianfreyer/libvirt,rbu/libvirt,olafhering/libvirt,rmarwaha/libvirt1,bjzhang/libvirt,shugaoye/libvirt,warewolf/libvirt,VenkatDatta/libvirt,dumbbell/libvirt,jeckersb/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,trainstack/libvirt,kantai/libvirt-vfork,novel/fbsd-libvirt,rmarwaha/libvirt,iam-TJ/libvirt,wiedi/libvirt,trainstack/libvirt,andreabolognani/libvirt,wiedi/libvirt,leilihh/libvirt,jeckersb/libvirt,agx/libvirt,usc-isi/libvirt,elmarco/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,iam-TJ/libvirt,nertpinx/libvirt,agx/libvirt,leilihh/libvirt,siboulet/libvirt-openvz,crobinso/libvirt,soulxu/libvirt-xuhj,emaste/libvirt,trainstack/libvirt,bjzhang/libvirt,rmarwaha/libvirt,shugaoye/libvirt,nertpinx/libvirt,jardasgit/libvirt,eskultety/libvirt,wiedi/libvirt,cbosdo/libvirt,datto/libvirt,warewolf/libvirt,jeckersb/libvirt,dumbbell/libvirt,libvirt/libvirt,iam-TJ/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,datto/libvirt,datto/libvirt,rlaager/libvirt,jfehlig/libvirt,taget/libvirt,danwent/libvirt-ovs,iam-TJ/libvirt,siboulet/libvirt-openvz,emaste/libvirt,agx/libvirt,jardasgit/libvirt,andreabolognani/libvirt,danwent/libvirt-ovs,wiedi/libvirt,warewolf/libvirt,rmarwaha/libvirt1,agx/libvirt,leilihh/libvirt,andreabolognani/libvirt,wiedi/libvirt,novel/fbsd-libvirt,emaste/libvirt,iam-TJ/libvirt,warewolf/libvirt,jardasgit/libvirt,cbosdo/libvirt,elmarco/libvirt,taget/libvirt,agx/libvirt,foomango/libvirt,wiedi/libvirt,libvirt/libvirt,dumbbell/libvirt,zippy2/libvirt,emaste/libvirt,crobinso/libvirt,taget/libvirt,rmarwaha/libvirt,nertpinx/libvirt,taget/libvirt,kantai/libvirt-vfork,shugaoye/libvirt,VenkatDatta/libvirt,siboulet/libvirt-openvz,olafhering/libvirt,fabianfreyer/libvirt,datto/libvirt,danwent/libvirt-ovs,eskultety/libvirt,elmarco/libvirt,foomango/libvirt,dumbbell/libvirt,leilihh/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,rmarwaha/libvirt1