Squashed commit of the following:
commit
41c21f977ec4d6b040353937c7c2f5511a8975f2
Author: Michael Matirko <mmatirko@cisco.com>
Date: Fri Nov 20 09:36:58 2020 -0500
active: Fix falling back on using raw IP for active responses when no device is specified
This only takes effect when the DAQ module does not support injection.
if ( sc->is_active_enabled() && (!SFDAQ::can_inject() || !sc->respond_device.empty()) )
{
- if ( sc->read_mode() || !open(sc->respond_device.c_str()) )
+ if ( sc->read_mode() ||
+ !open(sc->respond_device.empty() ? nullptr : sc->respond_device.c_str()) )
{
ParseWarning(WARN_DAQ, "active responses disabled since DAQ "
"can't inject packets.");