Project

General

Profile

Submit #2774 ยป rfc2374_remove.patch

gpr, 01/20/2015 06:47 AM

View differences:

sys/netinet6/nd6_rtr.c
332 332
				continue;
333 333
			}
334 334

  
335
			/* aggregatable unicast address, rfc2374 */
336
			if ((pi->nd_opt_pi_prefix.s6_addr8[0] & 0xe0) == 0x20
337
			 && pi->nd_opt_pi_prefix_len != 64) {
338
				nd6log((LOG_INFO,
339
				    "nd6_ra_input: invalid prefixlen "
340
				    "%d for rfc2374 prefix %s, ignored\n",
341
				    pi->nd_opt_pi_prefix_len,
342
				    ip6_sprintf(&pi->nd_opt_pi_prefix)));
343
				continue;
344
			}
345

  
346 335
			bzero(&pr, sizeof(pr));
347 336
			pr.ndpr_prefix.sin6_family = AF_INET6;
348 337
			pr.ndpr_prefix.sin6_len = sizeof(pr.ndpr_prefix);
    (1-1/1)