Lines Matching refs:in6_dev

331 	struct inet6_dev *in6_dev;  in ndisc_constructor()  local
335 in6_dev = in6_dev_get(dev); in ndisc_constructor()
336 if (!in6_dev) { in ndisc_constructor()
340 parms = in6_dev->nd_parms; in ndisc_constructor()
371 in6_dev_put(in6_dev); in ndisc_constructor()
1239 struct inet6_dev *in6_dev; in ndisc_router_discovery() local
1270 in6_dev = __in6_dev_get(skb->dev); in ndisc_router_discovery()
1271 if (!in6_dev) { in ndisc_router_discovery()
1280 if (!ipv6_accept_ra(in6_dev)) { in ndisc_router_discovery()
1297 if (in6_dev->if_flags & IF_RS_SENT) { in ndisc_router_discovery()
1302 in6_dev->if_flags |= IF_RA_RCVD; in ndisc_router_discovery()
1309 old_if_flags = in6_dev->if_flags; in ndisc_router_discovery()
1310 in6_dev->if_flags = (in6_dev->if_flags & ~(IF_RA_MANAGED | in ndisc_router_discovery()
1317 if (old_if_flags != in6_dev->if_flags) in ndisc_router_discovery()
1320 if (!in6_dev->cnf.accept_ra_defrtr) { in ndisc_router_discovery()
1328 if (lifetime != 0 && lifetime < in6_dev->cnf.accept_ra_min_lft) { in ndisc_router_discovery()
1338 net = dev_net(in6_dev->dev); in ndisc_router_discovery()
1339 if (!in6_dev->cnf.accept_ra_from_local && in ndisc_router_discovery()
1340 ipv6_chk_addr(net, &ipv6_hdr(skb)->saddr, in6_dev->dev, 0)) { in ndisc_router_discovery()
1351 !in6_dev->cnf.accept_ra_rtr_pref) in ndisc_router_discovery()
1369 defrtr_usr_metric = in6_dev->cnf.ra_defrtr_metric; in ndisc_router_discovery()
1414 if (in6_dev->cnf.accept_ra_min_hop_limit < 256 && in ndisc_router_discovery()
1416 if (in6_dev->cnf.accept_ra_min_hop_limit <= ra_msg->icmph.icmp6_hop_limit) { in ndisc_router_discovery()
1417 in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; in ndisc_router_discovery()
1431 if (in6_dev->nd_parms) { in ndisc_router_discovery()
1438 NEIGH_VAR_SET(in6_dev->nd_parms, RETRANS_TIME, rtime); in ndisc_router_discovery()
1439 in6_dev->tstamp = jiffies; in ndisc_router_discovery()
1450 if (rtime != NEIGH_VAR(in6_dev->nd_parms, BASE_REACHABLE_TIME)) { in ndisc_router_discovery()
1451 NEIGH_VAR_SET(in6_dev->nd_parms, in ndisc_router_discovery()
1453 NEIGH_VAR_SET(in6_dev->nd_parms, in ndisc_router_discovery()
1455 in6_dev->nd_parms->reachable_time = neigh_rand_reach_time(rtime); in ndisc_router_discovery()
1456 in6_dev->tstamp = jiffies; in ndisc_router_discovery()
1491 if (!ipv6_accept_ra(in6_dev)) { in ndisc_router_discovery()
1499 if (!in6_dev->cnf.accept_ra_from_local && in ndisc_router_discovery()
1500 ipv6_chk_addr(dev_net(in6_dev->dev), &ipv6_hdr(skb)->saddr, in ndisc_router_discovery()
1501 in6_dev->dev, 0)) { in ndisc_router_discovery()
1508 if (in6_dev->cnf.accept_ra_rtr_pref && ndopts.nd_opts_ri) { in ndisc_router_discovery()
1520 !in6_dev->cnf.accept_ra_defrtr) in ndisc_router_discovery()
1523 ntohl(ri->lifetime) < in6_dev->cnf.accept_ra_min_lft) in ndisc_router_discovery()
1525 if (ri->prefix_len < in6_dev->cnf.accept_ra_rt_info_min_plen) in ndisc_router_discovery()
1527 if (ri->prefix_len > in6_dev->cnf.accept_ra_rt_info_max_plen) in ndisc_router_discovery()
1547 if (in6_dev->cnf.accept_ra_pinfo && ndopts.nd_opts_pi) { in ndisc_router_discovery()
1558 if (ndopts.nd_opts_mtu && in6_dev->cnf.accept_ra_mtu) { in ndisc_router_discovery()
1565 if (in6_dev->ra_mtu != mtu) { in ndisc_router_discovery()
1566 in6_dev->ra_mtu = mtu; in ndisc_router_discovery()
1572 } else if (in6_dev->cnf.mtu6 != mtu) { in ndisc_router_discovery()
1573 in6_dev->cnf.mtu6 = mtu; in ndisc_router_discovery()
1597 inet6_ifinfo_notify(RTM_NEWLINK, in6_dev); in ndisc_router_discovery()