diff --git a/extensions/pknock/xt_pknock.c b/extensions/pknock/xt_pknock.c index a9df420..ba81615 100644 --- a/extensions/pknock/xt_pknock.c +++ b/extensions/pknock/xt_pknock.c @@ -677,7 +677,7 @@ static bool msg_to_userspace_nl(const struct xt_pknock_mtinfo *info, const struct peer *peer, int multicast_group) { -#if defined(CONFIG_CONNECTOR) || defined(CONFIG_CONNECTOR_MODULE) +#if IS_ENABLED(CONFIG_CONNECTOR) struct cn_msg *m; struct xt_pknock_nl_msg msg; @@ -1101,7 +1101,7 @@ static struct xt_match xt_pknock_mt_reg __read_mostly = { static int __init xt_pknock_mt_init(void) { -#if !defined(CONFIG_CONNECTOR) && !defined(CONFIG_CONNECTOR_MODULE) +#if !IS_ENABLED(CONFIG_CONNECTOR) if (nl_multicast_group != -1) pr_info("CONFIG_CONNECTOR not present; " "netlink messages disabled\n");