From mboxrd@z Thu Jan 1 00:00:00 1970 From: dsahern@kernel.org Subject: [PATCH RFC net-next 1/9] net/ipv6: Introduce ifa6_config struct Date: Wed, 23 May 2018 15:57:19 -0700 Message-ID: <20180523225727.11386-2-dsahern@kernel.org> References: <20180523225727.11386-1-dsahern@kernel.org> Cc: roopa@cumulusnetworks.com, David Ahern To: netdev@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.29.99]:52622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934991AbeEWW53 (ORCPT ); Wed, 23 May 2018 18:57:29 -0400 In-Reply-To: <20180523225727.11386-1-dsahern@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern 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 --- 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