Skip to content

Commit

Permalink
Phonet: Netlink event for autoconfigured addresses
Browse files Browse the repository at this point in the history
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Sep 15, 2009
1 parent 5708e86 commit b11b516
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion net/phonet/pn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,14 @@ static int phonet_device_autoconf(struct net_device *dev)
SIOCPNGAUTOCONF);
if (ret < 0)
return ret;
return phonet_address_add(dev, req.ifr_phonet_autoconf.device);

ASSERT_RTNL();
ret = phonet_address_add(dev, req.ifr_phonet_autoconf.device);
if (ret)
return ret;
phonet_address_notify(RTM_NEWADDR, dev,
req.ifr_phonet_autoconf.device);
return 0;
}

/* notify Phonet of device events */
Expand Down

0 comments on commit b11b516

Please sign in to comment.