| /openbsd-src/sys/arch/arm/include/ |
| H A D | sysreg.h | 47 #define CP14_DBGDIDR(rr) p14, 0, rr, c0, c0, 0 /* Debug ID Register */ argument 48 #define CP14_DBGDSCRext_V6(rr) p14, 0, rr, c0, c1, 0 /* Debug Status and Ctrl Register v6 */ argument 49 #define CP14_DBGDSCRext_V7(rr) p14, 0, rr, c0, c2, 2 /* Debug Status and Ctrl Register v7 */ argument 50 #define CP14_DBGVCR(rr) p14, 0, rr, c0, c7, 0 /* Vector Catch Register */ argument 51 #define CP14_DBGOSLAR(rr) p14, 0, rr, c1, c0, 4 /* OS Lock Access Register */ argument 52 #define CP14_DBGOSLSR(rr) p14, 0, rr, c1, c1, 4 /* OS Lock Status Register */ argument 53 #define CP14_DBGOSDLR(rr) p14, 0, rr, c1, c3, 4 /* OS Double Lock Register */ argument 54 #define CP14_DBGPRSR(rr) p14, 0, rr, c1, c5, 4 /* Device Powerdown and Reset Status */ argument 56 #define CP14_DBGDSCRint(rr) CP14_DBGDSCRext_V6(rr) /* Debug Status and Ctrl internal view */ argument 62 #define CP15_MIDR(rr) p15, 0, rr, c0, c0, 0 /* Main ID Register */ argument [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/include/opcode/ |
| H A D | convex.h | 22 #define rr 2 macro 226 {28,5,rr,A,A,0}, /* cvtw.b */ 227 {28,6,rr,A,A,0}, /* cvtw.h */ 228 {29,7,rr,A,A,0}, /* cvtb.w */ 229 {30,7,rr,A,A,0}, /* cvth.w */ 230 {28,5,rr,S,S,0}, /* cvtw.b */ 231 {28,6,rr,S,S,0}, /* cvtw.h */ 232 {29,7,rr,S,S,0}, /* cvtb.w */ 233 {30,7,rr,S,S,0}, /* cvth.w */ 234 {28,3,rr,S,S,0}, /* cvtw.s */ [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/include/opcode/ |
| H A D | convex.h | 22 #define rr 2 macro 226 {28,5,rr,A,A,0}, /* cvtw.b */ 227 {28,6,rr,A,A,0}, /* cvtw.h */ 228 {29,7,rr,A,A,0}, /* cvtb.w */ 229 {30,7,rr,A,A,0}, /* cvth.w */ 230 {28,5,rr,S,S,0}, /* cvtw.b */ 231 {28,6,rr,S,S,0}, /* cvtw.h */ 232 {29,7,rr,S,S,0}, /* cvtb.w */ 233 {30,7,rr,S,S,0}, /* cvth.w */ 234 {28,3,rr,S,S,0}, /* cvtw.s */ [all …]
|
| /openbsd-src/usr.sbin/smtpd/ |
| H A D | unpack_dns.c | 65 unpack_rr(struct unpack *p, struct dns_rr *rr) in unpack_rr() argument 70 unpack_dname(p, rr->rr_dname, sizeof(rr->rr_dname)); in unpack_rr() 71 unpack_u16(p, &rr->rr_type); in unpack_rr() 72 unpack_u16(p, &rr->rr_class); in unpack_rr() 73 unpack_u32(p, &rr->rr_ttl); in unpack_rr() 86 switch (rr->rr_type) { in unpack_rr() 89 unpack_dname(p, rr->rr.cname.cname, sizeof(rr->rr.cname.cname)); in unpack_rr() 93 unpack_u16(p, &rr->rr.mx.preference); in unpack_rr() 94 unpack_dname(p, rr->rr.mx.exchange, sizeof(rr->rr.mx.exchange)); in unpack_rr() 98 unpack_dname(p, rr->rr.ns.nsname, sizeof(rr->rr.ns.nsname)); in unpack_rr() [all …]
|
| H A D | spfwalk.c | 143 struct dns_rr rr; in dispatch_record() local 154 unpack_rr(&pack, &rr); in dispatch_record() 156 tgt->dispatch(&rr, tgt); in dispatch_record() 163 dispatch_txt(struct dns_rr *rr, struct target *tgt) in dispatch_txt() argument 175 if (rr->rr_type != T_TXT) in dispatch_txt() 177 n = parse_txt(rr->rr.other.rdata, rr->rr.other.rdlen, buf, sizeof(buf)); in dispatch_txt() 219 print_dname(rr->rr_dname, buf2, sizeof(buf2)); in dispatch_txt() 253 print_dname(rr->rr_dname, buf2, sizeof(buf2)); in dispatch_txt() 272 dispatch_mx(struct dns_rr *rr, struct target *tgt) in dispatch_mx() argument 277 if (rr->rr_type != T_MX) in dispatch_mx() [all …]
|
| /openbsd-src/regress/lib/libc/asr/bin/ |
| H A D | res_mkquery.c | 40 static char *print_rr(struct rr *, char *, size_t); 134 struct rr rr; in dump_packet() local 167 if (unpack_rr(&p, &rr) == -1) in dump_packet() 169 printf("%s\n", print_rr(&rr, buf, sizeof buf)); in dump_packet() 195 print_rr(struct rr *rr, char *buf, size_t max) in print_rr() argument 205 print_dname(rr->rr_dname, tmp, sizeof tmp), in print_rr() 206 rr->rr_ttl, in print_rr() 207 classtostr(rr->rr_class), in print_rr() 208 typetostr(rr->rr_type)); in print_rr() 220 switch(rr->rr_type) { in print_rr() [all …]
|
| H A D | res_query.c | 41 static char *print_rr(struct rr *, char *, size_t); 170 struct rr rr; in dump_packet() local 203 if (unpack_rr(&p, &rr) == -1) in dump_packet() 205 printf("%s\n", print_rr(&rr, buf, sizeof buf)); in dump_packet() 231 print_rr(struct rr *rr, char *buf, size_t max) in print_rr() argument 241 print_dname(rr->rr_dname, tmp, sizeof tmp), in print_rr() 242 rr->rr_ttl, in print_rr() 243 classtostr(rr->rr_class), in print_rr() 244 typetostr(rr->rr_type)); in print_rr() 256 switch(rr->rr_type) { in print_rr() [all …]
|
| H A D | common.c | 574 unpack_rr(struct packed *p, struct rr *rr) in unpack_rr() argument 579 unpack_dname(p, rr->rr_dname, sizeof(rr->rr_dname)); in unpack_rr() 580 unpack_u16(p, &rr->rr_type); in unpack_rr() 581 unpack_u16(p, &rr->rr_class); in unpack_rr() 582 unpack_u32(p, &rr->rr_ttl); in unpack_rr() 595 switch(rr->rr_type) { in unpack_rr() 598 unpack_dname(p, rr->rr.cname.cname, sizeof(rr->rr.cname.cname)); in unpack_rr() 602 unpack_u16(p, &rr->rr.mx.preference); in unpack_rr() 603 unpack_dname(p, rr->rr.mx.exchange, sizeof(rr->rr.mx.exchange)); in unpack_rr() 607 unpack_dname(p, rr->rr.ns.nsname, sizeof(rr->rr.ns.nsname)); in unpack_rr() [all …]
|
| /openbsd-src/lib/libcrypto/cms/ |
| H A D | cms_ess.c | 103 CMS_ReceiptRequest *rr = NULL; in CMS_get1_ReceiptRequest() 112 rr = ASN1_item_unpack(str, &CMS_ReceiptRequest_it); in CMS_get1_ReceiptRequest() 113 if (!rr) in CMS_get1_ReceiptRequest() 116 *prr = rr; in CMS_get1_ReceiptRequest() 118 CMS_ReceiptRequest_free(rr); in CMS_get1_ReceiptRequest() 128 CMS_ReceiptRequest *rr = NULL; in CMS_ReceiptRequest_create0() 130 rr = CMS_ReceiptRequest_new(); in CMS_ReceiptRequest_create0() 131 if (rr == NULL) in CMS_ReceiptRequest_create0() 134 ASN1_STRING_set0(rr->signedContentIdentifier, id, idlen); in CMS_ReceiptRequest_create0() 136 if (!ASN1_STRING_set(rr in CMS_ReceiptRequest_create0() 102 CMS_ReceiptRequest *rr = NULL; CMS_get1_ReceiptRequest() local 127 CMS_ReceiptRequest *rr = NULL; CMS_ReceiptRequest_create0() local 162 CMS_add1_ReceiptRequest(CMS_SignerInfo * si,CMS_ReceiptRequest * rr) CMS_add1_ReceiptRequest() argument 188 CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest * rr,ASN1_STRING ** pcid,int * pallorfirst,STACK_OF (GENERAL_NAMES)** plist,STACK_OF (GENERAL_NAMES)** prto) CMS_ReceiptRequest_get0_values() argument 254 CMS_ReceiptRequest *rr = NULL; cms_Receipt_verify() local 380 CMS_ReceiptRequest *rr = NULL; cms_encode_Receipt() local [all...] |
| /openbsd-src/lib/libc/asr/ |
| H A D | asr_debug.c | 62 print_rr(const struct asr_dns_rr *rr, char *buf, size_t max) in print_rr() argument 72 print_dname(rr->rr_dname, tmp, sizeof tmp), in print_rr() 73 rr->rr_ttl, in print_rr() 74 __p_class(rr->rr_class), in print_rr() 75 __p_type(rr->rr_type)); in print_rr() 87 switch (rr->rr_type) { in print_rr() 89 print_dname(rr->rr.cname.cname, buf, max); in print_rr() 93 (unsigned long)rr->rr.mx.preference, in print_rr() 94 print_dname(rr->rr.mx.exchange, tmp, sizeof tmp)); in print_rr() 97 print_dname(rr->rr.ns.nsname, buf, max); in print_rr() [all …]
|
| H A D | asr_utils.c | 280 _asr_unpack_rr(struct asr_unpack *p, struct asr_dns_rr *rr) in _asr_unpack_rr() argument 285 unpack_dname(p, rr->rr_dname, sizeof(rr->rr_dname)); in _asr_unpack_rr() 286 unpack_u16(p, &rr->rr_type); in _asr_unpack_rr() 287 unpack_u16(p, &rr->rr_class); in _asr_unpack_rr() 288 unpack_u32(p, &rr->rr_ttl); in _asr_unpack_rr() 301 switch (rr->rr_type) { in _asr_unpack_rr() 304 unpack_dname(p, rr->rr.cname.cname, sizeof(rr->rr.cname.cname)); in _asr_unpack_rr() 308 unpack_u16(p, &rr->rr.mx.preference); in _asr_unpack_rr() 309 unpack_dname(p, rr->rr.mx.exchange, sizeof(rr->rr.mx.exchange)); in _asr_unpack_rr() 313 unpack_dname(p, rr->rr.ns.nsname, sizeof(rr->rr.ns.nsname)); in _asr_unpack_rr() [all …]
|
| /openbsd-src/regress/lib/libskey/ |
| H A D | skeytest.c | 86 struct regRes *rr; in main() local 89 for(rr = rp->res; rr->algo; rr++) { in main() 90 if (skey_set_algorithm(rr->algo) == NULL) { in main() 93 i, rr->algo); in main() 97 if (strcmp(skey_get_algorithm(), rr->algo) != 0) { in main() 100 i, rr->algo); in main() 107 if(strcasecmp(prn, rr->zero)) { in main() 110 i, rr->algo, rr->zero, prn); in main() 116 if(strcasecmp(prn, rr->one)) { in main() 119 i, rr->algo, rr->one, prn); in main() [all …]
|
| /openbsd-src/usr.sbin/rpki-client/ |
| H A D | repo.c | 467 struct rsyncrepo *rr; in rsync_get() 473 SLIST_FOREACH(rr, &rsyncrepos, entry) in rsync_get() 474 if (strcmp(rr->repouri, repo) == 0) { in rsync_get() 476 return rr; in rsync_get() 479 if ((rr = calloc(1, sizeof(*rr))) == NULL) in rsync_get() 482 rr->id = ++repoid; in rsync_get() 483 SLIST_INSERT_HEAD(&rsyncrepos, rr, entry); in rsync_get() 485 rr->repouri = repo; in rsync_get() 486 rr in rsync_get() 466 struct rsyncrepo *rr; rsync_get() local 503 struct rsyncrepo *rr; rsync_find() local 514 struct rsyncrepo *rr; rsync_free() local 528 rrdp_filename(const struct rrdprepo * rr,const char * uri,int valid) rrdp_filename() argument 551 rrdp_state_filename(const struct rrdprepo * rr,int temp) rrdp_state_filename() argument 565 struct rrdprepo *rr; rrdp_find() local 576 struct rrdprepo *rr; rrdp_free() local 614 rrdp_uri_valid(struct rrdprepo * rr,const char * uri) rrdp_uri_valid() argument 654 rrdp_session_parse(const struct rrdprepo * rr) rrdp_session_parse() argument 730 struct rrdprepo *rr; rrdp_session_save() local 839 struct rrdprepo *rr; rrdp_get() local 883 struct rrdprepo *rr; rrdp_clear() local 903 struct rrdprepo *rr; rrdp_handle_file() local 996 struct rsyncrepo *rr; rsync_finish() local 1047 struct rrdprepo *rr; rrdp_finish() local 1591 struct rrdprepo *rr; repo_cleanup_rrdp() local 1750 const struct rrdprepo *rr; repo_cleanup_entry() local [all...] |
| /openbsd-src/usr.sbin/ripd/ |
| H A D | message.c | 64 add_entry(struct packet_head *r_list, struct rip_route *rr) in add_entry() argument 68 if (rr == NULL) in add_entry() 75 re->rr = rr; in add_entry() 76 rr->refcount++; in add_entry() 80 delete_entry(struct rip_route *rr) in delete_entry() argument 82 if (--rr->refcount == 0) in delete_entry() 83 free(rr); in delete_entry() 93 delete_entry(re->rr); in clear_list() 100 send_triggered_update(struct iface *iface, struct rip_route *rr) in send_triggered_update() argument 319 struct rip_route rr; recv_request() local [all...] |
| H A D | rde.c | 196 struct rip_route rr; in rde_dispatch_imsg() 224 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr)) in rde_dispatch_imsg() 227 memcpy(&rr, imsg.data, sizeof(rr)); in rde_dispatch_imsg() 229 if (rde_check_route(&rr) == -1) in rde_dispatch_imsg() 234 bzero(&rr, sizeof(rr)); in rde_dispatch_imsg() 239 rr.metric = INFINITY; in rde_dispatch_imsg() 241 0, &rr, sizeof(rr)); in rde_dispatch_imsg() 194 struct rip_route rr; rde_dispatch_imsg() local 467 struct rip_route rr; triggered_update() local [all...] |
| H A D | rde_rib.c | 218 struct rip_route rr; in rt_snap() local 220 bzero(&rr, sizeof(rr)); in rt_snap() 223 rr.address = r->prefix; in rt_snap() 224 rr.mask = r->netmask; in rt_snap() 225 rr.nexthop = r->nexthop; in rt_snap() 226 rr.metric = r->metric; in rt_snap() 227 rr.ifindex = r->ifindex; in rt_snap() 229 rde_imsg_compose_ripe(IMSG_RESPONSE_ADD, peerid, 0, &rr, in rt_snap() 230 sizeof(rr)); in rt_snap() 253 rt_complete(struct rip_route *rr) in rt_complete() argument [all …]
|
| H A D | ripe.c | 307 struct rip_route *rr; in ripe_dispatch_rde() 339 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr)) in ripe_dispatch_rde() 342 if ((rr = malloc(sizeof(*rr))) == NULL) in ripe_dispatch_rde() 345 memcpy(rr, imsg.data, sizeof(*rr)); in ripe_dispatch_rde() 352 free(rr); in ripe_dispatch_rde() 355 add_entry(&nbr->rq_list, rr); in ripe_dispatch_rde() 360 add_entry(&iface->rq_list, rr); in ripe_dispatch_rde() 380 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr)) in ripe_dispatch_rde() 303 struct rip_route *rr; ripe_dispatch_rde() local [all...] |
| /openbsd-src/sbin/isakmpd/ |
| H A D | dnssec.c | 67 struct rrsetinfo *rr; in dns_get_key() local 162 ret = getrrsetbyname(name, C_IN, T_KEY, 0, &rr); in dns_get_key() 171 rr->rri_rdclass, rr->rri_rdtype, rr->rri_ttl, rr->rri_nrdatas, in dns_get_key() 172 rr->rri_nsigs)); in dns_get_key() 175 if (!(rr->rri_flags & RRSET_VALIDATED)) { in dns_get_key() 178 freerrset(rr); in dns_get_key() 182 if (rr->rri_nrdatas == 0 || rr->rri_rdtype != T_KEY) { in dns_get_key() 184 freerrset(rr); in dns_get_key() 194 for (i = 0; i < rr->rri_nrdatas && key_rr.datalen == 0; i++) { in dns_get_key() 195 key_rr.flags = ntohs((u_int16_t) * rr->rri_rdatas[i].rdi_data); in dns_get_key() [all …]
|
| /openbsd-src/usr.sbin/dvmrpd/ |
| H A D | rde_srt.c | 165 rr_new_rt(struct route_report *rr, u_int32_t adj_metric, int connected) in rr_new_rt() argument 176 rn->prefix.s_addr = rr->net.s_addr; in rr_new_rt() 177 rn->prefixlen = mask2prefixlen(rr->mask.s_addr); in rr_new_rt() 178 rn->nexthop.s_addr = rr->nexthop.s_addr; in rr_new_rt() 180 rn->ifindex = rr->ifindex; in rr_new_rt() 264 struct route_report rr; in rt_snap() local 270 rr.net = r->prefix; in rt_snap() 271 rr.mask.s_addr = ntohl(prefixlen2mask(r->prefixlen)); in rt_snap() 272 rr.metric = r->cost; in rt_snap() 273 rr.ifindex = r->ifindex; in rt_snap() [all …]
|
| H A D | report.c | 77 struct route_report rr; in recv_report() local 133 rr.net.s_addr = netid; in recv_report() 134 rr.mask.s_addr = netmask; in recv_report() 135 rr.nexthop = nbr->id; in recv_report() 136 rr.metric = (metric & METRIC_MASK); in recv_report() 139 rr.ifindex = nbr->iface->ifindex; in recv_report() 143 0, &rr, sizeof(rr)); in recv_report() 184 rr_list_add(struct rr_head *rr_list, struct route_report *rr) in rr_list_add() argument 188 if (rr in rr_list_add() 200 rr_list_remove(struct route_report * rr) rr_list_remove() argument [all...] |
| H A D | dvmrpe.c | 317 struct route_report *rr; in dvmrpe_dispatch_rde() 351 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr)) in dvmrpe_dispatch_rde() 354 if ((rr = calloc(1, sizeof(*rr))) == NULL) in dvmrpe_dispatch_rde() 357 memcpy(rr, imsg.data, sizeof(*rr)); in dvmrpe_dispatch_rde() 366 rr); in dvmrpe_dispatch_rde() 373 rr_list_add(&nbr->rr_list, rr); in dvmrpe_dispatch_rde() 414 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr)) in dvmrpe_dispatch_rde() 417 if ((rr in dvmrpe_dispatch_rde() 313 struct route_report *rr; dvmrpe_dispatch_rde() local [all...] |
| /openbsd-src/usr.sbin/unbound/iterator/ |
| H A D | iter_priv.c | 223 struct rr_parse* rr, *prev = NULL; in priv_rrset_bad() local 232 for(rr = rrset->rr_first; rr; rr = rr->next) { in priv_rrset_bad() 233 if(sldns_read_uint16(rr->ttl_data+4) in priv_rrset_bad() 235 prev = rr; in priv_rrset_bad() 238 memmove(&sa.sin_addr, rr->ttl_data+4+2, in priv_rrset_bad() 242 …remove_rr("sanitize: removing public name with private address", pkt, rrset, prev, rr, &addr, len)) in priv_rrset_bad() 246 prev = rr; in priv_rrset_bad() 255 for(rr = rrset->rr_first; rr; rr = rr->next) { in priv_rrset_bad() 256 if(sldns_read_uint16(rr->ttl_data+4) in priv_rrset_bad() 258 prev = rr; in priv_rrset_bad() [all …]
|
| /openbsd-src/sbin/unwind/libunbound/iterator/ |
| H A D | iter_priv.c | 223 struct rr_parse* rr, *prev = NULL; in priv_rrset_bad() local 232 for(rr = rrset->rr_first; rr; rr = rr->next) { in priv_rrset_bad() 233 if(sldns_read_uint16(rr->ttl_data+4) in priv_rrset_bad() 235 prev = rr; in priv_rrset_bad() 238 memmove(&sa.sin_addr, rr->ttl_data+4+2, in priv_rrset_bad() 242 …remove_rr("sanitize: removing public name with private address", pkt, rrset, prev, rr, &addr, len)) in priv_rrset_bad() 246 prev = rr; in priv_rrset_bad() 255 for(rr = rrset->rr_first; rr; rr = rr->next) { in priv_rrset_bad() 256 if(sldns_read_uint16(rr->ttl_data+4) in priv_rrset_bad() 258 prev = rr; in priv_rrset_bad() [all …]
|
| /openbsd-src/usr.sbin/nsd/ |
| H A D | ixfr.c | 215 struct pktcompression* pcomp, const uint8_t* rr, size_t rrlen) in pktcompression_write_dname() argument 218 size_t dname_len = dname_length(rr, rrlen); in pktcompression_write_dname() 219 if(!rr || rrlen == 0 || dname_len == 0) in pktcompression_write_dname() 221 while(rrlen > 0 && rr[0] != 0) { in pktcompression_write_dname() 222 size_t lablen = (size_t)(rr[0]); in pktcompression_write_dname() 230 if((offset=pktcompression_find(pcomp, rr, dname_len))!=0) { in pktcompression_write_dname() 240 pktcompression_insert(pcomp, rr, dname_len, in pktcompression_write_dname() 243 buffer_write(packet, rr, lablen+1); in pktcompression_write_dname() 247 rr += lablen+1; in pktcompression_write_dname() 251 if(rrlen > 0 && rr[0] == 0) { in pktcompression_write_dname() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/f/ |
| H A D | target.h | 803 ({ REAL_VALUE_TYPE lr, li, rr, ri, resr, resi; \ 806 rr = ffetarget_cvt_r1_to_rv_ ((r).real); \ 808 REAL_ARITHMETIC (resr, PLUS_EXPR, lr, rr); \ 814 ({ REAL_VALUE_TYPE lr, li, rr, ri, resr, resi; \ 817 rr = ffetarget_cvt_r2_to_rv_ (&((r).real.v[0])); \ 819 REAL_ARITHMETIC (resr, PLUS_EXPR, lr, rr); \ 829 ({ REAL_VALUE_TYPE lr, rr, resr; \ 831 rr = ffetarget_cvt_r1_to_rv_ ((r)); \ 832 REAL_ARITHMETIC (resr, PLUS_EXPR, lr, rr); \ 836 ({ REAL_VALUE_TYPE lr, rr, resr; \ [all …]
|