From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020988; b=OQfskdC9smQTzfYgArY/nPD45y0qv3eGVzX0Su/eDTnQDhHhv0gEEl/OOFrO/N93Izm8 tliNWZOV9T49VqwqFXN1+LrTu503zSECIC6pI48JlX00VneC2ByEFIG4sg7J8X0VF5RAT reLvU5apHQeK+1oWd0ZtUmx7ha9SENBDuX8b4ShHSA4zHow2nBzyZ+7RUCaI3zwddeFAi oUruJjj1cQLdVO5iWhptjkNSNA2ekUBFty2V7WVxaDcyagOhXOfkQ9OWmxC7ZYQW7eQWu obtsmwK3P3v4qJzSkkgvqh7tLLByPYQZq2LFsYgzeeRYnwoeE0EucLH+ppD5OxsN95g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796020988; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=h4xTSRI51wbrYlrWczJwr4YLeHsXBqnWmsxmwo+HviE=; b=n0nuPa9nAvEUH23bRYYogjFO8wR9kFACjd2vZHmL45wB/bwjaK+lHL9GudviaSn7pd+I RsK+HSNt4V/M2VhlD/RANtUNsJEoQ4CU1hhLgI5EjOw0ymQaUg6CIV96nBhCnafFxq2Xr aGsEH3YUAWElq2fkkoeEDNAU/JM8TjY8F99eO2xUPyJJR9q+rjhCyR0HnXGdKKLqeHplh cXp+TsOcrTN7aHGlAn9/CVxcoNvrcnw52HVbli+ui0whMngTNtGFd7JmoT6x7itlxMiel KAlBQWpirwLg4FJC11r1MXJ+mnkCdlcn77G6oBzacNKCz8A8cw9504BZJ6yMGYermag== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=blockcast.net; spf=pass smtp.mailfrom=blockcast.net; dkim=pass header.d=blockcast.net header.i=@blockcast.net header.a=rsa-sha256 header.s=google header.b=Q+tV8Eey; arc=none smtp.remote-ip=74.125.82.180 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2B2060A380E for ; Mon, 30 Nov 2026 06:43:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D2B2060A380E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=blockcast.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=blockcast.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=blockcast.net header.i=@blockcast.net header.a=rsa-sha256 header.s=google header.b=Q+tV8Eey Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-38190551625so19132897eec.1 for ; Sun, 29 Nov 2026 22:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blockcast.net; s=google; t=1796020987; x=1796625787; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=h4xTSRI51wbrYlrWczJwr4YLeHsXBqnWmsxmwo+HviE=; b=Q+tV8EeypHhyPixvKJib4ZfLcSdeDZKiQ+BkjajPl5RNqI9SgaAF0gvuWRiUZTiNlb Ulcamman/8pkEp5U+3L9Z8xql4I9Ifv4BhKgyysX1MxyWFwnIdcWQnIq2O+S6xS0qUlC 5JuRKVfzQJd3REIaW+Y4fSts2DjvYAxcxOo0KrwDMm7gfhEMlxoyl1X5plupgnE/5f4N oc5mKM0MhEtx+oA3La7ulGvTMTXyBw1BXBQP5mA86lugbXmys9x1mLsZffNMD8vtGiKE W43Yu/0ggJbir4KY9FwiJB1jtOjQc/iVS359zjWlEl/MuKnl/VoGVYJ+jK7aHGH0yUBr s1IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796020987; x=1796625787; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=h4xTSRI51wbrYlrWczJwr4YLeHsXBqnWmsxmwo+HviE=; b=zrScI1auGhoEWcwX+81CWHguBlUqs9dP+bEJBWsKg4pL0WXYnmncfh3yki6PPlYicz qJ3fKkBQ8mK8Lc8QIAMC9jd0SAM6+jI/z9r2MQ5za/yznXBNsVJRmceKwJikugxDTdQj 80+qZ8L+oGFSRpsbotoi7wh6DZS1zjkHcCtLdzUmXluiOd1VGr85iHdFqkqefFjqzsA/ neX+ZsIhN7cWkC4pzElbOimN+gxgzaLYIP3OJNsr8tVOg5POGYk1prsnzaj9kSzAAKiv uDuNvsqK3v/LRhYRHb+x7UovQwHNl3dH6lgAIgHJxOMrC/1dZEqq7HpAdKkkfRJwEtzX fhzA== X-Forwarded-Encrypted: i=1; AL+hErFPn6n217xBxNFn7o1SFlDdRaUr7kQ18SHcKY1PBbqz3jqxkvY0L9+XyXiJ075VoVY90svJozIJ6f6boSY=@vger.kernel.org X-Gm-Message-State: APuU4Z8kpv+Swj+Ei04Gk+qvF18OeSYXvynqfrGcbfEKVFrmemDpBunv 1KQnKZ9cmlrhUfjsrnUtefHVZlJFl8iTFpsCgxqSMR/TYOdA4fINcfsefFt+ycDPvN0= X-Gm-Gg: AZFdTZdZFXRqRQxH4Ed061jlFM4BaNVfiaPnMnbkxu8TbTWXUcMFgstYN3l+CCcqJMX u4fcUdAwnoQrWD6A3S6JQj/EecK/WLjBsKpU1HvBHaV76K947T+FqynM82ptmKbgIV80lP6XpMA M27pVJSASkFsyfFX8qyII+yk6/fzxmF6wZdqMWLLB9l5xQchWZ54/66eucNBFFLQ+0/e4+26I64 mD1NQNdRXIGFJGbhjYtbA6V3dD2K0Lec+DrVOrFFhFjfKiJj08PAkPHn6YNbQngfpb1JRk01MU7 t5J0kLSbMpHzGgW4SvPpUf9sLGjrk1CXckZ9rniIMrr0K1b0Z8Vw5V5ld+/AyqdS4jPChDtgheg 8KRtDBPodKjoyS3aPru+/YTilvn4BJLCkwZtBOtX+cmYJhe546O5yCrYzwMa5THa8JofIBID5zk XGaJiColo6jhOO9U34Jq2fl682vaLmaecrL3OdYiXjA0fvYJcZKotPUbKKyO0sppHEA2XxwtFrS b6FgeoQ8q2q9sLMEO+1nL5KAdtB7+ZAh+wCyVYyw9RyM3B+dB4otXKXit7sIR4bxeopNeLdYPyH 9wMBN4Piwi/WIU4u71FOplngoKlIOyh6IxZd5LSgqsPXOEFpBa2Sn9XHy0ieuJWNhDer1nVxmLr +uUvIJL8GAkCppysi+etsREehRnI= X-Received: by 2002:a05:693c:65d0:b0:386:b7d0:adb3 with SMTP id 5a478bee46e88-386b7d0aef3mr20885028eec.30.1796020986977; Sun, 29 Nov 2026 22:43:06 -0800 (PST) Received: from devbox.ts.blockcast.net ([2602:f74d:1::32]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385672c6f31sm94744995eec.15.2026.11.29.22.43.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 22:43:05 -0800 (PST) From: Omar Ramadan To: Taehee Yoo , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: Simon Horman , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Willem de Bruijn Subject: [PATCH net-next v5 09/12] amt: add netlink attributes for an IPv6 outer transport Date: Mon, 30 Nov 2026 06:42:46 +0000 Message-ID: <20261130064249.1874523-10-omar@blockcast.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261130064249.1874523-1-omar@blockcast.net> References: <20261130064249.1874523-1-omar@blockcast.net> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Every path of the relay and the gateway can now run over an IPv6 outer transport, but nothing can create such a device. Add the attributes that do: - IFLA_AMT_LOCAL_IP6, the local IPv6 address. It selects IPv6 as the outer transport and is mutually exclusive with IFLA_AMT_LOCAL_IP. - IFLA_AMT_DISCOVERY_IP6, the IPv6 address a gateway sends its Relay Discovery to. A gateway's discovery address has to be in the family of its local address, as both ends of the tunnel use one outer transport. - IFLA_AMT_REMOTE_IP6, the relay address the gateway learned from the IPv6 Relay Advertisement. Like IFLA_AMT_REMOTE_IP it is only reported, and the policy rejects it on input. amt_fill_info() reports the addresses in the device's outer family. IFLA_AMT_LOCAL_IP6 is refused with -EAFNOSUPPORT on a kernel built without IPv6, rather than creating an IPv4 device with no local address. An IPv6 local or discovery address is refused when it is unspecified, loopback or multicast, as the IPv4 ones are, and also when it is IPv4-mapped: the V6ONLY socket could never send from or to such an address, so the device would be created but silently fail every send. The existing IFLA_AMT_LOCAL_IP and IFLA_AMT_DISCOVERY_IP cannot simply carry 16 bytes. Net requires exactly four bytes for them ("amt: require an exact IPv4-sized IFLA_AMT_{LOCAL,DISCOVERY}_IP"), so the IPv6 addresses need attributes of their own. A kernel that does not know the new attributes ignores them and fails the request for lack of a local address, so userspace can tell whether IPv6 is supported. vxlan (IFLA_VXLAN_LOCAL6, IFLA_VXLAN_GROUP6) and geneve (IFLA_GENEVE_REMOTE6) add their IPv6 addresses the same way. The attributes are appended to the enum, so the existing values do not change, and strict_start_type makes the policy validate them, and any attribute added after them, strictly. Their policy is an exact 16-byte length. A relay has always ignored IFLA_AMT_DISCOVERY_IP, and existing users may pass it, so an IPv4 relay still accepts it. An IPv6 relay has no existing users, so it rejects a discovery address of either family, and an IPv4 relay rejects IFLA_AMT_DISCOVERY_IP6. Assisted-by: LLM Signed-off-by: Omar Ramadan --- drivers/net/amt.c | 164 ++++++++++++++++++++++++++++++--------- include/uapi/linux/amt.h | 13 ++++ 2 files changed, 141 insertions(+), 36 deletions(-) diff --git a/drivers/net/amt.c b/drivers/net/amt.c index eabb3c407..50000b9c0 100644 --- a/drivers/net/amt.c +++ b/drivers/net/amt.c @@ -3976,6 +3976,7 @@ static void amt_link_setup(struct net_device *dev) } static const struct nla_policy amt_policy[IFLA_AMT_MAX + 1] = { + [IFLA_AMT_UNSPEC] = { .strict_start_type = IFLA_AMT_LOCAL_IP6 }, [IFLA_AMT_MODE] = { .type = NLA_U32 }, [IFLA_AMT_RELAY_PORT] = { .type = NLA_U16 }, [IFLA_AMT_GATEWAY_PORT] = { .type = NLA_U16 }, @@ -3984,6 +3985,10 @@ static const struct nla_policy amt_policy[IFLA_AMT_MAX + 1] = { [IFLA_AMT_REMOTE_IP] = { .len = sizeof_field(struct iphdr, daddr) }, [IFLA_AMT_DISCOVERY_IP] = NLA_POLICY_EXACT_LEN(sizeof(__be32)), [IFLA_AMT_MAX_TUNNELS] = { .type = NLA_U32 }, + [IFLA_AMT_LOCAL_IP6] = NLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)), + [IFLA_AMT_DISCOVERY_IP6] = + NLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)), + [IFLA_AMT_REMOTE_IP6] = { .type = NLA_REJECT }, }; static int amt_validate(struct nlattr *tb[], struct nlattr *data[], @@ -4010,16 +4015,53 @@ static int amt_validate(struct nlattr *tb[], struct nlattr *data[], return -EINVAL; } - if (!data[IFLA_AMT_LOCAL_IP]) { - NL_SET_ERR_MSG_ATTR(extack, data[IFLA_AMT_DISCOVERY_IP], - "Local attribute is required"); + if (!data[IFLA_AMT_LOCAL_IP] && !data[IFLA_AMT_LOCAL_IP6]) { + NL_SET_ERR_MSG_MOD(extack, "Local attribute is required"); return -EINVAL; } - if (!data[IFLA_AMT_DISCOVERY_IP] && - nla_get_u32(data[IFLA_AMT_MODE]) == AMT_MODE_GATEWAY) { - NL_SET_ERR_MSG_ATTR(extack, data[IFLA_AMT_LOCAL_IP], - "Discovery attribute is required"); + if (data[IFLA_AMT_LOCAL_IP] && data[IFLA_AMT_LOCAL_IP6]) { + NL_SET_ERR_MSG_ATTR(extack, data[IFLA_AMT_LOCAL_IP6], + "Local IPv4 and IPv6 are mutually exclusive"); + return -EINVAL; + } + + if (data[IFLA_AMT_LOCAL_IP6] && !IS_ENABLED(CONFIG_IPV6)) { + NL_SET_ERR_MSG_ATTR(extack, data[IFLA_AMT_LOCAL_IP6], + "IPv6 support is disabled"); + return -EAFNOSUPPORT; + } + + if (nla_get_u32(data[IFLA_AMT_MODE]) != AMT_MODE_GATEWAY) { + struct nlattr *disc = data[IFLA_AMT_DISCOVERY_IP6]; + + /* An IPv4 relay has always ignored IFLA_AMT_DISCOVERY_IP, + * and existing users may pass it. An IPv6 relay has no such + * users, so it rejects a discovery address of either family. + */ + if (!disc && data[IFLA_AMT_LOCAL_IP6]) + disc = data[IFLA_AMT_DISCOVERY_IP]; + if (disc) { + NL_SET_ERR_MSG_ATTR(extack, disc, + "Discovery is only valid in gateway mode"); + return -EINVAL; + } + return 0; + } + + /* A gateway's discovery address is in the family of its local + * address, since both ends of the tunnel use one outer transport. + */ + if (data[IFLA_AMT_LOCAL_IP6] ? !data[IFLA_AMT_DISCOVERY_IP6] : + !data[IFLA_AMT_DISCOVERY_IP]) { + NL_SET_ERR_MSG_MOD(extack, + "Discovery attribute of the local family is required"); + return -EINVAL; + } + + if (data[IFLA_AMT_DISCOVERY_IP] && data[IFLA_AMT_DISCOVERY_IP6]) { + NL_SET_ERR_MSG_ATTR(extack, data[IFLA_AMT_DISCOVERY_IP6], + "Discovery IPv4 and IPv6 are mutually exclusive"); return -EINVAL; } @@ -4070,13 +4112,25 @@ static int amt_newlink(struct net_device *dev, goto err; } - amt->local_ip = nla_get_in_addr(data[IFLA_AMT_LOCAL_IP]); - if (ipv4_is_loopback(amt->local_ip) || - ipv4_is_zeronet(amt->local_ip) || - ipv4_is_multicast(amt->local_ip)) { - NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_AMT_LOCAL_IP], - "Invalid Local address"); - goto err; + if (data[IFLA_AMT_LOCAL_IP6]) { + amt->local_ipv6 = nla_get_in6_addr(data[IFLA_AMT_LOCAL_IP6]); + if (ipv6_addr_loopback(&amt->local_ipv6) || + ipv6_addr_any(&amt->local_ipv6) || + ipv6_addr_is_multicast(&amt->local_ipv6) || + ipv6_addr_v4mapped(&amt->local_ipv6)) { + NL_SET_ERR_MSG_ATTR(extack, data[IFLA_AMT_LOCAL_IP6], + "Invalid Local IPv6 address"); + goto err; + } + } else { + amt->local_ip = nla_get_in_addr(data[IFLA_AMT_LOCAL_IP]); + if (ipv4_is_loopback(amt->local_ip) || + ipv4_is_zeronet(amt->local_ip) || + ipv4_is_multicast(amt->local_ip)) { + NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_AMT_LOCAL_IP], + "Invalid Local address"); + goto err; + } } amt->relay_port = nla_get_be16_default(data[IFLA_AMT_RELAY_PORT], @@ -4099,24 +4153,35 @@ static int amt_newlink(struct net_device *dev, dev->max_mtu = dev->mtu; dev->min_mtu = ETH_MIN_MTU + amt_hlen(amt); } else { - if (!data[IFLA_AMT_DISCOVERY_IP]) { - NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_AMT_DISCOVERY_IP], - "discovery must be set in gateway mode"); - goto err; - } if (!amt->gw_port) { NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_AMT_DISCOVERY_IP], "gateway port must not be 0"); goto err; } - WRITE_ONCE(amt->remote_ip, 0); - amt->discovery_ip = nla_get_in_addr(data[IFLA_AMT_DISCOVERY_IP]); - if (ipv4_is_loopback(amt->discovery_ip) || - ipv4_is_zeronet(amt->discovery_ip) || - ipv4_is_multicast(amt->discovery_ip)) { - NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_AMT_DISCOVERY_IP], - "discovery must be unicast"); - goto err; + if (data[IFLA_AMT_DISCOVERY_IP6]) { + struct nlattr *attr = data[IFLA_AMT_DISCOVERY_IP6]; + + amt->discovery_ipv6 = nla_get_in6_addr(attr); + if (ipv6_addr_loopback(&amt->discovery_ipv6) || + ipv6_addr_any(&amt->discovery_ipv6) || + ipv6_addr_is_multicast(&amt->discovery_ipv6) || + ipv6_addr_v4mapped(&amt->discovery_ipv6)) { + NL_SET_ERR_MSG_ATTR(extack, attr, + "discovery must be unicast"); + goto err; + } + } else { + WRITE_ONCE(amt->remote_ip, 0); + amt->discovery_ip = + nla_get_in_addr(data[IFLA_AMT_DISCOVERY_IP]); + if (ipv4_is_loopback(amt->discovery_ip) || + ipv4_is_zeronet(amt->discovery_ip) || + ipv4_is_multicast(amt->discovery_ip)) { + NL_SET_ERR_MSG_ATTR(extack, + tb[IFLA_AMT_DISCOVERY_IP], + "discovery must be unicast"); + goto err; + } } dev->needed_headroom = amt->stream_dev->needed_headroom + @@ -4170,7 +4235,28 @@ static size_t amt_get_size(const struct net_device *dev) nla_total_size(sizeof(__u32)) + /* IFLA_MAX_TUNNELS */ nla_total_size(sizeof(__be32)) + /* IFLA_AMT_DISCOVERY_IP */ nla_total_size(sizeof(__be32)) + /* IFLA_AMT_REMOTE_IP */ - nla_total_size(sizeof(__be32)); /* IFLA_AMT_LOCAL_IP */ + nla_total_size(sizeof(__be32)) + /* IFLA_AMT_LOCAL_IP */ + /* IFLA_AMT_{LOCAL,DISCOVERY,REMOTE}_IP6. Only one address of + * each IPv4/IPv6 pair is emitted, but this sizes for both. + */ + 3 * nla_total_size(sizeof(struct in6_addr)); +} + +/* The IPv6 addresses of an IPv6 device, one of each IPv4/IPv6 pair. */ +static int amt_fill_addr6(struct sk_buff *skb, const struct amt_dev *amt) +{ + struct in6_addr remote6; + + if (nla_put_in6_addr(skb, IFLA_AMT_LOCAL_IP6, &amt->local_ipv6)) + return -EMSGSIZE; + if (amt->mode == AMT_MODE_GATEWAY && + nla_put_in6_addr(skb, IFLA_AMT_DISCOVERY_IP6, &amt->discovery_ipv6)) + return -EMSGSIZE; + amt_get_remote_ipv6(amt, &remote6); + if (!ipv6_addr_any(&remote6) && + nla_put_in6_addr(skb, IFLA_AMT_REMOTE_IP6, &remote6)) + return -EMSGSIZE; + return 0; } static int amt_fill_info(struct sk_buff *skb, const struct net_device *dev) @@ -4187,15 +4273,21 @@ static int amt_fill_info(struct sk_buff *skb, const struct net_device *dev) goto nla_put_failure; if (nla_put_u32(skb, IFLA_AMT_LINK, amt->stream_dev->ifindex)) goto nla_put_failure; - if (nla_put_in_addr(skb, IFLA_AMT_LOCAL_IP, amt->local_ip)) - goto nla_put_failure; - if (nla_put_in_addr(skb, IFLA_AMT_DISCOVERY_IP, amt->discovery_ip)) - goto nla_put_failure; - - remote_ip = READ_ONCE(amt->remote_ip); - if (remote_ip) - if (nla_put_in_addr(skb, IFLA_AMT_REMOTE_IP, remote_ip)) + if (amt_v6(amt)) { + if (amt_fill_addr6(skb, amt)) goto nla_put_failure; + } else { + if (nla_put_in_addr(skb, IFLA_AMT_LOCAL_IP, amt->local_ip)) + goto nla_put_failure; + if (nla_put_in_addr(skb, IFLA_AMT_DISCOVERY_IP, + amt->discovery_ip)) + goto nla_put_failure; + + remote_ip = READ_ONCE(amt->remote_ip); + if (remote_ip) + if (nla_put_in_addr(skb, IFLA_AMT_REMOTE_IP, remote_ip)) + goto nla_put_failure; + } if (nla_put_u32(skb, IFLA_AMT_MAX_TUNNELS, amt->max_tunnels)) goto nla_put_failure; diff --git a/include/uapi/linux/amt.h b/include/uapi/linux/amt.h index 2dccff417..5290ece75 100644 --- a/include/uapi/linux/amt.h +++ b/include/uapi/linux/amt.h @@ -54,6 +54,19 @@ enum { IFLA_AMT_DISCOVERY_IP, /* This attribute specify number of maximum tunnel. */ IFLA_AMT_MAX_TUNNELS, + /* This attribute specifies the local IPv6 address. It selects IPv6 + * as the outer transport and excludes IFLA_AMT_LOCAL_IP. + */ + IFLA_AMT_LOCAL_IP6, + /* This attribute specifies the IPv6 address of the relay a gateway + * sends its Discovery to. It is the IPv6 form of + * IFLA_AMT_DISCOVERY_IP and needs IFLA_AMT_LOCAL_IP6. + */ + IFLA_AMT_DISCOVERY_IP6, + /* This attribute reports the IPv6 relay address a gateway learned + * from the Relay Advertisement. It is read-only. + */ + IFLA_AMT_REMOTE_IP6, __IFLA_AMT_MAX, };