Lines Matching refs:op
671 const struct nd_opt_hdr *op;
693 op = (struct nd_opt_hdr *)cp;
695 ECHECK(op->nd_opt_len);
698 if (op->nd_opt_len == 0)
700 if (cp + (op->nd_opt_len << 3) > ep)
704 tok2str(icmp6_opt_values, "unknown", op->nd_opt_type),
705 op->nd_opt_type,
706 op->nd_opt_len << 3,
707 op->nd_opt_len);
709 switch (op->nd_opt_type) {
711 opl = (struct nd_opt_hdr *)op;
712 l = (op->nd_opt_len << 3) - 2;
716 opl = (struct nd_opt_hdr *)op;
717 l = (op->nd_opt_len << 3) - 2;
721 opp = (struct nd_opt_prefix_info *)op;
726 (op->nd_opt_len != 4) ? "badlen" : "",
732 opr = (struct icmp6_opts_redirect *)op;
733 print_unknown_data(bp,"\n\t ",op->nd_opt_len<<3);
737 opm = (struct nd_opt_mtu *)op;
741 (op->nd_opt_len != 1) ? "bad option length" : "" );
744 oprd = (struct nd_opt_rdnss *)op;
745 l = (op->nd_opt_len - 1) / 2;
755 opds = (struct nd_opt_dnssl *)op;
759 while (domp < cp + (op->nd_opt_len << 3) && *domp != '\0')
767 opa = (struct nd_opt_advinterval *)op;
772 oph = (struct nd_opt_homeagent_info *)op;
779 opri = (struct nd_opt_route_info *)op;
783 switch (op->nd_opt_len) {
805 print_unknown_data(cp+2,"\n\t ", (op->nd_opt_len << 3) - 2); /* skip option header */
812 print_unknown_data(cp+2,"\n\t ", (op->nd_opt_len << 3) - 2); /* skip option header */
814 cp += op->nd_opt_len << 3;
815 resid -= op->nd_opt_len << 3;