mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 12:20:09 +01:00
firewall/trivial: rename nm_firewall_config_new() to nm_firewall_config_new_shared()
This commit is contained in:
parent
e185f7966d
commit
7ad3fb1956
3 changed files with 5 additions and 5 deletions
|
|
@ -12367,7 +12367,7 @@ _dev_ipshared4_start(NMDevice *self)
|
|||
goto out_fail;
|
||||
|
||||
priv->ipshared_data_4.v4.firewall_config =
|
||||
nm_firewall_config_new(ip_iface, ip4_addr.address, ip4_addr.plen);
|
||||
nm_firewall_config_new_shared(ip_iface, ip4_addr.address, ip4_addr.plen);
|
||||
nm_firewall_config_apply(priv->ipshared_data_4.v4.firewall_config, TRUE);
|
||||
|
||||
priv->ipshared_data_4.v4.l3cd = nm_l3_config_data_ref(l3cd);
|
||||
|
|
|
|||
|
|
@ -599,7 +599,7 @@ _fw_nft_call_sync(GBytes *stdin_buf, GError **error)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
_fw_nft_set(gboolean up, const char *ip_iface, in_addr_t addr, guint8 plen)
|
||||
_fw_nft_set_shared(gboolean up, const char *ip_iface, in_addr_t addr, guint8 plen)
|
||||
{
|
||||
nm_auto_str_buf NMStrBuf strbuf = NM_STR_BUF_INIT(NM_UTILS_GET_NEXT_REALLOC_SIZE_1000, FALSE);
|
||||
gs_unref_bytes GBytes *stdin_buf = NULL;
|
||||
|
|
@ -692,7 +692,7 @@ struct _NMFirewallConfig {
|
|||
};
|
||||
|
||||
NMFirewallConfig *
|
||||
nm_firewall_config_new(const char *ip_iface, in_addr_t addr, guint8 plen)
|
||||
nm_firewall_config_new_shared(const char *ip_iface, in_addr_t addr, guint8 plen)
|
||||
{
|
||||
NMFirewallConfig *self;
|
||||
|
||||
|
|
@ -728,7 +728,7 @@ nm_firewall_config_apply(NMFirewallConfig *self, gboolean up)
|
|||
_share_iptables_set_shared(up, self->ip_iface, self->addr, self->plen);
|
||||
break;
|
||||
case NM_FIREWALL_BACKEND_NFTABLES:
|
||||
_fw_nft_set(up, self->ip_iface, self->addr, self->plen);
|
||||
_fw_nft_set_shared(up, self->ip_iface, self->addr, self->plen);
|
||||
break;
|
||||
case NM_FIREWALL_BACKEND_NONE:
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ NMFirewallBackend nm_firewall_utils_get_backend(void);
|
|||
|
||||
typedef struct _NMFirewallConfig NMFirewallConfig;
|
||||
|
||||
NMFirewallConfig *nm_firewall_config_new(const char *ip_iface, in_addr_t addr, guint8 plen);
|
||||
NMFirewallConfig *nm_firewall_config_new_shared(const char *ip_iface, in_addr_t addr, guint8 plen);
|
||||
|
||||
void nm_firewall_config_free(NMFirewallConfig *self);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue