mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Phonet: Netlink event for autoconfigured addresses
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>
This commit is contained in:
parent
5708e868dc
commit
b11b5165ae
1 changed files with 8 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue