We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1671a9 commit 702beb8Copy full SHA for 702beb8
net/ipv6/addrconf.c
@@ -2315,12 +2315,11 @@ static void init_loopback(struct net_device *dev)
2315
static void addrconf_add_linklocal(struct inet6_dev *idev, struct in6_addr *addr)
2316
{
2317
struct inet6_ifaddr * ifp;
2318
- struct net *net = dev_net(idev->dev);
2319
u32 addr_flags = IFA_F_PERMANENT;
2320
2321
#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
2322
if (idev->cnf.optimistic_dad &&
2323
- !net->ipv6.devconf_all->forwarding)
+ !dev_net(idev->dev)->ipv6.devconf_all->forwarding)
2324
addr_flags |= IFA_F_OPTIMISTIC;
2325
#endif
2326
0 commit comments