/freebsd/contrib/openbsm/libbsm/ |
H A D | bsm_audit.c | 96 au_record_t *rec = NULL; in au_open() local 110 rec = LIST_FIRST(&audit_free_q); in au_open() 111 rec->used = 1; in au_open() 112 LIST_REMOVE(rec, au_rec_q); in au_open() 119 if (rec == NULL) { in au_open() 123 rec = malloc (sizeof(au_record_t)); in au_open() 124 if (rec == NULL) in au_open() 127 rec->data = malloc (MAX_AUDIT_RECORD_SIZE * sizeof(u_char)); in au_open() 128 if (rec->data == NULL) { in au_open() 129 free(rec); in au_open() [all …]
|
/freebsd/sys/security/audit/ |
H A D | audit_bsm.c | 65 struct au_record *rec); 87 struct au_record *rec; in kau_open() local 89 rec = malloc(sizeof(*rec), M_AUDITBSM, M_WAITOK); in kau_open() 90 rec->data = NULL; in kau_open() 91 TAILQ_INIT(&rec->token_q); in kau_open() 92 rec->len = 0; in kau_open() 93 rec->used = 1; in kau_open() 95 return (rec); in kau_open() 102 kau_write(struct au_record *rec, struct au_token *tok) in kau_write() argument 107 TAILQ_INSERT_TAIL(&rec->token_q, tok, tokens); in kau_write() [all …]
|
/freebsd/sys/x86/x86/ |
H A D | mca.c | 86 struct mca_record rec; member 273 struct mca_internal *rec; in sysctl_mca_records() local 288 STAILQ_FOREACH(rec, &mca_records, link) { in sysctl_mca_records() 290 record = rec->rec; in sysctl_mca_records() 397 mca_mute(const struct mca_record *rec) in mca_mute() argument 416 rec->mr_bank == 0 && in mca_mute() 417 (rec->mr_status & 0xa0000000ffffffff) == 0x80000000000f0005 && in mca_mute() 426 mca_log(const struct mca_record *rec) in mca_log() argument 430 if (mca_mute(rec)) in mca_log() 433 if (!log_corrected && (rec->mr_status & MC_STATUS_UC) == 0 && in mca_log() [all …]
|
/freebsd/sys/netgraph/netflow/ |
H A D | netflow_v9.c | 265 struct netflow_v9_record_ipv4_tcp *rec = &rg.rec.v4_tcp; in export9_add() local 267 rec->src_addr = fed->r.r_src.s_addr; in export9_add() 268 rec->dst_addr = fed->r.r_dst.s_addr; in export9_add() 269 rec->next_hop = fed->next_hop.s_addr; in export9_add() 270 rec->i_ifx = htons(fed->fle_i_ifx); in export9_add() 271 rec->o_ifx = htons(fed->fle_o_ifx); in export9_add() 272 rec->i_packets = htonl(fed->packets); in export9_add() 273 rec->i_octets = htonl(fed->bytes); in export9_add() 274 rec->o_packets = htonl(0); in export9_add() 275 rec->o_octets = htonl(0); in export9_add() [all …]
|
/freebsd/crypto/openssl/ssl/record/ |
H A D | ssl3_record_tls13.c | 33 SSL3_RECORD *rec = &recs[0]; in tls13_enc() local 59 if (ctx == NULL || rec->type == SSL3_RT_ALERT) { in tls13_enc() 60 memmove(rec->data, rec->input, rec->length); in tls13_enc() 61 rec->input = rec->data; in tls13_enc() 119 if (rec->length < taglen + 1) in tls13_enc() 121 rec->length -= taglen; in tls13_enc() 149 rec->data + rec->length) <= 0)) { in tls13_enc() 156 || !WPACKET_put_bytes_u8(&wpkt, rec->type) in tls13_enc() 157 || !WPACKET_put_bytes_u16(&wpkt, rec->rec_version) in tls13_enc() 158 || !WPACKET_put_bytes_u16(&wpkt, rec->length + taglen) in tls13_enc() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | tls13encryptiontest.c | 239 static int load_record(SSL3_RECORD *rec, RECORD_DATA *recd, unsigned char **key, in load_record() argument 253 rec->data = rec->input = OPENSSL_malloc(ptlen + EVP_GCM_TLS_TAG_LEN); in load_record() 255 if (rec->data == NULL) in load_record() 258 rec->length = ptlen; in load_record() 259 memcpy(rec->data, pt, ptlen); in load_record() 276 static int test_record(SSL3_RECORD *rec, RECORD_DATA *recd, int enc) in test_record() argument 292 if (!TEST_mem_eq(rec->data, rec->length, refd, refdatalen)) in test_record() 308 SSL3_RECORD rec; in test_tls13_encryption() local 318 rec.data = NULL; in test_tls13_encryption() 319 rec.type = SSL3_RT_APPLICATION_DATA; in test_tls13_encryption() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_pc.c | 135 ipcap_read_rec(packetheader_t *rec) in ipcap_read_rec() argument 139 n = sizeof(*rec); in ipcap_read_rec() 142 i = read(pfd, (char *)rec, sizeof(*rec)); in ipcap_read_rec() 149 rec->caplen = SWAPLONG(rec->caplen); in ipcap_read_rec() 150 rec->wirelen = SWAPLONG(rec->wirelen); in ipcap_read_rec() 151 rec->seconds = SWAPLONG(rec->seconds); in ipcap_read_rec() 152 rec->microseconds = SWAPLONG(rec->microseconds); in ipcap_read_rec() 154 p = rec->caplen; in ipcap_read_rec() 155 n = MIN(p, rec->wirelen); in ipcap_read_rec() 173 packetheader_t rec; in ipcap_read() local [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_multicast.c | 102 struct ib_sa_mcmember_rec rec; member 129 static void join_handler(int status, struct ib_sa_mcmember_rec *rec, 131 static void leave_handler(int status, struct ib_sa_mcmember_rec *rec, 143 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 168 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 169 sizeof group->rec.mgid); in mcast_insert() 257 return leave_state & group->rec.join_state; in get_leave_state() 343 &member->multicast.rec, in send_join() 353 struct ib_sa_mcmember_rec rec; in send_leave() local 356 rec = group->rec; in send_leave() [all …]
|
H A D | ib_sa_query.c | 648 struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) in ib_init_ah_from_path() argument 656 ah_attr->dlid = be16_to_cpu(rec->dlid); in ib_init_ah_from_path() 657 ah_attr->sl = rec->sl; in ib_init_ah_from_path() 658 ah_attr->src_path_bits = be16_to_cpu(rec->slid) & in ib_init_ah_from_path() 661 ah_attr->static_rate = rec->rate; in ib_init_ah_from_path() 668 struct rdma_dev_addr dev_addr = {.bound_dev_if = rec->ifindex, in ib_init_ah_from_path() 669 .net = rec->net ? rec->net : in ib_init_ah_from_path() 676 rdma_gid2ip(&sgid_addr._sockaddr, &rec->sgid); in ib_init_ah_from_path() 677 rdma_gid2ip(&dgid_addr._sockaddr, &rec->dgid); in ib_init_ah_from_path() 687 rec->gid_type != IB_GID_TYPE_ROCE_UDP_ENCAP) in ib_init_ah_from_path() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_alias_GUID.c | 199 struct mlx4_sriov_alias_guid_info_rec_det *rec; in mlx4_ib_notify_slaves_on_guid_change() local 206 rec = &dev->sriov.alias_guid.ports_guid[port_num - 1]. in mlx4_ib_notify_slaves_on_guid_change() 240 required_value = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; in mlx4_ib_notify_slaves_on_guid_change() 246 rec->guid_indexes = rec->guid_indexes & in mlx4_ib_notify_slaves_on_guid_change() 299 struct mlx4_sriov_alias_guid_info_rec_det *rec; in aliasguid_query_handler() local 310 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler() 316 rec->time_to_run = ktime_get_ns() + 1 * NSEC_PER_SEC; in aliasguid_query_handler() 330 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler() 342 required_val = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; in aliasguid_query_handler() 359 if (rec->guids_retry_schedule[i] == 0) in aliasguid_query_handler() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/ |
H A D | PerfJITEventListener.cpp | 412 LLVMPerfJitRecordCodeLoad rec; in NotifyCode() local 413 rec.Prefix.Id = JIT_CODE_LOAD; in NotifyCode() 414 rec.Prefix.TotalSize = sizeof(rec) + // debug record itself in NotifyCode() 417 rec.Prefix.Timestamp = perf_get_timestamp(); in NotifyCode() 419 rec.CodeSize = CodeSize; in NotifyCode() 420 rec.Vma = CodeAddr; in NotifyCode() 421 rec.CodeAddr = CodeAddr; in NotifyCode() 422 rec.Pid = Pid; in NotifyCode() 423 rec in NotifyCode() 443 LLVMPerfJitRecordDebugInfo rec; NotifyDebug() local [all...] |
/freebsd/crypto/openssl/util/perl/TLSProxy/ |
H A D | Message.pm | 479 my ($rec) = @{$self->records}; 480 my $recdata = $rec->decrypt_data; 497 $rec->decrypt_data($prefix.($msgdata).($suffix)); 501 $rec->decrypt_len(length($rec->decrypt_data)); 503 if ($rec->encrypted()) { 506 $rec->data($rec->decrypt_data 508 } elsif ($rec->etm()) { 509 my $data = $rec->decrypt_data; 522 if ($rec->version() >= TLSProxy::Record::VERS_TLS_1_1) { 526 $rec->data($data); [all …]
|
/freebsd/lib/libdevdctl/ |
H A D | event_factory.cc | 64 EventFactory::Record *rec(regEntries); in UpdateRegistry() local 65 EventFactory::Record *lastRec(rec + numEntries - 1); in UpdateRegistry() 67 for (; rec <= lastRec; rec++) { in UpdateRegistry() 68 Key key(rec->m_type, rec->m_subsystem); in UpdateRegistry() 70 if (rec->m_buildMethod == NULL) in UpdateRegistry() 73 m_registry[key] = rec->m_buildMethod; in UpdateRegistry()
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | ssltestlib.c | 130 unsigned char *rec; in dump_data() 135 rec = (unsigned char *)data; in dump_data() 145 content = rec[RECORD_CONTENT_TYPE]; in dump_data() 148 rec[RECORD_VERSION_HI], rec[RECORD_VERSION_LO]); in dump_data() 149 epoch = (rec[RECORD_EPOCH_HI] << 8) | rec[RECORD_EPOCH_LO]; in dump_data() 153 printf("%02x", rec[i]); in dump_data() 154 reclen = (rec[RECORD_LEN_HI] << 8) | rec[RECORD_LEN_L in dump_data() 121 unsigned char *rec; dump_data() local 349 unsigned char *rec; mempacket_test_read() local 423 unsigned char *rec, *prevrec = NULL, *tmp; mempacket_swap_epoch() local [all...] |
/freebsd/sys/netinet/ |
H A D | sctp_indata.c | 426 chk->rec.data.tsn, in sctp_abort_in_reasm() 427 chk->rec.data.sid, in sctp_abort_in_reasm() 428 chk->rec.data.fsn, chk->rec.data.mid); in sctp_abort_in_reasm() 434 chk->rec.data.tsn, in sctp_abort_in_reasm() 435 chk->rec.data.sid, in sctp_abort_in_reasm() 436 chk->rec.data.fsn, in sctp_abort_in_reasm() 437 (uint16_t)chk->rec.data.mid); in sctp_abort_in_reasm() 780 if (chk->rec.data.fsn == fsn) { in sctp_handle_old_unordered_data() 802 if (tchk->rec.data.rcv_flags & SCTP_DATA_FIRST_FRAG) { in sctp_handle_old_unordered_data() 815 nc->fsn_included = tchk->rec.data.fsn; in sctp_handle_old_unordered_data() [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_sa.h | 182 static inline if_t ib_get_ndev_from_path(struct ib_sa_path_rec *rec) in ib_get_ndev_from_path() argument 185 if (rec->net == NULL) in ib_get_ndev_from_path() 188 return dev_get_by_index(rec->net, rec->ifindex); in ib_get_ndev_from_path() 330 struct ib_sa_path_rec *rec, 342 struct ib_sa_service_rec *rec, 352 struct ib_sa_mcmember_rec rec; member 389 struct ib_sa_mcmember_rec *rec, 418 union ib_gid *mgid, struct ib_sa_mcmember_rec *rec); 425 struct ib_sa_mcmember_rec *rec, 435 struct ib_sa_path_rec *rec, [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/union/ |
H A D | err.D_DECL_INCOMPLETE.simple.d | 47 union record rec; variable 51 rec.position = 0; 52 rec.content = 'a'; 54 rec.position, rec.content);
|
H A D | err.D_DECL_INCOMPLETE.circular.d | 53 union record rec; variable 58 rec.position = 0; 59 rec.content = 'a'; 61 "rec.position: %d\nrec.content: %c\n", rec.position, rec.content);
|
H A D | err.D_DECL_COMBO.UnionWithoutColon1.d | 51 union record rec; variable 56 rec.content = 'a'; 57 rec.position = 1; 64 rec.content, rec.position, pir.content, pir.position);
|
H A D | err.D_DECL_COMBO.UnionWithoutColon.d | 52 union record rec; variable 57 rec.content = 'a'; 58 rec.position = 1; 65 rec.content, rec.position, pir.content, pir.position);
|
H A D | err.D_DECL_INCOMPLETE.order.d | 52 union record rec; variable 57 rec.content = 'y'; 58 rec.position = 2; 65 rec.content, rec.position, pir.content, pir.position);
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/struct/ |
H A D | err.D_DECL_INCOMPLETE.simple.d | 48 struct record rec; variable 52 rec.position = 0; 53 rec.content = 'a'; 55 rec.position, rec.content);
|
H A D | err.D_DECL_INCOMPLETE.circular.d | 54 struct record rec; variable 59 rec.position = 0; 60 rec.content = 'a'; 62 rec.position, rec.content);
|
H A D | err.D_DECL_COMBO.StructWithoutColon1.d | 51 struct record rec; variable 56 rec.content = 'a'; 57 rec.position = 1; 64 rec.content, rec.position, pir.content, pir.position);
|
/freebsd/sbin/md5/ |
H A D | md5.c | 313 struct chksumrec *rec; in gnu_check() local 362 rec = malloc(sizeof(*rec)); in gnu_check() 363 if (rec == NULL) in gnu_check() 370 rec->filename = strdup(filename + 1); in gnu_check() 371 rec->input_mode = (enum input_mode)*filename; in gnu_check() 373 rec->filename = strdup(filename); in gnu_check() 374 rec->input_mode = input_mode; in gnu_check() 377 rec->chksum = strdup(hashstr); in gnu_check() 378 if (rec->chksum == NULL || rec->filename == NULL) in gnu_check() 380 rec->next = NULL; in gnu_check() [all …]
|