Lines Matching refs: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; in in_data() local
152 opt = find_ancillary(&msg, IPV6_HOPLIMIT); in in_data()
153 if (opt == NULL) { in in_data()
159 hoplimit = *(uint_t *)opt; in in_data()
160 opt = find_ancillary(&msg, IPV6_RTHDR); in in_data()
161 if (opt != NULL) { in in_data()
290 struct nd_opt_hdr *opt; in incoming_rs() local
295 opt = (struct nd_opt_hdr *)&rs[1]; in incoming_rs()
297 optlen = opt->nd_opt_len * 8; in incoming_rs()
298 switch (opt->nd_opt_type) { in incoming_rs()
300 incoming_lla_opt(pi, (uchar_t *)opt, in incoming_rs()
306 opt = (struct nd_opt_hdr *)((char *)opt + optlen); in incoming_rs()
436 struct nd_opt_hdr *opt; in incoming_ra() local
551 opt = (struct nd_opt_hdr *)&ra[1]; in incoming_ra()
553 optlen = opt->nd_opt_len * 8; in incoming_ra()
554 switch (opt->nd_opt_type) { in incoming_ra()
556 incoming_prefix_opt(pi, (uchar_t *)opt, from, in incoming_ra()
560 incoming_mtu_opt(pi, (uchar_t *)opt, from); in incoming_ra()
565 incoming_lla_opt(pi, (uchar_t *)opt, in incoming_ra()
573 opt = (struct nd_opt_hdr *)((char *)opt + optlen); in incoming_ra()
591 incoming_prefix_opt(struct phyint *pi, uchar_t *opt, in incoming_prefix_opt() argument
594 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in incoming_prefix_opt()
620 good_prefix = incoming_prefix_addrconf(pi, opt, from, loopback); in incoming_prefix_opt()
624 incoming_prefix_onlink(pi, opt); in incoming_prefix_opt()
627 incoming_prefix_stateful(pi, opt); in incoming_prefix_opt()
642 incoming_prefix_onlink(struct phyint *pi, uchar_t *opt) in incoming_prefix_onlink() argument
644 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in incoming_prefix_onlink()
658 incoming_prefix_onlink_process(pr, opt); in incoming_prefix_onlink()
672 incoming_prefix_onlink_process(pr, opt); in incoming_prefix_onlink()
676 incoming_prefix_onlink_process(struct prefix *pr, uchar_t *opt) in incoming_prefix_onlink_process() argument
678 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in incoming_prefix_onlink_process()
726 incoming_prefix_stateful(struct phyint *pi, uchar_t *opt) in incoming_prefix_stateful() argument
728 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in incoming_prefix_stateful()
793 incoming_prefix_addrconf(struct phyint *pi, uchar_t *opt, in incoming_prefix_addrconf() argument
796 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in incoming_prefix_addrconf()
846 (void) incoming_prefix_addrconf_process(pi, pr, opt, in incoming_prefix_addrconf()
864 ret = incoming_prefix_addrconf_process(pi, pr, opt, from, in incoming_prefix_addrconf()
879 ret = incoming_prefix_addrconf_process(pi, pr, opt, from, in incoming_prefix_addrconf()
888 uchar_t *opt, struct sockaddr_in6 *from, boolean_t loopback, in incoming_prefix_addrconf_process() argument
891 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in incoming_prefix_addrconf_process()
1150 incoming_mtu_opt(struct phyint *pi, uchar_t *opt, in incoming_mtu_opt() argument
1153 struct nd_opt_mtu *mo = (struct nd_opt_mtu *)opt; in incoming_mtu_opt()
1206 incoming_lla_opt(struct phyint *pi, uchar_t *opt, in incoming_lla_opt() argument
1209 struct nd_opt_lla *lo = (struct nd_opt_lla *)opt; in incoming_lla_opt()
1271 struct nd_opt_hdr *opt; in verify_ra_consistency() local
1327 opt = (struct nd_opt_hdr *)&ra[1]; in verify_ra_consistency()
1329 optlen = opt->nd_opt_len * 8; in verify_ra_consistency()
1330 switch (opt->nd_opt_type) { in verify_ra_consistency()
1332 verify_prefix_opt(pi, (uchar_t *)opt, frombuf); in verify_ra_consistency()
1335 verify_mtu_opt(pi, (uchar_t *)opt, frombuf); in verify_ra_consistency()
1340 opt = (struct nd_opt_hdr *)((char *)opt + optlen); in verify_ra_consistency()
1350 verify_prefix_opt(struct phyint *pi, uchar_t *opt, char *frombuf) in verify_prefix_opt() argument
1352 struct nd_opt_prefix_info *po = (struct nd_opt_prefix_info *)opt; in verify_prefix_opt()
1464 verify_mtu_opt(struct phyint *pi, uchar_t *opt, char *frombuf) in verify_mtu_opt() argument
1466 struct nd_opt_mtu *mo = (struct nd_opt_mtu *)opt; in verify_mtu_opt()
1491 verify_opt_len(struct nd_opt_hdr *opt, int optlen, in verify_opt_len() argument
1495 if (opt->nd_opt_len == 0) { in verify_opt_len()
1504 opt->nd_opt_type, abuf, pi->pi_name); in verify_opt_len()
1507 optlen -= 8 * opt->nd_opt_len; in verify_opt_len()
1517 opt->nd_opt_type, opt->nd_opt_len, in verify_opt_len()
1521 opt = (struct nd_opt_hdr *)((char *)opt + in verify_opt_len()
1522 8 * opt->nd_opt_len); in verify_opt_len()