Lines Matching refs:in6_dev

329 	struct inet6_dev *in6_dev;  in ndisc_constructor()  local
333 in6_dev = in6_dev_get(dev); in ndisc_constructor()
334 if (!in6_dev) { in ndisc_constructor()
338 parms = in6_dev->nd_parms; in ndisc_constructor()
369 in6_dev_put(in6_dev); in ndisc_constructor()
1236 struct inet6_dev *in6_dev; in ndisc_router_discovery() local
1266 in6_dev = __in6_dev_get(skb->dev); in ndisc_router_discovery()
1267 if (!in6_dev) { in ndisc_router_discovery()
1275 if (!ipv6_accept_ra(in6_dev)) { in ndisc_router_discovery()
1290 if (in6_dev->if_flags & IF_RS_SENT) { in ndisc_router_discovery()
1295 in6_dev->if_flags |= IF_RA_RCVD; in ndisc_router_discovery()
1302 old_if_flags = in6_dev->if_flags; in ndisc_router_discovery()
1303 in6_dev->if_flags = (in6_dev->if_flags & ~(IF_RA_MANAGED | in ndisc_router_discovery()
1310 if (old_if_flags != in6_dev->if_flags) in ndisc_router_discovery()
1313 if (!READ_ONCE(in6_dev->cnf.accept_ra_defrtr)) { in ndisc_router_discovery()
1321 lifetime < READ_ONCE(in6_dev->cnf.accept_ra_min_lft)) { in ndisc_router_discovery()
1330 net = dev_net(in6_dev->dev); in ndisc_router_discovery()
1331 if (!READ_ONCE(in6_dev->cnf.accept_ra_from_local) && in ndisc_router_discovery()
1332 ipv6_chk_addr(net, &ipv6_hdr(skb)->saddr, in6_dev->dev, 0)) { in ndisc_router_discovery()
1342 !READ_ONCE(in6_dev->cnf.accept_ra_rtr_pref)) in ndisc_router_discovery()
1359 defrtr_usr_metric = in6_dev->cnf.ra_defrtr_metric; in ndisc_router_discovery()
1409 if (READ_ONCE(in6_dev->cnf.accept_ra_min_hop_limit) < 256 && in ndisc_router_discovery()
1411 if (READ_ONCE(in6_dev->cnf.accept_ra_min_hop_limit) <= in ndisc_router_discovery()
1413 WRITE_ONCE(in6_dev->cnf.hop_limit, in ndisc_router_discovery()
1428 if (in6_dev->nd_parms) { in ndisc_router_discovery()
1435 NEIGH_VAR_SET(in6_dev->nd_parms, RETRANS_TIME, rtime); in ndisc_router_discovery()
1436 in6_dev->tstamp = jiffies; in ndisc_router_discovery()
1447 if (rtime != NEIGH_VAR(in6_dev->nd_parms, BASE_REACHABLE_TIME)) { in ndisc_router_discovery()
1448 NEIGH_VAR_SET(in6_dev->nd_parms, in ndisc_router_discovery()
1450 NEIGH_VAR_SET(in6_dev->nd_parms, in ndisc_router_discovery()
1452 in6_dev->nd_parms->reachable_time = neigh_rand_reach_time(rtime); in ndisc_router_discovery()
1453 in6_dev->tstamp = jiffies; in ndisc_router_discovery()
1487 if (!ipv6_accept_ra(in6_dev)) { in ndisc_router_discovery()
1494 if (!READ_ONCE(in6_dev->cnf.accept_ra_from_local) && in ndisc_router_discovery()
1495 ipv6_chk_addr(dev_net(in6_dev->dev), &ipv6_hdr(skb)->saddr, in ndisc_router_discovery()
1496 in6_dev->dev, 0)) { in ndisc_router_discovery()
1502 if (READ_ONCE(in6_dev->cnf.accept_ra_rtr_pref) && ndopts.nd_opts_ri) { in ndisc_router_discovery()
1514 !READ_ONCE(in6_dev->cnf.accept_ra_defrtr)) in ndisc_router_discovery()
1517 ntohl(ri->lifetime) < READ_ONCE(in6_dev->cnf.accept_ra_min_lft)) in ndisc_router_discovery()
1519 if (ri->prefix_len < READ_ONCE(in6_dev->cnf.accept_ra_rt_info_min_plen)) in ndisc_router_discovery()
1521 if (ri->prefix_len > READ_ONCE(in6_dev->cnf.accept_ra_rt_info_max_plen)) in ndisc_router_discovery()
1540 if (READ_ONCE(in6_dev->cnf.accept_ra_pinfo) && ndopts.nd_opts_pi) { in ndisc_router_discovery()
1551 if (ndopts.nd_opts_mtu && READ_ONCE(in6_dev->cnf.accept_ra_mtu)) { in ndisc_router_discovery()
1558 if (in6_dev->ra_mtu != mtu) { in ndisc_router_discovery()
1559 in6_dev->ra_mtu = mtu; in ndisc_router_discovery()
1565 } else if (READ_ONCE(in6_dev->cnf.mtu6) != mtu) { in ndisc_router_discovery()
1566 WRITE_ONCE(in6_dev->cnf.mtu6, mtu); in ndisc_router_discovery()
1590 inet6_ifinfo_notify(RTM_NEWLINK, in6_dev); in ndisc_router_discovery()