summaryrefslogtreecommitdiff
path: root/src/platform/nm-platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/nm-platform.h')
-rw-r--r--src/platform/nm-platform.h42
1 files changed, 30 insertions, 12 deletions
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h
index 756101c8fc..d68be070d2 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -513,13 +513,22 @@ typedef struct {
GArray * (*ip4_address_get_all) (NMPlatform *, int ifindex);
GArray * (*ip6_address_get_all) (NMPlatform *, int ifindex);
- gboolean (*ip4_address_add) (NMPlatform *, int ifindex,
- in_addr_t address, in_addr_t peer_address, int plen,
- guint32 lifetime, guint32 preferred_lft,
+ gboolean (*ip4_address_add) (NMPlatform *,
+ int ifindex,
+ in_addr_t address,
+ int plen,
+ in_addr_t peer_address,
+ guint32 lifetime,
+ guint32 preferred_lft,
const char *label);
- gboolean (*ip6_address_add) (NMPlatform *, int ifindex,
- struct in6_addr address, struct in6_addr peer_address, int plen,
- guint32 lifetime, guint32 preferred_lft, guint flags);
+ gboolean (*ip6_address_add) (NMPlatform *,
+ int ifindex,
+ struct in6_addr address,
+ int plen,
+ struct in6_addr peer_address,
+ guint32 lifetime,
+ guint32 preferred_lft,
+ guint flags);
gboolean (*ip4_address_delete) (NMPlatform *, int ifindex, in_addr_t address, int plen, in_addr_t peer_address);
gboolean (*ip6_address_delete) (NMPlatform *, int ifindex, struct in6_addr address, int plen);
const NMPlatformIP4Address *(*ip4_address_get) (NMPlatform *, int ifindex, in_addr_t address, int plen);
@@ -700,13 +709,22 @@ const NMPlatformIP4Address *nm_platform_ip4_address_get (NMPlatform *self, int i
const NMPlatformIP6Address *nm_platform_ip6_address_get (NMPlatform *self, int ifindex, struct in6_addr address, int plen);
GArray *nm_platform_ip4_address_get_all (NMPlatform *self, int ifindex);
GArray *nm_platform_ip6_address_get_all (NMPlatform *self, int ifindex);
-gboolean nm_platform_ip4_address_add (NMPlatform *self, int ifindex,
- in_addr_t address, in_addr_t peer_address, int plen,
- guint32 lifetime, guint32 preferred_lft,
+gboolean nm_platform_ip4_address_add (NMPlatform *self,
+ int ifindex,
+ in_addr_t address,
+ int plen,
+ in_addr_t peer_address,
+ guint32 lifetime,
+ guint32 preferred_lft,
const char *label);
-gboolean nm_platform_ip6_address_add (NMPlatform *self, int ifindex,
- struct in6_addr address, struct in6_addr peer_address, int plen,
- guint32 lifetime, guint32 preferred_lft, guint flags);
+gboolean nm_platform_ip6_address_add (NMPlatform *self,
+ int ifindex,
+ struct in6_addr address,
+ int plen,
+ struct in6_addr peer_address,
+ guint32 lifetime,
+ guint32 preferred_lft,
+ guint flags);
gboolean nm_platform_ip4_address_delete (NMPlatform *self, int ifindex, in_addr_t address, int plen, in_addr_t peer_address);
gboolean nm_platform_ip6_address_delete (NMPlatform *self, int ifindex, struct in6_addr address, int plen);
gboolean nm_platform_ip4_address_sync (NMPlatform *self, int ifindex, const GArray *known_addresses, GPtrArray **out_added_addresses);