Make "Capture on all interfaces" toggle button behave properly, particularly when all interfaces had been selected but one of them is deselected.
#BACKPORT(1.10)

svn path=/trunk/; revision=53609
OK, capture_all is only ever set to TRUE or FALSE, so just use it directly.

svn path=/trunk/; revision=53610
While r53608 fixed the "Use promiscuous mode on all interfaces" toggle button behavior, it wasn't enough, so use the technique from r53609 for the "Capture on all interfaces" toggle button to fix it completely.
#BACKPORT(1.10)

svn path=/trunk/; revision=53611
Reinitialize counter between loops to avoid an out of bound access found with fuzz testing.

svn path=/trunk/; revision=53612