Lines Matching refs:adr

80 	adr_t adr;			/* adr memory stream header */  in au_to_header()  local
99 adr_start(&adr, token->tt_data); in au_to_header()
100 adr_char(&adr, &data_header, 1); /* token ID */ in au_to_header()
101 adr_int32(&adr, &byte_count, 1); /* length of audit record */ in au_to_header()
102 adr_char(&adr, &version, 1); /* version of audit tokens */ in au_to_header()
103 adr_ushort(&adr, &e_type, 1); /* event ID */ in au_to_header()
104 adr_ushort(&adr, &e_mod, 1); /* event ID modifier */ in au_to_header()
106 adr_int64(&adr, (int64_t *)&tv, 2); /* time & date */ in au_to_header()
108 adr_int32(&adr, (int32_t *)&tv, 2); /* time & date */ in au_to_header()
121 adr_t adr; /* adr memory stream header */ in au_to_header_ex() local
158 adr_start(&adr, token->tt_data); in au_to_header_ex()
159 adr_char(&adr, &data_header, 1); /* token ID */ in au_to_header_ex()
160 adr_int32(&adr, &byte_count, 1); /* length of audit record */ in au_to_header_ex()
161 adr_char(&adr, &version, 1); /* version of audit tokens */ in au_to_header_ex()
162 adr_ushort(&adr, &e_type, 1); /* event ID */ in au_to_header_ex()
163 adr_ushort(&adr, &e_mod, 1); /* event ID modifier */ in au_to_header_ex()
164 adr_int32(&adr, (int32_t *)&host_info->at_type, 1); in au_to_header_ex()
165 adr_char(&adr, (char *)host_info->at_addr, in au_to_header_ex()
168 adr_int64(&adr, (int64_t *)&tv, 2); /* time & date */ in au_to_header_ex()
170 adr_int32(&adr, (int32_t *)&tv, 2); /* time & date */ in au_to_header_ex()
183 adr_t adr; /* adr memory stream header */ in au_to_trailer() local
192 adr_start(&adr, token->tt_data); in au_to_trailer()
193 adr_char(&adr, &data_header, 1); /* token ID */ in au_to_trailer()
194 adr_short(&adr, &magic, 1); /* magic number */ in au_to_trailer()
195 adr_int32(&adr, &byte_count, 1); /* length of audit record */ in au_to_trailer()
209 adr_t adr; /* adr memory stream header */ in au_to_arg32() local
219 adr_start(&adr, token->tt_data); in au_to_arg32()
220 adr_char(&adr, &data_header, 1); /* token type */ in au_to_arg32()
221 adr_char(&adr, &n, 1); /* argument id */ in au_to_arg32()
222 adr_int32(&adr, (int32_t *)&v, 1); /* argument value */ in au_to_arg32()
223 adr_short(&adr, &bytes, 1); in au_to_arg32()
224 adr_char(&adr, text, bytes); in au_to_arg32()
238 adr_t adr; /* adr memory stream header */ in au_to_arg64() local
248 adr_start(&adr, token->tt_data); in au_to_arg64()
249 adr_char(&adr, &data_header, 1); /* token type */ in au_to_arg64()
250 adr_char(&adr, &n, 1); /* argument id */ in au_to_arg64()
251 adr_int64(&adr, (int64_t *)&v, 1); /* argument value */ in au_to_arg64()
252 adr_short(&adr, &bytes, 1); in au_to_arg64()
253 adr_char(&adr, text, bytes); in au_to_arg64()
268 adr_t adr; /* adr memory stream header */ in au_to_attr() local
285 adr_start(&adr, token->tt_data); in au_to_attr()
286 adr_char(&adr, &data_header, 1); in au_to_attr()
288 adr_int32(&adr, &value, 1); in au_to_attr()
290 adr_int32(&adr, &value, 1); in au_to_attr()
292 adr_int32(&adr, &value, 1); in au_to_attr()
293 adr_int32(&adr, (int32_t *)&(attr->va_fsid), 1); in au_to_attr()
294 adr_int64(&adr, (int64_t *)&(attr->va_nodeid), 1); in au_to_attr()
296 adr_int64(&adr, (int64_t *)&(attr->va_rdev), 1); in au_to_attr()
298 adr_int32(&adr, (int32_t *)&(attr->va_rdev), 1); in au_to_attr()
312 adr_t adr; /* adr memory stream header */ in au_to_data() local
347 adr_start(&adr, token->tt_data); in au_to_data()
348 adr_char(&adr, &data_header, 1); in au_to_data()
349 adr_char(&adr, &unit_print, 1); in au_to_data()
350 adr_char(&adr, &unit_type, 1); in au_to_data()
351 adr_char(&adr, &unit_count, 1); in au_to_data()
356 adr_short(&adr, (short *)p, unit_count); in au_to_data()
360 adr_int32(&adr, (int32_t *)p, unit_count); in au_to_data()
364 adr_int64(&adr, (int64_t *)p, unit_count); in au_to_data()
368 adr_char(&adr, p, unit_count); in au_to_data()
392 adr_t adr; /* adr memory stream header */ in au_to_privset() local
412 adr_start(&adr, token->tt_data); in au_to_privset()
413 adr_char(&adr, &data_header, 1); in au_to_privset()
414 adr_short(&adr, &t_bytes, 1); in au_to_privset()
415 adr_char(&adr, (char *)priv_type, t_bytes); in au_to_privset()
416 adr_short(&adr, &p_bytes, 1); in au_to_privset()
417 adr_char(&adr, priv_string, p_bytes); in au_to_privset()
435 adr_t adr; /* adr memory stream header */ in au_to_process() local
449 adr_start(&adr, token->tt_data); in au_to_process()
450 adr_char(&adr, &data_header, 1); in au_to_process()
451 adr_int32(&adr, (int32_t *)&auid, 1); in au_to_process()
452 adr_int32(&adr, (int32_t *)&euid, 1); in au_to_process()
453 adr_int32(&adr, (int32_t *)&egid, 1); in au_to_process()
454 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_process()
455 adr_int32(&adr, (int32_t *)&rgid, 1); in au_to_process()
456 adr_int32(&adr, (int32_t *)&pid, 1); in au_to_process()
457 adr_int32(&adr, (int32_t *)&sid, 1); in au_to_process()
459 adr_int64(&adr, (int64_t *)&tid->port, 1); in au_to_process()
461 adr_int32(&adr, (int32_t *)&tid->port, 1); in au_to_process()
463 adr_int32(&adr, (int32_t *)&tid->machine, 1); in au_to_process()
478 adr_t adr; /* adr memory stream header */ in au_to_process_ex() local
502 adr_start(&adr, token->tt_data); in au_to_process_ex()
503 adr_char(&adr, &data_header, 1); in au_to_process_ex()
504 adr_int32(&adr, (int32_t *)&auid, 1); in au_to_process_ex()
505 adr_int32(&adr, (int32_t *)&euid, 1); in au_to_process_ex()
506 adr_int32(&adr, (int32_t *)&egid, 1); in au_to_process_ex()
507 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_process_ex()
508 adr_int32(&adr, (int32_t *)&rgid, 1); in au_to_process_ex()
509 adr_int32(&adr, (int32_t *)&pid, 1); in au_to_process_ex()
510 adr_int32(&adr, (int32_t *)&sid, 1); in au_to_process_ex()
512 adr_int64(&adr, (int64_t *)&tid->at_port, 1); in au_to_process_ex()
514 adr_int32(&adr, (int32_t *)&tid->at_port, 1); in au_to_process_ex()
517 adr_int32(&adr, (int32_t *)&tid->at_type, 1); in au_to_process_ex()
518 adr_char(&adr, (char *)tid->at_addr, 16); in au_to_process_ex()
520 adr_char(&adr, (char *)tid->at_addr, 4); in au_to_process_ex()
535 adr_t adr; /* adr memory stream header */ in au_to_seq() local
541 adr_start(&adr, token->tt_data); in au_to_seq()
542 adr_char(&adr, &data_header, 1); in au_to_seq()
543 adr_int32(&adr, (int32_t *)&audit_count, 1); in au_to_seq()
556 adr_t adr; in au_to_socket() local
565 adr_start(&adr, token->tt_data); in au_to_socket()
566 adr_char(&adr, &data_header, 1); in au_to_socket()
567 adr_short(&adr, (short *)&so->so_type, 1); in au_to_socket()
568 adr_short(&adr, (short *)&inp->inp_lport, 1); in au_to_socket()
569 adr_int32(&adr, (int32_t *)&inp->inp_laddr, 1); in au_to_socket()
570 adr_short(&adr, (short *)&inp->inp_fport, 1); in au_to_socket()
571 adr_int32(&adr, (int32_t *)&inp->inp_faddr, 1); in au_to_socket()
587 adr_t adr; /* adr memory stream header */ in au_to_subject() local
601 adr_start(&adr, token->tt_data); in au_to_subject()
602 adr_char(&adr, &data_header, 1); in au_to_subject()
603 adr_int32(&adr, (int32_t *)&auid, 1); in au_to_subject()
604 adr_int32(&adr, (int32_t *)&euid, 1); in au_to_subject()
605 adr_int32(&adr, (int32_t *)&egid, 1); in au_to_subject()
606 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_subject()
607 adr_int32(&adr, (int32_t *)&rgid, 1); in au_to_subject()
608 adr_int32(&adr, (int32_t *)&pid, 1); in au_to_subject()
609 adr_int32(&adr, (int32_t *)&sid, 1); in au_to_subject()
611 adr_int64(&adr, (int64_t *)&tid->port, 1); in au_to_subject()
613 adr_int32(&adr, (int32_t *)&tid->port, 1); in au_to_subject()
615 adr_int32(&adr, (int32_t *)&tid->machine, 1); in au_to_subject()
631 adr_t adr; /* adr memory stream header */ in au_to_subject_ex() local
658 adr_start(&adr, token->tt_data); in au_to_subject_ex()
659 adr_char(&adr, &data_header, 1); in au_to_subject_ex()
660 adr_int32(&adr, (int32_t *)&auid, 1); in au_to_subject_ex()
661 adr_int32(&adr, (int32_t *)&euid, 1); in au_to_subject_ex()
662 adr_int32(&adr, (int32_t *)&egid, 1); in au_to_subject_ex()
663 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_subject_ex()
664 adr_int32(&adr, (int32_t *)&rgid, 1); in au_to_subject_ex()
665 adr_int32(&adr, (int32_t *)&pid, 1); in au_to_subject_ex()
666 adr_int32(&adr, (int32_t *)&sid, 1); in au_to_subject_ex()
668 adr_int64(&adr, (int64_t *)&tid->at_port, 1); in au_to_subject_ex()
670 adr_int32(&adr, (int32_t *)&tid->at_port, 1); in au_to_subject_ex()
673 adr_int32(&adr, (int32_t *)&tid->at_type, 1); in au_to_subject_ex()
674 adr_char(&adr, (char *)tid->at_addr, 16); in au_to_subject_ex()
676 adr_char(&adr, (char *)tid->at_addr, 4); in au_to_subject_ex()
707 adr_t adr; /* adr memory stream header */ in au_to_text() local
715 adr_start(&adr, token->tt_data); in au_to_text()
716 adr_char(&adr, &data_header, 1); in au_to_text()
717 adr_short(&adr, &bytes, 1); in au_to_text()
718 adr_char(&adr, text, bytes); in au_to_text()
732 adr_t adr; /* adr memory stream header */ in au_to_path() local
741 adr_start(&adr, token->tt_data); in au_to_path()
742 adr_char(&adr, &data_header, 1); in au_to_path()
743 adr_short(&adr, &bytes, 1); in au_to_path()
744 adr_char(&adr, path, bytes); in au_to_path()
758 adr_t adr; /* adr memory stream header */ in au_to_cmd() local
788 adr_start(&adr, token->tt_data); in au_to_cmd()
789 adr_char(&adr, &data_header, 1); in au_to_cmd()
791 adr_short(&adr, &largc, 1); in au_to_cmd()
795 adr_short(&adr, &len, 1); in au_to_cmd()
796 adr_char(&adr, argv[cnt], len); in au_to_cmd()
799 adr_short(&adr, &envc, 1); in au_to_cmd()
803 adr_short(&adr, &len, 1); in au_to_cmd()
804 adr_char(&adr, envp[cnt], len); in au_to_cmd()
819 adr_t adr; /* adr memory stream header */ in au_to_exit() local
825 adr_start(&adr, token->tt_data); in au_to_exit()
826 adr_char(&adr, &data_header, 1); in au_to_exit()
827 adr_int32(&adr, (int32_t *)&retval, 1); in au_to_exit()
828 adr_int32(&adr, (int32_t *)&err, 1); in au_to_exit()
842 adr_t adr; /* adr memory stream header */ in au_to_return32() local
848 adr_start(&adr, token->tt_data); in au_to_return32()
849 adr_char(&adr, &data_header, 1); in au_to_return32()
850 adr_char(&adr, &number, 1); in au_to_return32()
851 adr_int32(&adr, (int32_t *)&value, 1); in au_to_return32()
865 adr_t adr; /* adr memory stream header */ in au_to_return64() local
871 adr_start(&adr, token->tt_data); in au_to_return64()
872 adr_char(&adr, &data_header, 1); in au_to_return64()
873 adr_char(&adr, &number, 1); in au_to_return64()
874 adr_int64(&adr, (int64_t *)&value, 1); in au_to_return64()
889 adr_t adr; /* adr memory stream header */ in au_to_opaque() local
898 adr_start(&adr, token->tt_data); in au_to_opaque()
899 adr_char(&adr, &data_header, 1); in au_to_opaque()
900 adr_short(&adr, &bytes, 1); in au_to_opaque()
901 adr_char(&adr, opaque, bytes); in au_to_opaque()
915 adr_t adr; /* adr memory stream header */ in au_to_in_addr() local
921 adr_start(&adr, token->tt_data); in au_to_in_addr()
922 adr_char(&adr, &data_header, 1); in au_to_in_addr()
923 adr_char(&adr, (char *)internet_addr, sizeof (struct in_addr)); in au_to_in_addr()
937 adr_t adr; in au_to_in_addr_ex() local
959 adr_start(&adr, token->tt_data); in au_to_in_addr_ex()
960 adr_char(&adr, &data_header, 1); in au_to_in_addr_ex()
961 adr_int32(&adr, &type, 1); in au_to_in_addr_ex()
962 adr_char(&adr, (char *)addr, sizeof (struct in6_addr)); in au_to_in_addr_ex()
977 adr_t adr; /* adr memory stream header */ in au_to_iport() local
983 adr_start(&adr, token->tt_data); in au_to_iport()
984 adr_char(&adr, &data_header, 1); in au_to_iport()
985 adr_short(&adr, (short *)&iport, 1); in au_to_iport()
994 adr_t adr; /* adr memory stream header */ in au_to_ipc() local
1000 adr_start(&adr, token->tt_data); in au_to_ipc()
1001 adr_char(&adr, &data_header, 1); in au_to_ipc()
1002 adr_char(&adr, &type, 1); in au_to_ipc()
1003 adr_int32(&adr, (int32_t *)&id, 1); in au_to_ipc()
1024 adr_t adr; /* adr memory stream header */ in au_to_tid() local
1036 adr_start(&adr, token->tt_data); in au_to_tid()
1037 adr_char(&adr, &data_header, 1); in au_to_tid()
1038 adr_char(&adr, (char *)&(tid->gt_type), 1); in au_to_tid()
1039 adr_short(&adr, (short *)&(ip->at_r_port), 1); in au_to_tid()
1040 adr_short(&adr, (short *)&(ip->at_l_port), 1); in au_to_tid()
1041 adr_int32(&adr, (int32_t *)&(ip->at_type), 1); in au_to_tid()
1043 adr_char(&adr, (char *)ip->at_addr, ip->at_type); in au_to_tid()
1067 adr_t adr; /* adr memory stream header */ in au_to_groups() local
1073 adr_start(&adr, token->tt_data); in au_to_groups()
1074 adr_char(&adr, &data_header, 1); in au_to_groups()
1075 adr_int32(&adr, (int32_t *)groups, NGROUPS); in au_to_groups()
1089 adr_t adr; /* adr memory stream header */ in au_to_newgroups() local
1099 adr_start(&adr, token->tt_data); in au_to_newgroups()
1100 adr_char(&adr, &data_header, 1); in au_to_newgroups()
1101 adr_short(&adr, &n_groups, 1); in au_to_newgroups()
1102 adr_int32(&adr, (int32_t *)groups, n_groups); in au_to_newgroups()
1138 adr_t adr; in au_to_exec() local
1150 adr_start(&adr, token->tt_data); in au_to_exec()
1151 adr_char(&adr, &data_header, 1); in au_to_exec()
1152 adr_int32(&adr, &n, 1); in au_to_exec()
1154 adr_char(&adr, *p, strlen(*p) + 1); in au_to_exec()
1168 adr_t adr; /* adr memory stream header */ in au_to_uauth() local
1177 adr_start(&adr, token->tt_data); in au_to_uauth()
1178 adr_char(&adr, &data_header, 1); in au_to_uauth()
1179 adr_short(&adr, &bytes, 1); in au_to_uauth()
1180 adr_char(&adr, text, bytes); in au_to_uauth()
1194 adr_t adr; /* adr memory stream header */ in au_to_upriv() local
1204 adr_start(&adr, token->tt_data); in au_to_upriv()
1205 adr_char(&adr, &data_header, 1); in au_to_upriv()
1206 adr_char(&adr, &sorf, 1); /* success/failure */ in au_to_upriv()
1207 adr_short(&adr, &bytes, 1); in au_to_upriv()
1208 adr_char(&adr, priv, bytes); in au_to_upriv()
1222 adr_t adr; /* adr memory stream header */ in au_to_user() local
1232 adr_start(&adr, token->tt_data); in au_to_user()
1233 adr_char(&adr, &data_header, 1); in au_to_user()
1234 adr_uid(&adr, &uid, 1); in au_to_user()
1235 adr_short(&adr, &bytes, 1); in au_to_user()
1236 adr_char(&adr, username, bytes); in au_to_user()
1250 adr_t adr; /* adr memory stream header */ in au_to_xatom() local
1259 adr_start(&adr, token->tt_data); in au_to_xatom()
1260 adr_char(&adr, &data_header, 1); in au_to_xatom()
1261 adr_short(&adr, (short *)&len, 1); in au_to_xatom()
1262 adr_char(&adr, atom, len); in au_to_xatom()
1276 adr_t adr; /* adr memory stream header */ in au_to_xselect() local
1290 adr_start(&adr, token->tt_data); in au_to_xselect()
1291 adr_char(&adr, &data_header, 1); in au_to_xselect()
1292 adr_short(&adr, &proplen, 1); in au_to_xselect()
1293 adr_char(&adr, propname, proplen); in au_to_xselect()
1294 adr_short(&adr, &typelen, 1); in au_to_xselect()
1295 adr_char(&adr, proptype, typelen); in au_to_xselect()
1296 adr_short(&adr, &datalen, 1); in au_to_xselect()
1297 adr_char(&adr, windata, datalen); in au_to_xselect()
1312 adr_t adr; /* adr memory stream header */ in x_common() local
1317 adr_start(&adr, token->tt_data); in x_common()
1318 adr_char(&adr, &data_header, 1); in x_common()
1319 adr_int32(&adr, &xid, 1); in x_common()
1320 adr_uid(&adr, &cuid, 1); in x_common()
1407 adr_t adr; /* adr memory stream header */ in au_to_xproperty() local
1417 adr_start(&adr, token->tt_data); in au_to_xproperty()
1418 adr_char(&adr, &data_header, 1); in au_to_xproperty()
1419 adr_int32(&adr, &xid, 1); in au_to_xproperty()
1420 adr_uid(&adr, &cuid, 1); in au_to_xproperty()
1421 adr_short(&adr, &proplen, 1); in au_to_xproperty()
1422 adr_char(&adr, propname, proplen); in au_to_xproperty()
1437 adr_t adr; /* adr memory stream header */ in au_to_xclient() local
1443 adr_start(&adr, token->tt_data); in au_to_xclient()
1444 adr_char(&adr, &data_header, 1); in au_to_xclient()
1445 adr_int32(&adr, (int32_t *)&client, 1); in au_to_xclient()
1459 adr_t adr; /* adr memory stream header */ in au_to_label() local
1470 adr_start(&adr, token->tt_data); in au_to_label()
1471 adr_char(&adr, &data_header, 1); in au_to_label()
1472 adr_char(&adr, (char *)label, llen); in au_to_label()
1506 adr_t adr; /* adr memory stream header */ in au_to_zonename() local
1517 adr_start(&adr, token->tt_data); in au_to_zonename()
1518 adr_char(&adr, &data_header, 1); in au_to_zonename()
1519 adr_short(&adr, &bytes, 1); in au_to_zonename()
1520 adr_char(&adr, name, bytes); in au_to_zonename()
1534 adr_t adr; /* adr memory stream header */ in au_to_fmri() local
1545 adr_start(&adr, token->tt_data); in au_to_fmri()
1546 adr_char(&adr, &data_header, 1); in au_to_fmri()
1547 adr_short(&adr, &bytes, 1); in au_to_fmri()
1548 adr_char(&adr, fmri, bytes); in au_to_fmri()