summaryrefslogtreecommitdiffstats
path: root/include/net/addrconf.h
diff options
context:
space:
mode:
authorDavid Ahern2018-05-27 17:09:53 +0200
committerDavid S. Miller2018-05-29 16:12:44 +0200
commite6464b8c6361962f5ff99dc95d010b64432c27b5 (patch)
tree802d365f341da4e7bcc8bb5acb5f43132640688e /include/net/addrconf.h
parentMerge branch 'mlxsw-use-MRSR-register-for-FW-reset' (diff)
downloadkernel-qcow2-linux-e6464b8c6361962f5ff99dc95d010b64432c27b5.tar.gz
kernel-qcow2-linux-e6464b8c6361962f5ff99dc95d010b64432c27b5.tar.xz
kernel-qcow2-linux-e6464b8c6361962f5ff99dc95d010b64432c27b5.zip
net/ipv6: Convert ipv6_add_addr to struct ifa6_config
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. Start the conversion to ifa6_config with ipv6_add_addr. This is an argument move only; no functional change intended. Mapping of variable changes: addr --> cfg->pfx peer_addr --> cfg->peer_pfx pfxlen --> cfg->plen flags --> cfg->ifa_flags scope, valid_lft, prefered_lft have the same names within cfg (with corrected spelling). Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r--include/net/addrconf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index c07d4dd09361..f766af2cd1a4 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);