Lines Matching refs:hdr
796 icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */
1412 nd6_options(struct nd_opt_hdr *hdr, int limit,
1423 hdr = (struct nd_opt_hdr *)((caddr_t)hdr + optlen);
1424 if (hdr->nd_opt_len == 0) {
1427 __func__, hdr->nd_opt_type);
1430 optlen = hdr->nd_opt_len << 3;
1436 if (hdr->nd_opt_type > ND_OPT_MTU &&
1437 hdr->nd_opt_type != ND_OPT_RDNSS &&
1438 hdr->nd_opt_type != ND_OPT_DNSSL) {
1440 __func__, hdr->nd_opt_type);
1444 if ((ndopt_flags[hdr->nd_opt_type] & optflags) == 0) {
1446 __func__, hdr->nd_opt_type);
1454 switch (hdr->nd_opt_type) {
1478 switch (hdr->nd_opt_type) {
1486 if (ndopts->opt_array[hdr->nd_opt_type]) {
1489 __func__, hdr->nd_opt_type);
1491 ndopts->opt_array[hdr->nd_opt_type] = hdr;
1499 (struct nd_opt_prefix_info *)hdr;
1508 nol->nol_opt = hdr;
1580 /* specify to tell value of hoplimit field of received IP6 hdr */