mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-24 00:30:30 +01:00
Sync/blocking methods are ugly. Their name should highlight this. Also, we may have an async variant, so we will need the "good" name for apply() and apply_finish().
29 lines
830 B
C
29 lines
830 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2004 - 2016 Red Hat, Inc.
|
|
* Copyright (C) 2005 - 2008 Novell, Inc.
|
|
*/
|
|
|
|
#ifndef __NM_FIREWALL_UTILS_H__
|
|
#define __NM_FIREWALL_UTILS_H__
|
|
|
|
typedef enum {
|
|
NM_FIREWALL_BACKEND_UNKNOWN,
|
|
NM_FIREWALL_BACKEND_NONE,
|
|
NM_FIREWALL_BACKEND_IPTABLES,
|
|
NM_FIREWALL_BACKEND_NFTABLES,
|
|
} NMFirewallBackend;
|
|
|
|
NMFirewallBackend nm_firewall_utils_get_backend(void);
|
|
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _NMFirewallConfig NMFirewallConfig;
|
|
|
|
NMFirewallConfig *nm_firewall_config_new_shared(const char *ip_iface, in_addr_t addr, guint8 plen);
|
|
|
|
void nm_firewall_config_free(NMFirewallConfig *self);
|
|
|
|
void nm_firewall_config_apply_sync(NMFirewallConfig *self, gboolean up);
|
|
|
|
#endif /* __NM_FIREWALL_UTILS_H__ */
|