From: David Ahern <dsah...@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 <dsah...@gmail.com>
---
 include/net/addrconf.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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);
 
-- 
2.11.0

Reply via email to