Lines Matching refs:in6_dev

330 	struct inet6_dev *in6_dev;
334 in6_dev = in6_dev_get(dev);
335 if (!in6_dev) {
339 parms = in6_dev->nd_parms;
370 in6_dev_put(in6_dev);
1175 struct inet6_dev *in6_dev;
1213 in6_dev = __in6_dev_get(skb->dev);
1214 if (!in6_dev) {
1225 if (!ipv6_accept_ra(in6_dev)) {
1242 if (in6_dev->if_flags & IF_RS_SENT) {
1247 in6_dev->if_flags |= IF_RA_RCVD;
1254 old_if_flags = in6_dev->if_flags;
1255 in6_dev->if_flags = (in6_dev->if_flags & ~(IF_RA_MANAGED |
1262 if (old_if_flags != in6_dev->if_flags)
1265 if (!in6_dev->cnf.accept_ra_defrtr) {
1273 if (lifetime != 0 && lifetime < in6_dev->cnf.accept_ra_min_lft) {
1283 net = dev_net(in6_dev->dev);
1284 if (!in6_dev->cnf.accept_ra_from_local &&
1285 ipv6_chk_addr(net, &ipv6_hdr(skb)->saddr, in6_dev->dev, 0)) {
1296 !in6_dev->cnf.accept_ra_rtr_pref)
1349 if (in6_dev->cnf.accept_ra_min_hop_limit < 256 &&
1351 if (in6_dev->cnf.accept_ra_min_hop_limit <= ra_msg->icmph.icmp6_hop_limit) {
1352 in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit;
1366 if (in6_dev->nd_parms) {
1373 NEIGH_VAR_SET(in6_dev->nd_parms, RETRANS_TIME, rtime);
1374 in6_dev->tstamp = jiffies;
1385 if (rtime != NEIGH_VAR(in6_dev->nd_parms, BASE_REACHABLE_TIME)) {
1386 NEIGH_VAR_SET(in6_dev->nd_parms,
1388 NEIGH_VAR_SET(in6_dev->nd_parms,
1390 in6_dev->nd_parms->reachable_time = neigh_rand_reach_time(rtime);
1391 in6_dev->tstamp = jiffies;
1401 inet6_ifinfo_notify(RTM_NEWLINK, in6_dev);
1431 if (!ipv6_accept_ra(in6_dev)) {
1439 if (!in6_dev->cnf.accept_ra_from_local &&
1440 ipv6_chk_addr(dev_net(in6_dev->dev), &ipv6_hdr(skb)->saddr,
1441 in6_dev->dev, 0)) {
1448 if (in6_dev->cnf.accept_ra_rtr_pref && ndopts.nd_opts_ri) {
1460 !in6_dev->cnf.accept_ra_defrtr)
1463 ntohl(ri->lifetime) < in6_dev->cnf.accept_ra_min_lft)
1465 if (ri->prefix_len < in6_dev->cnf.accept_ra_rt_info_min_plen)
1467 if (ri->prefix_len > in6_dev->cnf.accept_ra_rt_info_max_plen)
1487 if (in6_dev->cnf.accept_ra_pinfo && ndopts.nd_opts_pi) {
1498 if (ndopts.nd_opts_mtu && in6_dev->cnf.accept_ra_mtu) {
1507 } else if (in6_dev->cnf.mtu6 != mtu) {
1508 in6_dev->cnf.mtu6 = mtu;