I'll admit that my C skill is holding me back here.
I've added a new command line option, updated the valid_options, added the case statement that sets bc->skip_payload = 1 and added the member to Barnyard2Config in barnyard2.h. It all complies happily and I've verified that when passing -k, the case fires. Over in spo_database.c, however, I can't get the data. I see that the module is using barnyard2_conf in places like:
data->sensor_name = GetUniqueName(PRINT_INTERFACE(barnyard2_conf->interface));
When I try to check
if (barnyard2_conf->skip_payload)
it's always 0. Do I need to pass the config data to spo_database in a different way?
Thanks,
-hojo