Lines Matching refs:data

65 interpret_dhcpv6(int flags, const uint8_t *data, int len)  in interpret_dhcpv6()  argument
87 mtype_to_str(data[0])); in interpret_dhcpv6()
88 if (data[0] == DHCPV6_MSG_RELAY_FORW || in interpret_dhcpv6()
89 data[0] == DHCPV6_MSG_RELAY_REPL) { in interpret_dhcpv6()
96 (void) memcpy(&d6r, data, sizeof (d6r)); in interpret_dhcpv6()
105 data += sizeof (d6r); in interpret_dhcpv6()
113 (void) memcpy(&d6m, data, sizeof (d6m)); in interpret_dhcpv6()
116 data += sizeof (d6m); in interpret_dhcpv6()
121 while ((d6o = dhcpv6_find_option(data, len, d6o, in interpret_dhcpv6()
127 d6o = dhcpv6_find_option(data, len, NULL, in interpret_dhcpv6()
142 d6o = dhcpv6_find_option(data, len, NULL, in interpret_dhcpv6()
154 "Message type (msg-type) = %u (%s)", data[0], in interpret_dhcpv6()
155 mtype_to_str(data[0])); in interpret_dhcpv6()
156 if (data[0] == DHCPV6_MSG_RELAY_FORW || in interpret_dhcpv6()
157 data[0] == DHCPV6_MSG_RELAY_REPL) { in interpret_dhcpv6()
163 (void) memcpy(&d6r, data, sizeof (d6r)); in interpret_dhcpv6()
168 data += sizeof (d6r); in interpret_dhcpv6()
176 (void) memcpy(&d6m, data, sizeof (d6m)); in interpret_dhcpv6()
179 data += sizeof (d6m); in interpret_dhcpv6()
183 show_options(data, len); in interpret_dhcpv6()
496 show_hex(const uint8_t *data, int len, const char *name) in show_hex() argument
507 (void) snprintf(buffer + 3 * i, 4, " %02x", *data++); in show_hex()
517 show_ascii(const uint8_t *data, int len, const char *name) in show_ascii() argument
529 if (!isascii(*data) || !isprint(*data)) in show_ascii()
530 bp += snprintf(bp, 5, "\\%03o", *data++); in show_ascii()
562 nest_options(const uint8_t *data, uint_t olen, char *prefix, char *title) in nest_options() argument
578 show_options(data, olen); in nest_options()
585 show_options(const uint8_t *data, int len) in show_options() argument
601 (void) memcpy(&d6o, data, sizeof (d6o)); in show_options()
607 ostart = data += sizeof (d6o); in show_options()
619 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
620 data += sizeof (val16); in show_options()
629 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
630 data += sizeof (val16); in show_options()
643 (void) memcpy(&val32, data, sizeof (val32)); in show_options()
644 data += sizeof (val32); in show_options()
655 (void) memcpy(&val32, data, sizeof (val32)); in show_options()
656 data += sizeof (val32); in show_options()
668 sp = str + snprintf(str, 3, "%02x", *data++); in show_options()
672 sp = sp + snprintf(sp, 3, "%02x", *data++); in show_options()
687 (void) memcpy(&d6in, data - sizeof (d6o), in show_options()
689 data += sizeof (d6in) - sizeof (d6o); in show_options()
697 nest_options(data, olen, "IA: ", in show_options()
706 (void) memcpy(&d6it, data - sizeof (d6o), in show_options()
708 data += sizeof (d6it) - sizeof (d6o); in show_options()
712 nest_options(data, olen, "IA: ", in show_options()
721 (void) memcpy(&d6ia, data - sizeof (d6o), in show_options()
723 data += sizeof (d6ia) - sizeof (d6o); in show_options()
732 nest_options(data, olen, "ADDR: ", "Address"); in show_options()
737 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
743 data += sizeof (val16); in show_options()
751 *data == 255 ? in show_options()
753 " Preference = %u", *data); in show_options()
758 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
770 (void) interpret_dhcpv6(F_DTAIL, data, olen); in show_options()
780 (void) memcpy(&d6a, data - sizeof (d6o), in show_options()
782 data += DHCPV6_AUTH_SIZE - sizeof (d6o); in show_options()
796 show_hex(data, olen, " Auth Info"); in show_options()
801 show_address(" Server Address", data); in show_options()
806 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
811 data += sizeof (val16); in show_options()
816 olen, data); in show_options()
821 (void) memcpy(&val32, data, sizeof (val32)); in show_options()
822 data += sizeof (val32); in show_options()
831 (void) memcpy(&val16, data, sizeof (val16)); in show_options()
832 data += sizeof (val16); in show_options()
841 show_hex(data, olen, " Class"); in show_options()
842 data += val16; in show_options()
851 (void) memcpy(&val32, data, sizeof (val32)); in show_options()
852 data += sizeof (val32); in show_options()
859 (void) memcpy(&sd6o, data, sizeof (sd6o)); in show_options()
865 data += sizeof (d6o); in show_options()
874 show_hex(data, sd6o.d6o_len, in show_options()
876 data += sd6o.d6o_len; in show_options()
885 (void) memcpy(&val32, data, sizeof (val32)); in show_options()
886 data += sizeof (val32); in show_options()
896 show_hex(data, olen, " ID"); in show_options()
902 " Message Type = %u (%s)", *data, in show_options()
903 reconf_to_str(*data)); in show_options()
917 str = inittab_decode(symp, data, olen, B_TRUE); in show_options()
940 show_address(" Address", data); in show_options()
941 data += sizeof (in6_addr_t); in show_options()
950 (void) memcpy(&d6ip, data - sizeof (d6o), in show_options()
952 data += DHCPV6_IAPREFIX_SIZE - sizeof (d6o); in show_options()
963 nest_options(data, olen, "ADDR: ", "Address"); in show_options()
969 (void) memcpy(&val32, data, sizeof (val32)); in show_options()
979 (void) memcpy(&d6c, data - sizeof (d6o), in show_options()
981 data += DHCPV6_CIVIC_SIZE - sizeof (d6o); in show_options()
992 " CA Element = %u (%s)", *data, in show_options()
993 catype_to_str(*data)); in show_options()
994 solen = data[1]; in show_options()
995 data += 2; in show_options()
1004 show_ascii(data, solen, " CA Data"); in show_options()
1005 data += solen; in show_options()
1017 " Flags = %02x", *data); in show_options()
1019 " %s", getflag(*data, DHCPV6_FQDNF_S, in show_options()
1022 " %s", getflag(*data, DHCPV6_FQDNF_O, in show_options()
1026 " %s", getflag(*data, DHCPV6_FQDNF_N, in show_options()
1033 str = inittab_decode(symp, data, olen, B_TRUE); in show_options()
1045 data = ostart + d6o.d6o_len; in show_options()