From a6ef91124e19f040c527755cf147eb076b911b74 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 29 Oct 2024 18:36:05 +0300 Subject: [PATCH] winws: return removed dp_list_have_autohostlist() --- nfq/params.c | 8 ++++++++ nfq/params.h | 1 + 2 files changed, 9 insertions(+) diff --git a/nfq/params.c b/nfq/params.c index dec576b..3cece72 100644 --- a/nfq/params.c +++ b/nfq/params.c @@ -228,3 +228,11 @@ void dp_list_destroy(struct desync_profile_list_head *head) dp_entry_destroy(entry); } } +bool dp_list_have_autohostlist(struct desync_profile_list_head *head) +{ + struct desync_profile_list *dpl; + LIST_FOREACH(dpl, head, next) + if (dpl->dp.hostlist_auto) + return true; + return false; +} diff --git a/nfq/params.h b/nfq/params.h index 187be1e..46c16df 100644 --- a/nfq/params.h +++ b/nfq/params.h @@ -90,6 +90,7 @@ struct desync_profile_list { LIST_HEAD(desync_profile_list_head, desync_profile_list); struct desync_profile_list *dp_list_add(struct desync_profile_list_head *head); void dp_list_destroy(struct desync_profile_list_head *head); +bool dp_list_have_autohostlist(struct desync_profile_list_head *head); struct params_s {