/external/tcpdump/ |
D | print-pim.c | 119 static void pimv2_print(register const u_char *bp, register u_int len, u_int cksum); 122 pimv1_join_prune_print(register const u_char *bp, register u_int len) in pimv1_join_prune_print() argument 128 if (TTEST2(bp[0], 30) && bp[11] == 1 && in pimv1_join_prune_print() 129 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { in pimv1_join_prune_print() 132 (void)printf(" RPF %s ", ipaddr_string(bp)); in pimv1_join_prune_print() 133 hold = EXTRACT_16BITS(&bp[6]); in pimv1_join_prune_print() 139 ipaddr_string(&bp[26]), bp[25] & 0x3f, in pimv1_join_prune_print() 140 ipaddr_string(&bp[12])); in pimv1_join_prune_print() 141 if (EXTRACT_32BITS(&bp[16]) != 0xffffffff) in pimv1_join_prune_print() 142 (void)printf("/%s", ipaddr_string(&bp[16])); in pimv1_join_prune_print() [all …]
|
D | print-dvmrp.c | 76 dvmrp_print(register const u_char *bp, register u_int len) in dvmrp_print() argument 82 if (bp >= ep) in dvmrp_print() 85 TCHECK(bp[1]); in dvmrp_print() 86 type = bp[1]; in dvmrp_print() 89 bp += 8; in dvmrp_print() 97 if (print_probe(bp, ep, len) < 0) in dvmrp_print() 105 if (print_report(bp, ep, len) < 0) in dvmrp_print() 116 if (print_neighbors(bp, ep, len) < 0) in dvmrp_print() 130 bp -= 4; in dvmrp_print() 131 TCHECK2(bp[0], 4); in dvmrp_print() [all …]
|
D | print-bootp.c | 66 register const struct bootp *bp; in bootp_print() local 70 bp = (const struct bootp *)cp; in bootp_print() 71 TCHECK(bp->bp_op); in bootp_print() 74 tok2str(bootp_op_values, "unknown (0x%02x)", bp->bp_op)); in bootp_print() 76 if (bp->bp_htype == 1 && bp->bp_hlen == 6 && bp->bp_op == BOOTPREQUEST) { in bootp_print() 77 TCHECK2(bp->bp_chaddr[0], 6); in bootp_print() 78 printf(" from %s", etheraddr_string(bp->bp_chaddr)); in bootp_print() 86 TCHECK(bp->bp_secs); in bootp_print() 89 if (bp->bp_htype != 1) in bootp_print() 90 printf(", htype %d", bp->bp_htype); in bootp_print() [all …]
|
D | print-rx.c | 449 rx_print(register const u_char *bp, int length, int sport, int dport, in rx_print() argument 456 if (snapend - bp < (int)sizeof (struct rx_header)) { in rx_print() 461 rxh = (struct rx_header *) bp; in rx_print() 516 rx_cache_insert(bp, (const struct ip *) bp2, dport); in rx_print() 520 fs_print(bp, length); in rx_print() 523 cb_print(bp, length); in rx_print() 526 prot_print(bp, length); in rx_print() 529 vldb_print(bp, length); in rx_print() 532 kauth_print(bp, length); in rx_print() 535 vol_print(bp, length); in rx_print() [all …]
|
D | print-pgm.c | 158 pgm_print(register const u_char *bp, register u_int length, in pgm_print() argument 177 pgm = (struct pgm_header *)bp; in pgm_print() 274 bp = (u_char *) (spm + 1); in pgm_print() 275 TCHECK2(*bp, addr_size); in pgm_print() 276 nla = bp; in pgm_print() 277 bp += addr_size; in pgm_print() 296 bp = (u_char *) (poll + 1); in pgm_print() 321 bp = (u_char *) (polr + 1); in pgm_print() 322 TCHECK2(*bp, addr_size); in pgm_print() 323 nla = bp; in pgm_print() [all …]
|
D | print-ip6opts.c | 74 ip6_sopt_print(const u_char *bp, int len) in ip6_sopt_print() argument 80 if (bp[i] == IP6OPT_PAD1) in ip6_sopt_print() 84 optlen = bp[i + 1] + 2; in ip6_sopt_print() 91 switch (bp[i]) { in ip6_sopt_print() 107 printf(", ui: 0x%04x ", EXTRACT_16BITS(&bp[i + 2])); in ip6_sopt_print() 114 printf(", alt-CoA: %s", ip6addr_string(&bp[i+2])); in ip6_sopt_print() 121 printf(", auth spi: 0x%08x", EXTRACT_32BITS(&bp[i + 2])); in ip6_sopt_print() 125 printf(", sopt_type %d: trunc)", bp[i]); in ip6_sopt_print() 128 printf(", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1]); in ip6_sopt_print() 139 ip6_opt_print(const u_char *bp, int len) in ip6_opt_print() argument [all …]
|
D | print-gre.c | 92 gre_print(const u_char *bp, u_int length) in gre_print() argument 100 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; in gre_print() 105 gre_print_0(bp, len); in gre_print() 108 gre_print_1(bp, len); in gre_print() 119 gre_print_0(const u_char *bp, u_int length) in gre_print_0() argument 124 flags = EXTRACT_16BITS(bp); in gre_print_0() 130 bp += 2; in gre_print_0() 134 prot = EXTRACT_16BITS(bp); in gre_print_0() 136 bp += 2; in gre_print_0() 142 printf(", sum 0x%x", EXTRACT_16BITS(bp)); in gre_print_0() [all …]
|
D | print-igmp.c | 110 print_mtrace(register const u_char *bp, register u_int len) in print_mtrace() argument 112 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mtrace() 132 print_mresp(register const u_char *bp, register u_int len) in print_mresp() argument 134 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mresp() 154 print_igmpv3_report(register const u_char *bp, register u_int len) in print_igmpv3_report() argument 164 TCHECK2(bp[6], 2); in print_igmpv3_report() 165 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report() 175 TCHECK2(bp[group+4], 4); in print_igmpv3_report() 176 (void)printf(" [gaddr %s", ipaddr_string(&bp[group+4])); in print_igmpv3_report() 178 bp[group])); in print_igmpv3_report() [all …]
|
D | print-ntp.c | 87 register const struct ntpdata *bp; in ntp_print() local 90 bp = (struct ntpdata *)cp; in ntp_print() 92 TCHECK(bp->status); in ntp_print() 94 version = (int)(bp->status & VERSIONMASK) >> 3; in ntp_print() 97 mode = bp->status & MODEMASK; in ntp_print() 109 leapind = bp->status & LEAPMASK; in ntp_print() 114 TCHECK(bp->stratum); in ntp_print() 116 bp->stratum, in ntp_print() 117 …tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserv… in ntp_print() 119 TCHECK(bp->ppoll); in ntp_print() [all …]
|
D | print-geonet.c | 59 print_btp_body(const u_char *bp, u_int length) in print_btp_body() argument 70 version = bp[0]; in print_btp_body() 71 msg_type = bp[1]; in print_btp_body() 78 print_btp(const u_char *bp) in print_btp() argument 80 u_int16_t dest = EXTRACT_16BITS(bp+0); in print_btp() 81 u_int16_t src = EXTRACT_16BITS(bp+2); in print_btp() 86 print_long_pos_vector(const u_char *bp) in print_long_pos_vector() argument 94 printf("%02x", bp[i]); in print_long_pos_vector() 98 lat = EXTRACT_32BITS(bp+12); in print_long_pos_vector() 100 lon = EXTRACT_32BITS(bp+16); in print_long_pos_vector() [all …]
|
D | print-vrrp.c | 88 vrrp_print(register const u_char *bp, register u_int len, int ttl) in vrrp_print() argument 93 TCHECK(bp[0]); in vrrp_print() 94 version = (bp[0] & 0xf0) >> 4; in vrrp_print() 95 type = bp[0] & 0x0f; in vrrp_print() 102 TCHECK(bp[2]); in vrrp_print() 103 printf(", vrid %u, prio %u", bp[1], bp[2]); in vrrp_print() 104 TCHECK(bp[5]); in vrrp_print() 105 auth_type = bp[4]; in vrrp_print() 107 printf(", intvl %us, length %u", bp[5],len); in vrrp_print() 109 int naddrs = bp[3]; in vrrp_print() [all …]
|
D | print-mobility.c | 92 mobility_opt_print(const u_char *bp, int len) in mobility_opt_print() argument 98 if (bp[i] == IP6MOPT_PAD1) in mobility_opt_print() 102 optlen = bp[i + 1] + 2; in mobility_opt_print() 109 switch (bp[i]) { in mobility_opt_print() 127 EXTRACT_16BITS(&bp[i+2]) << 2); in mobility_opt_print() 134 printf("(alt-CoA: %s)", ip6addr_string(&bp[i+2])); in mobility_opt_print() 142 EXTRACT_16BITS(&bp[i+2]), in mobility_opt_print() 143 EXTRACT_16BITS(&bp[i+4])); in mobility_opt_print() 154 printf("(sopt_type %d: trunc)", bp[i]); in mobility_opt_print() 157 printf("(type-0x%02x: len=%d)", bp[i], bp[i + 1]); in mobility_opt_print() [all …]
|
D | print-carp.c | 51 carp_print(register const u_char *bp, register u_int len, int ttl) in carp_print() argument 56 TCHECK(bp[0]); in carp_print() 57 version = (bp[0] & 0xf0) >> 4; in carp_print() 58 type = bp[0] & 0x0f; in carp_print() 68 TCHECK(bp[2]); in carp_print() 69 TCHECK(bp[5]); in carp_print() 71 bp[1], bp[5], bp[2], bp[3]); in carp_print() 74 vec[0].ptr = (const u_int8_t *)bp; in carp_print() 76 if (TTEST2(bp[0], len) && in_cksum(vec, 1)) in carp_print() 78 EXTRACT_16BITS(&bp[6])); in carp_print() [all …]
|
/external/ltrace/ |
D | breakpoints.c | 63 breakpoint_on_hit(struct breakpoint *bp, struct process *proc) in breakpoint_on_hit() argument 65 assert(bp != NULL); in breakpoint_on_hit() 66 if (bp->cbs != NULL && bp->cbs->on_hit != NULL) in breakpoint_on_hit() 67 (bp->cbs->on_hit)(bp, proc); in breakpoint_on_hit() 71 breakpoint_on_continue(struct breakpoint *bp, struct process *proc) in breakpoint_on_continue() argument 73 assert(bp != NULL); in breakpoint_on_continue() 74 if (bp->cbs != NULL && bp->cbs->on_continue != NULL) in breakpoint_on_continue() 75 (bp->cbs->on_continue)(bp, proc); in breakpoint_on_continue() 77 continue_after_breakpoint(proc, bp); in breakpoint_on_continue() 81 breakpoint_on_retract(struct breakpoint *bp, struct process *proc) in breakpoint_on_retract() argument [all …]
|
D | breakpoint.h | 47 void (*on_hit)(struct breakpoint *bp, struct process *proc); 48 void (*on_continue)(struct breakpoint *bp, struct process *proc); 49 void (*on_install)(struct breakpoint *bp, struct process *proc); 50 void (*on_retract)(struct breakpoint *bp, struct process *proc); 59 struct breakpoint *bp, struct process *proc); 73 void breakpoint_on_hit(struct breakpoint *bp, struct process *proc); 77 void breakpoint_on_continue(struct breakpoint *bp, struct process *proc); 86 void breakpoint_on_retract(struct breakpoint *bp, struct process *proc); 92 void breakpoint_on_install(struct breakpoint *bp, struct process *proc); 97 struct breakpoint *bp, struct process *proc); [all …]
|
/external/openssh/openbsd-compat/ |
D | strptime.c | 70 const unsigned char *bp; in _strptime() local 80 bp = (unsigned char *)buf; in _strptime() 87 while (isspace(*bp)) in _strptime() 88 bp++; in _strptime() 101 if (c != *bp++) in _strptime() 126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) in _strptime() 132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) in _strptime() 138 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) in _strptime() 144 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0))) in _strptime() 150 if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0))) in _strptime() [all …]
|
/external/v8/test/mjsunit/ |
D | debug-conditional-breakpoints.js | 53 bp = Debug.setBreakPoint(f, 0, 0, '{{{'); 56 assertEquals(0, Debug.findBreakPoint(bp, false).hit_count()); 57 Debug.clearBreakPoint(bp); 61 bp = Debug.setBreakPoint(f, 0, 0, 'false'); 64 assertEquals(0, Debug.findBreakPoint(bp, false).hit_count()); 65 Debug.clearBreakPoint(bp); 69 bp = Debug.setBreakPoint(f, 0, 0, 'true'); 72 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count()); 73 Debug.clearBreakPoint(bp); 77 bp = Debug.setBreakPoint(f, 0, 0, '"a" == "a"'); [all …]
|
/external/boringssl/src/crypto/x509/ |
D | t_x509.c | 92 int X509_print(BIO *bp, X509 *x) in X509_print() argument 94 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print() 97 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag) in X509_print_ex() argument 119 if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err; in X509_print_ex() 120 if (BIO_write(bp," Data:\n",10) <= 0) goto err; in X509_print_ex() 125 if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err; in X509_print_ex() 130 if (BIO_write(bp," Serial Number:",22) <= 0) goto err; in X509_print_ex() 143 if (BIO_printf(bp," %s%lu (%s0x%lx)\n",neg,l,neg,l) <= 0) in X509_print_ex() 149 if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err; in X509_print_ex() 153 if (BIO_printf(bp,"%02x%c",bs->data[i], in X509_print_ex() [all …]
|
D | x_all.c | 159 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() argument 161 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio() 164 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio() argument 166 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); in i2d_X509_bio() 181 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) in d2i_X509_CRL_bio() argument 183 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in d2i_X509_CRL_bio() 186 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) in i2d_X509_CRL_bio() argument 188 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in i2d_X509_CRL_bio() 205 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) 207 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | asn1_par.c | 64 static int asn1_print_info(BIO *bp, int tag, int xclass,int constructed, 66 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, 68 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, in asn1_print_info() argument 79 if (BIO_write(bp,p,6) < 6) goto err; in asn1_print_info() 80 BIO_indent(bp,indent,128); in asn1_print_info() 94 if (BIO_printf(bp,fmt,p) <= 0) in asn1_print_info() 101 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent) in ASN1_parse() argument 103 return(asn1_parse2(bp,&pp,len,0,0,indent,0)); in ASN1_parse() 106 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, int dump) in ASN1_parse_dump() argument 108 return(asn1_parse2(bp,&pp,len,0,0,indent,dump)); in ASN1_parse_dump() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | blkmap64_rb.c | 160 static void rb_free_extent(struct ext2fs_rb_private *bp, in rb_free_extent() argument 163 if (bp->wcursor == ext) in rb_free_extent() 164 bp->wcursor = NULL; in rb_free_extent() 165 if (bp->rcursor == ext) in rb_free_extent() 166 bp->rcursor = NULL; in rb_free_extent() 167 if (bp->rcursor_next == ext) in rb_free_extent() 168 bp->rcursor_next = NULL; in rb_free_extent() 174 struct ext2fs_rb_private *bp; in rb_alloc_private_data() local 177 retval = ext2fs_get_mem(sizeof (struct ext2fs_rb_private), &bp); in rb_alloc_private_data() 181 bp->root = RB_ROOT; in rb_alloc_private_data() [all …]
|
D | blkmap64_ba.c | 44 ext2fs_ba_private bp; in ba_alloc_private_data() local 54 retval = ext2fs_get_mem(sizeof (ext2fs_ba_private), &bp); in ba_alloc_private_data() 60 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data() 62 ext2fs_free_mem(&bp); in ba_alloc_private_data() 63 bp = 0; in ba_alloc_private_data() 66 bitmap->private = (void *) bp; in ba_alloc_private_data() 73 ext2fs_ba_private bp; in ba_new_bmap() local 81 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap() 83 memset(bp->bitarray, 0, size); in ba_new_bmap() 90 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap() local [all …]
|
/external/mesa3d/src/gallium/state_trackers/egl/x11/ |
D | glxinit.c | 274 const INT32 * bp, Bool tagged_only, in __glXInitializeVisualConfigFromTags() argument 281 config->visualID = *bp++; in __glXInitializeVisualConfigFromTags() 283 config->visualType = _gl_convert_from_x_visual_type(*bp++); in __glXInitializeVisualConfigFromTags() 285 config->rgbMode = *bp++; in __glXInitializeVisualConfigFromTags() 287 config->redBits = *bp++; in __glXInitializeVisualConfigFromTags() 288 config->greenBits = *bp++; in __glXInitializeVisualConfigFromTags() 289 config->blueBits = *bp++; in __glXInitializeVisualConfigFromTags() 290 config->alphaBits = *bp++; in __glXInitializeVisualConfigFromTags() 291 config->accumRedBits = *bp++; in __glXInitializeVisualConfigFromTags() 292 config->accumGreenBits = *bp++; in __glXInitializeVisualConfigFromTags() [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_txt.c | 109 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) { in SSL_SESSION_print() argument 114 BIO_puts(bp, "SSL-Session:\n") <= 0) { in SSL_SESSION_print() 134 if (BIO_printf(bp, " Protocol : %s\n", s) <= 0) { in SSL_SESSION_print() 138 if (BIO_printf(bp, " Cipher : %s\n", in SSL_SESSION_print() 143 if (BIO_puts(bp, " Session-ID: ") <= 0) { in SSL_SESSION_print() 148 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0) { in SSL_SESSION_print() 153 if (BIO_puts(bp, "\n Session-ID-ctx: ") <= 0) { in SSL_SESSION_print() 158 if (BIO_printf(bp, "%02X", x->sid_ctx[i]) <= 0) { in SSL_SESSION_print() 163 if (BIO_puts(bp, "\n Master-Key: ") <= 0) { in SSL_SESSION_print() 168 if (BIO_printf(bp, "%02X", x->master_key[i]) <= 0) { in SSL_SESSION_print() [all …]
|
/external/clang/test/Sema/ |
D | block-misc.c | 163 void (^bp)(int); in test17() local 166 void *vp = bp; in test17() 168 f(1 ? bp : vp); in test17() 169 f(1 ? vp : bp); in test17() 170 f(1 ? bp : bp1); in test17() 171 (void)(bp > rp); // expected-error {{invalid operands}} in test17() 172 (void)(bp > 0); // expected-error {{invalid operands}} in test17() 173 (void)(bp > bp); // expected-error {{invalid operands}} in test17() 174 (void)(bp > vp); // expected-error {{invalid operands}} in test17() 175 …f(1 ? bp : rp); // expected-error {{incompatible operand types ('void (^)(int)' and 'void (*)(int)… in test17() [all …]
|