diff mbox series

[RFC,net-next,1/9] net/ipv6: Introduce ifa6_config struct

Message ID 20180523225727.11386-2-dsahern@kernel.org
State RFC, archived
Delegated to: David Miller
Headers show
Series net: Add address attribute to control metric of prefix route | expand

Commit Message

David Ahern May 23, 2018, 10:57 p.m. UTC
From: David Ahern <dsahern@gmail.com>

Move config parameters for adding an ipv6 address to a struct. struct
names stem from inet6_rtm_newaddr which is the modern handler for
adding an address.

Signed-off-by: David Ahern <dsahern@gmail.com>
---
 include/net/addrconf.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index ff766ab207e0..1e3ef04176d6 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -59,6 +59,18 @@  struct in6_validator_info {
 	struct netlink_ext_ack	*extack;
 };
 
+struct ifa6_config {
+	const struct in6_addr *pfx;
+	unsigned int plen;
+
+	const struct in6_addr *peer_pfx;
+
+	u32 ifa_flags;
+	u32 preferred_lft;
+	u32 valid_lft;
+	u16 scope;
+};
+
 int addrconf_init(void);
 void addrconf_cleanup(void);