Lines Matching defs:opt

39 static boolean_t verify_opt_len(struct nd_opt_hdr *opt, int optlen,
47 static void incoming_prefix_opt(struct phyint *pi, uchar_t *opt,
49 static void incoming_prefix_onlink(struct phyint *pi, uchar_t *opt);
51 uchar_t *opt);
54 uchar_t *opt, struct sockaddr_in6 *from,
57 struct prefix *pr, uchar_t *opt,
60 static void incoming_mtu_opt(struct phyint *pi, uchar_t *opt,
62 static void incoming_lla_opt(struct phyint *pi, uchar_t *opt,
68 static void verify_prefix_opt(struct phyint *pi, uchar_t *opt,
70 static void verify_mtu_opt(struct phyint *pi, uchar_t *opt,
109 uchar_t *opt;
152 opt = find_ancillary(&msg, IPV6_HOPLIMIT);
153 if (opt == NULL) {
159 hoplimit = *(uint_t *)opt;
160 opt = find_ancillary(&msg, IPV6_RTHDR);
161 if (opt != NULL) {
290 struct nd_opt_hdr *opt;
295 opt = (struct nd_opt_hdr *)&rs[1];
297 optlen = opt->nd_opt_len * 8;
298 switch (opt->nd_opt_type) {
300 incoming_lla_opt(pi, (uchar_t *)opt,
306 opt = (struct nd_opt_hdr *)((char *)opt + optlen);
436 struct nd_opt_hdr *opt;
551 opt = (struct nd_opt_hdr *)&ra[1];
553 optlen = opt->nd_opt_len * 8;
554 switch (opt->nd_opt_type) {
556 incoming_prefix_opt(pi, (uchar_t *)opt, from,
560 incoming_mtu_opt(pi, (uchar_t *)opt, from);
565 incoming_lla_opt(pi, (uchar_t *)opt,
573 opt = (struct nd_opt_hdr *)((char *)opt + optlen);
591 incoming_prefix_opt(struct phyint *pi, uchar_t *opt,
594 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
620 good_prefix = incoming_prefix_addrconf(pi, opt, from, loopback);
624 incoming_prefix_onlink(pi, opt);
627 incoming_prefix_stateful(pi, opt);
642 incoming_prefix_onlink(struct phyint *pi, uchar_t *opt)
644 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
658 incoming_prefix_onlink_process(pr, opt);
672 incoming_prefix_onlink_process(pr, opt);
676 incoming_prefix_onlink_process(struct prefix *pr, uchar_t *opt)
678 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
726 incoming_prefix_stateful(struct phyint *pi, uchar_t *opt)
728 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
793 incoming_prefix_addrconf(struct phyint *pi, uchar_t *opt,
796 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
846 (void) incoming_prefix_addrconf_process(pi, pr, opt,
864 ret = incoming_prefix_addrconf_process(pi, pr, opt, from,
879 ret = incoming_prefix_addrconf_process(pi, pr, opt, from,
888 uchar_t *opt, struct sockaddr_in6 *from, boolean_t loopback,
891 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
999 logmsg(LOG_WARNING, "prefix opt %s/%u from %s on %s: "
1150 incoming_mtu_opt(struct phyint *pi, uchar_t *opt,
1153 struct nd_opt_mtu *mo = (struct nd_opt_mtu *)opt;
1206 incoming_lla_opt(struct phyint *pi, uchar_t *opt,
1209 struct nd_opt_lla *lo = (struct nd_opt_lla *)opt;
1271 struct nd_opt_hdr *opt;
1327 opt = (struct nd_opt_hdr *)&ra[1];
1329 optlen = opt->nd_opt_len * 8;
1330 switch (opt->nd_opt_type) {
1332 verify_prefix_opt(pi, (uchar_t *)opt, frombuf);
1335 verify_mtu_opt(pi, (uchar_t *)opt, frombuf);
1340 opt = (struct nd_opt_hdr *)((char *)opt + optlen);
1350 verify_prefix_opt(struct phyint *pi, uchar_t *opt, char *frombuf)
1352 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt;
1464 verify_mtu_opt(struct phyint *pi, uchar_t *opt, char *frombuf)
1466 struct nd_opt_mtu *mo = (struct nd_opt_mtu *)opt;
1491 verify_opt_len(struct nd_opt_hdr *opt, int optlen,
1495 if (opt->nd_opt_len == 0) {
1504 opt->nd_opt_type, abuf, pi->pi_name);
1507 optlen -= 8 * opt->nd_opt_len;
1517 opt->nd_opt_type, opt->nd_opt_len,
1521 opt = (struct nd_opt_hdr *)((char *)opt +
1522 8 * opt->nd_opt_len);