Lines Matching refs:in6_dev

333 	struct inet6_dev *in6_dev;  in ndisc_constructor()  local
337 in6_dev = in6_dev_get(dev); in ndisc_constructor()
338 if (!in6_dev) { in ndisc_constructor()
342 parms = in6_dev->nd_parms; in ndisc_constructor()
373 in6_dev_put(in6_dev); in ndisc_constructor()
1243 struct inet6_dev *in6_dev; in ndisc_router_discovery() local
1275 in6_dev = __in6_dev_get(skb->dev); in ndisc_router_discovery()
1276 if (!in6_dev) { in ndisc_router_discovery()
1285 if (!ipv6_accept_ra(in6_dev)) { in ndisc_router_discovery()
1302 if (in6_dev->if_flags & IF_RS_SENT) { in ndisc_router_discovery()
1307 in6_dev->if_flags |= IF_RA_RCVD; in ndisc_router_discovery()
1314 old_if_flags = in6_dev->if_flags; in ndisc_router_discovery()
1315 in6_dev->if_flags = (in6_dev->if_flags & ~(IF_RA_MANAGED | in ndisc_router_discovery()
1322 if (old_if_flags != in6_dev->if_flags) in ndisc_router_discovery()
1325 if (!READ_ONCE(in6_dev->cnf.accept_ra_defrtr)) { in ndisc_router_discovery()
1334 lifetime < READ_ONCE(in6_dev->cnf.accept_ra_min_lft)) { in ndisc_router_discovery()
1344 net = dev_net(in6_dev->dev); in ndisc_router_discovery()
1345 if (!READ_ONCE(in6_dev->cnf.accept_ra_from_local) && in ndisc_router_discovery()
1346 ipv6_chk_addr(net, &ipv6_hdr(skb)->saddr, in6_dev->dev, 0)) { in ndisc_router_discovery()
1357 !READ_ONCE(in6_dev->cnf.accept_ra_rtr_pref)) in ndisc_router_discovery()
1375 defrtr_usr_metric = in6_dev->cnf.ra_defrtr_metric; in ndisc_router_discovery()
1428 if (READ_ONCE(in6_dev->cnf.accept_ra_min_hop_limit) < 256 && in ndisc_router_discovery()
1430 if (READ_ONCE(in6_dev->cnf.accept_ra_min_hop_limit) <= in ndisc_router_discovery()
1432 WRITE_ONCE(in6_dev->cnf.hop_limit, in ndisc_router_discovery()
1447 if (in6_dev->nd_parms) { in ndisc_router_discovery()
1454 NEIGH_VAR_SET(in6_dev->nd_parms, RETRANS_TIME, rtime); in ndisc_router_discovery()
1455 in6_dev->tstamp = jiffies; in ndisc_router_discovery()
1466 if (rtime != NEIGH_VAR(in6_dev->nd_parms, BASE_REACHABLE_TIME)) { in ndisc_router_discovery()
1467 NEIGH_VAR_SET(in6_dev->nd_parms, in ndisc_router_discovery()
1469 NEIGH_VAR_SET(in6_dev->nd_parms, in ndisc_router_discovery()
1471 in6_dev->nd_parms->reachable_time = neigh_rand_reach_time(rtime); in ndisc_router_discovery()
1472 in6_dev->tstamp = jiffies; in ndisc_router_discovery()
1507 if (!ipv6_accept_ra(in6_dev)) { in ndisc_router_discovery()
1515 if (!READ_ONCE(in6_dev->cnf.accept_ra_from_local) && in ndisc_router_discovery()
1516 ipv6_chk_addr(dev_net(in6_dev->dev), &ipv6_hdr(skb)->saddr, in ndisc_router_discovery()
1517 in6_dev->dev, 0)) { in ndisc_router_discovery()
1524 if (READ_ONCE(in6_dev->cnf.accept_ra_rtr_pref) && ndopts.nd_opts_ri) { in ndisc_router_discovery()
1536 !READ_ONCE(in6_dev->cnf.accept_ra_defrtr)) in ndisc_router_discovery()
1539 ntohl(ri->lifetime) < READ_ONCE(in6_dev->cnf.accept_ra_min_lft)) in ndisc_router_discovery()
1541 if (ri->prefix_len < READ_ONCE(in6_dev->cnf.accept_ra_rt_info_min_plen)) in ndisc_router_discovery()
1543 if (ri->prefix_len > READ_ONCE(in6_dev->cnf.accept_ra_rt_info_max_plen)) in ndisc_router_discovery()
1563 if (READ_ONCE(in6_dev->cnf.accept_ra_pinfo) && ndopts.nd_opts_pi) { in ndisc_router_discovery()
1574 if (ndopts.nd_opts_mtu && READ_ONCE(in6_dev->cnf.accept_ra_mtu)) { in ndisc_router_discovery()
1581 if (in6_dev->ra_mtu != mtu) { in ndisc_router_discovery()
1582 in6_dev->ra_mtu = mtu; in ndisc_router_discovery()
1588 } else if (READ_ONCE(in6_dev->cnf.mtu6) != mtu) { in ndisc_router_discovery()
1589 WRITE_ONCE(in6_dev->cnf.mtu6, mtu); in ndisc_router_discovery()
1613 inet6_ifinfo_notify(RTM_NEWLINK, in6_dev); in ndisc_router_discovery()