mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 18:10:21 +01:00
It's still not a very good name, but it seems better then NMUtilsShareRules. Currently, NMFirewallConfig is mostly about masquerading for shared mode. But in practice, it's a piece of configuration for something to configure in the firewall (the NAT and filter rules).
18 lines
517 B
C
18 lines
517 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 struct _NMFirewallConfig NMFirewallConfig;
|
|
|
|
NMFirewallConfig *nm_firewall_config_new(const char *ip_iface, in_addr_t addr, guint8 plen);
|
|
|
|
void nm_firewall_config_free(NMFirewallConfig *self);
|
|
|
|
void nm_firewall_config_apply(NMFirewallConfig *self, gboolean shared);
|
|
|
|
#endif /* __NM_FIREWALL_UTILS_H__ */
|