return stc_plugin->lookup_net();
}
-int stc_plugin_pcap_find_alldevs(void)
+int stc_plugin_pcap_find_all_devs(GVariantBuilder *builder)
{
if (!stc_plugin_enabled) {
if (STC_DEBUG_LOG)
return STC_ERROR_UNINITIALIZED;
}
- return stc_plugin->find_alldevs();
+ return stc_plugin->find_all_devs(builder);
}
-int stc_plugin_pcap_register_loop_pcap(const char *ifname,
- int group)
+int stc_plugin_pcap_register_loop(const char *ifname,
+ int nflog_group)
{
if (!stc_plugin_enabled) {
if (STC_DEBUG_LOG)
return STC_ERROR_UNINITIALIZED;
}
- return stc_plugin->register_loop_pcap(ifname, group);
+ return stc_plugin->register_loop(ifname, nflog_group);
}
-int stc_plugin_pcap_unregister_loop_pcap(const char *ifname,
- int group)
+int stc_plugin_pcap_unregister_loop(const char *ifname,
+ int nflog_group)
{
if (!stc_plugin_enabled) {
if (STC_DEBUG_LOG)
return STC_ERROR_UNINITIALIZED;
}
- return stc_plugin->unregister_loop_pcap(ifname, group);
+ return stc_plugin->unregister_loop(ifname, nflog_group);
+}
+
+int stc_plugin_pcap_get_all_loop(GVariantBuilder *builder)
+{
+ if (!stc_plugin_enabled) {
+ if (STC_DEBUG_LOG)
+ STC_LOGE("Plugin wasn't enabled");
+ return STC_ERROR_UNINITIALIZED;
+ }
+
+ if (!stc_plugin) {
+ if (STC_DEBUG_LOG)
+ STC_LOGE("Plugin wasn't loaded");
+ return STC_ERROR_UNINITIALIZED;
+ }
+
+ return stc_plugin->get_all_loop(builder);
}
//LCOV_EXCL_STOP