diff options
Diffstat (limited to 'src/nm-system.h')
| -rw-r--r-- | src/nm-system.h | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/src/nm-system.h b/src/nm-system.h index ae4e7d91..84ae6c27 100644 --- a/src/nm-system.h +++ b/src/nm-system.h @@ -30,6 +30,8 @@ #include <glib.h> #include "nm-device.h" #include "nm-ip4-config.h" +#include "nm-setting-bond.h" +#include "nm-setting-vlan.h" /* Prototypes for system/distribution dependent functions, * implemented in the backend files in backends/ directory @@ -56,9 +58,6 @@ struct rtnl_route *nm_system_add_ip4_vpn_gateway_route (NMDevice *parent_device, gboolean nm_system_iface_flush_addresses (int ifindex, int family); -void nm_system_enable_loopback (void); -void nm_system_update_dns (void); - gboolean nm_system_apply_ip4_config (int ifindex, NMIP4Config *config, int priority, @@ -83,10 +82,42 @@ gboolean nm_system_iface_set_up (int ifindex, gboolean up, gboolean *no_firmware); +guint32 nm_system_iface_get_flags (int ifindex); gboolean nm_system_iface_is_up (int ifindex); gboolean nm_system_iface_set_mtu (int ifindex, guint32 mtu); gboolean nm_system_iface_set_mac (int ifindex, const struct ether_addr *mac); +gboolean nm_system_apply_bonding_config (const char *iface, + NMSettingBond *s_bond); +gboolean nm_system_add_bonding_master (const char *iface); + +gboolean nm_system_iface_enslave (gint master_ifindex, + const char *master_iface, + gint slave_ifindex, + const char *slave_iface); +gboolean nm_system_iface_release (gint master_ifindex, + const char *master_iface, + gint slave_ifindex, + const char *slave_iface); + +enum { + NM_IFACE_TYPE_UNSPEC = 0, + NM_IFACE_TYPE_BOND, + NM_IFACE_TYPE_VLAN, + NM_IFACE_TYPE_DUMMY, +}; + +int nm_system_get_iface_type (int ifindex, const char *name); + +gboolean nm_system_get_iface_vlan_info (int ifindex, + int *out_parent_ifindex, + int *out_vlan_id); + +gboolean nm_system_add_vlan_iface (NMConnection *connection, + const char *iface, + int parent_ifindex); +gboolean nm_system_del_vlan_iface (const char *iface); + #endif |