From patchwork Mon Oct 27 16:39:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 403695 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4F9DB140081 for ; Tue, 28 Oct 2014 03:41:13 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752707AbaJ0QlA (ORCPT ); Mon, 27 Oct 2014 12:41:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41559 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752636AbaJ0Qkx (ORCPT ); Mon, 27 Oct 2014 12:40:53 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9RGdNK8008183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Oct 2014 12:39:23 -0400 Received: from belphegor.brq.redhat.com (dhcp-24-160.brq.redhat.com [10.34.24.160]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9RGdJiY025644 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 27 Oct 2014 12:39:21 -0400 From: Lubomir Rintel To: netdev@vger.kernel.org Cc: "David S. Miller" , Lubomir Rintel , Hannes Frederic Sowa , Daniel Borkmann Subject: [PATCH v3] ipv6: notify userspace when we added or changed an ipv6 token Date: Mon, 27 Oct 2014 17:39:16 +0100 Message-Id: <1414427956-20056-1-git-send-email-lkundrak@v3.sk> In-Reply-To: <544D8234.5060504@redhat.com> References: <544D8234.5060504@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org NetworkManager might want to know that it changed when the router advertisement arrives. Signed-off-by: Lubomir Rintel Cc: Hannes Frederic Sowa Cc: Daniel Borkmann Acked-by: Daniel Borkmann --- Changes since v1: - Do not call device notifier chain with netdev_state_change() Changes since v2: - inet6_ifinfo_notify() instead of rtmsg_ifinfo() net/ipv6/addrconf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 3e118df..d9269ef 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -4528,6 +4528,7 @@ static int inet6_set_iftoken(struct inet6_dev *idev, struct in6_addr *token) } write_unlock_bh(&idev->lock); + inet6_ifinfo_notify(RTM_NEWLINK, idev); addrconf_verify_rtnl(); return 0; }