Lines Matching refs:T_opthdr
66 static int do_opt_default(queue_t *, struct T_opthdr *, uchar_t **,
68 static void do_opt_current(queue_t *, struct T_opthdr *, uchar_t **,
70 static void do_opt_check_or_negotiate(queue_t *q, struct T_opthdr *reqopt,
638 struct T_opthdr *opt; in process_topthdrs_first_pass()
639 struct T_opthdr *opt_start, *opt_end; in process_topthdrs_first_pass()
647 if ((opt_start = (struct T_opthdr *) in process_topthdrs_first_pass()
654 opt_end = (struct T_opthdr *)((uchar_t *)opt_start + tor->OPT_length); in process_topthdrs_first_pass()
768 *toa_lenp += sizeof (struct T_opthdr) + in process_topthdrs_first_pass()
786 (opt->len != sizeof (struct T_opthdr))) { in process_topthdrs_first_pass()
794 if (opt->len < sizeof (struct T_opthdr) || in process_topthdrs_first_pass()
796 opt->len - sizeof (struct T_opthdr))) { in process_topthdrs_first_pass()
838 *toa_lenp += sizeof (struct T_opthdr) + in process_topthdrs_first_pass()
861 struct T_opthdr *opt; in do_options_second_pass()
862 struct T_opthdr *opt_start, *opt_end; in do_options_second_pass()
873 opt_start = (struct T_opthdr *)mi_offset_param(reqmp, in do_options_second_pass()
877 opt_end = (struct T_opthdr *)((uchar_t *)opt_start + tor->OPT_length); in do_options_second_pass()
1023 do_opt_default(queue_t *q, struct T_opthdr *reqopt, uchar_t **resptrp, in do_opt_default()
1030 struct T_opthdr *topth; in do_opt_default()
1043 topth = (struct T_opthdr *)(*resptrp); in do_opt_default()
1053 topth->len = sizeof (struct T_opthdr); in do_opt_default()
1054 *resptrp += sizeof (struct T_opthdr); in do_opt_default()
1063 (sizeof (struct T_opthdr) + deflen); in do_opt_default()
1106 sizeof (struct T_opthdr)); in do_opt_default()
1138 topth = (struct T_opthdr *)(*resptrp); in do_opt_default()
1161 topth->len = sizeof (struct T_opthdr); in do_opt_default()
1162 *resptrp += sizeof (struct T_opthdr); in do_opt_default()
1171 sizeof (struct T_opthdr)); in do_opt_default()
1180 topth->len = sizeof (struct T_opthdr); in do_opt_default()
1220 sizeof (struct T_opthdr)); in do_opt_default()
1229 do_opt_current(queue_t *q, struct T_opthdr *reqopt, uchar_t **resptrp, in do_opt_current()
1235 struct T_opthdr *topth; in do_opt_current()
1247 topth = (struct T_opthdr *)*resptrp; in do_opt_current()
1248 *resptrp += sizeof (struct T_opthdr); in do_opt_current()
1252 sizeof (struct T_opthdr)); in do_opt_current()
1261 *resptrp -= sizeof (struct T_opthdr); in do_opt_current()
1274 topth = (struct T_opthdr *)*resptrp; in do_opt_current()
1275 *resptrp += sizeof (struct T_opthdr); in do_opt_current()
1283 sizeof (struct T_opthdr)); in do_opt_current()
1298 topth->len = sizeof (struct T_opthdr); in do_opt_current()
1320 do_opt_check_or_negotiate(queue_t *q, struct T_opthdr *reqopt, in do_opt_check_or_negotiate()
1328 struct T_opthdr *topth; in do_opt_check_or_negotiate()
1338 topth = (struct T_opthdr *)*resptrp; in do_opt_check_or_negotiate()
1339 *resptrp += sizeof (struct T_opthdr); in do_opt_check_or_negotiate()
1341 reqopt->len - sizeof (struct T_opthdr), in do_opt_check_or_negotiate()
1346 *resptrp -= sizeof (struct T_opthdr); in do_opt_check_or_negotiate()
1352 sizeof (struct T_opthdr)); in do_opt_check_or_negotiate()
1387 topth = (struct T_opthdr *)*resptrp; in do_opt_check_or_negotiate()
1388 topth->len = sizeof (struct T_opthdr); in do_opt_check_or_negotiate()
1404 topth = (struct T_opthdr *)*resptrp; in do_opt_check_or_negotiate()
1405 *resptrp += sizeof (struct T_opthdr); in do_opt_check_or_negotiate()
1407 topth->len = sizeof (struct T_opthdr); in do_opt_check_or_negotiate()
1524 struct T_opthdr *opt, *opt_start, *opt_end; in tpi_optcom_buf()
1554 if ((opt_start = (struct T_opthdr *) in tpi_optcom_buf()
1564 opt_end = (struct T_opthdr *)((uchar_t *)opt_start in tpi_optcom_buf()
1648 if (opt->len < (t_uscalar_t)sizeof (struct T_opthdr) || in tpi_optcom_buf()
1649 !opt_length_ok(optd, opt->len - sizeof (struct T_opthdr))) { in tpi_optcom_buf()
1675 opt->len - (t_uscalar_t)sizeof (struct T_opthdr), in tpi_optcom_buf()
1679 if (olen > (int)(opt->len - sizeof (struct T_opthdr))) { in tpi_optcom_buf()
1782 allopt_len += sizeof (struct T_opthdr) + in opt_level_allopts_lengths()
1801 max_optbuf_len += (t_uscalar_t)sizeof (struct T_opthdr) + in optcom_max_optbuf_len()
1827 (t_uscalar_t)sizeof (struct T_opthdr) + in optcom_max_optsize()