Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 205) sorted by relevance

123456789

/external/tcpdump/
Dprint-pim.c121 static void pimv2_print(register const u_char *bp, register u_int len);
124 pimv1_join_prune_print(register const u_char *bp, register u_int len) in pimv1_join_prune_print() argument
130 if (TTEST2(bp[0], 30) && bp[11] == 1 && in pimv1_join_prune_print()
131 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { in pimv1_join_prune_print()
134 (void)printf(" RPF %s ", ipaddr_string(bp)); in pimv1_join_prune_print()
135 hold = EXTRACT_16BITS(&bp[6]); in pimv1_join_prune_print()
141 ipaddr_string(&bp[26]), bp[25] & 0x3f, in pimv1_join_prune_print()
142 ipaddr_string(&bp[12])); in pimv1_join_prune_print()
143 if (EXTRACT_32BITS(&bp[16]) != 0xffffffff) in pimv1_join_prune_print()
144 (void)printf("/%s", ipaddr_string(&bp[16])); in pimv1_join_prune_print()
[all …]
Dprint-dvmrp.c76 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 …]
Dprint-bootp.c66 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 …]
Dprint-rx.c434 rx_print(register const u_char *bp, int length, int sport, int dport, in rx_print() argument
441 if (snapend - bp < (int)sizeof (struct rx_header)) { in rx_print()
446 rxh = (struct rx_header *) bp; in rx_print()
501 rx_cache_insert(bp, (const struct ip *) bp2, dport); in rx_print()
505 fs_print(bp, length); in rx_print()
508 cb_print(bp, length); in rx_print()
511 prot_print(bp, length); in rx_print()
514 vldb_print(bp, length); in rx_print()
517 kauth_print(bp, length); in rx_print()
520 vol_print(bp, length); in rx_print()
[all …]
Dprint-pgm.c149 pgm_print(register const u_char *bp, register u_int length, in pgm_print() argument
168 pgm = (struct pgm_header *)bp; in pgm_print()
268 bp = (u_char *) (spm + 1); in pgm_print()
269 TCHECK2(*bp, addr_size); in pgm_print()
270 nla = bp; in pgm_print()
271 bp += addr_size; in pgm_print()
290 bp = (u_char *) (poll + 1); in pgm_print()
315 bp = (u_char *) (polr + 1); in pgm_print()
316 TCHECK2(*bp, addr_size); in pgm_print()
317 nla = bp; in pgm_print()
[all …]
Dprint-ip6opts.c74 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 …]
Dprint-gre.c92 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 …]
Dprint-igmp.c110 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 …]
Dprint-ntp.c81 register const struct ntpdata *bp; in ntp_print() local
84 bp = (struct ntpdata *)cp; in ntp_print()
86 TCHECK(bp->status); in ntp_print()
88 version = (int)(bp->status & VERSIONMASK) >> 3; in ntp_print()
91 mode = bp->status & MODEMASK; in ntp_print()
103 leapind = bp->status & LEAPMASK; in ntp_print()
108 TCHECK(bp->stratum); in ntp_print()
109 printf(", Stratum %u", bp->stratum); in ntp_print()
111 TCHECK(bp->ppoll); in ntp_print()
112 printf(", poll %us", bp->ppoll); in ntp_print()
[all …]
Dprint-vrrp.c88 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 …]
Dprint-mobility.c92 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 …]
/external/openssl/crypto/bn/
Dbntest.c94 int test_add(BIO *bp);
95 int test_sub(BIO *bp);
96 int test_lshift1(BIO *bp);
97 int test_lshift(BIO *bp,BN_CTX *ctx,BIGNUM *a_);
98 int test_rshift1(BIO *bp);
99 int test_rshift(BIO *bp,BN_CTX *ctx);
100 int test_div(BIO *bp,BN_CTX *ctx);
101 int test_div_word(BIO *bp);
102 int test_div_recp(BIO *bp,BN_CTX *ctx);
103 int test_mul(BIO *bp);
[all …]
/external/openssl/crypto/ocsp/
Docsp_prn.c69 static int ocsp_certid_print(BIO *bp, OCSP_CERTID* a, int indent) in ocsp_certid_print() argument
71 BIO_printf(bp, "%*sCertificate ID:\n", indent, ""); in ocsp_certid_print()
73 BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); in ocsp_certid_print()
74 i2a_ASN1_OBJECT(bp, a->hashAlgorithm->algorithm); in ocsp_certid_print()
75 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); in ocsp_certid_print()
76 i2a_ASN1_STRING(bp, a->issuerNameHash, V_ASN1_OCTET_STRING); in ocsp_certid_print()
77 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); in ocsp_certid_print()
78 i2a_ASN1_STRING(bp, a->issuerKeyHash, V_ASN1_OCTET_STRING); in ocsp_certid_print()
79 BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); in ocsp_certid_print()
80 i2a_ASN1_INTEGER(bp, a->serialNumber); in ocsp_certid_print()
[all …]
/external/openssl/crypto/asn1/
Dt_x509.c99 int X509_print(BIO *bp, X509 *x) in X509_print() argument
101 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print()
104 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag) in X509_print_ex() argument
127 if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err; in X509_print_ex()
128 if (BIO_write(bp," Data:\n",10) <= 0) goto err; in X509_print_ex()
133 if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err; in X509_print_ex()
138 if (BIO_write(bp," Serial Number:",22) <= 0) goto err; in X509_print_ex()
151 if (BIO_printf(bp," %s%lu (%s0x%lx)\n",neg,l,neg,l) <= 0) in X509_print_ex()
157 if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err; in X509_print_ex()
161 if (BIO_printf(bp,"%02x%c",bs->data[i], in X509_print_ex()
[all …]
Dt_req.c91 int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, unsigned long cflag) in X509_REQ_print_ex() argument
115 if (BIO_write(bp,"Certificate Request:\n",21) <= 0) goto err; in X509_REQ_print_ex()
116 if (BIO_write(bp," Data:\n",10) <= 0) goto err; in X509_REQ_print_ex()
124 if(BIO_printf(bp,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l,neg, in X509_REQ_print_ex()
130 if (BIO_printf(bp," Subject:%c",mlch) <= 0) goto err; in X509_REQ_print_ex()
131 if (X509_NAME_print_ex(bp,ri->subject,nmindent, nmflags) < 0) goto err; in X509_REQ_print_ex()
132 if (BIO_write(bp,"\n",1) <= 0) goto err; in X509_REQ_print_ex()
136 if (BIO_write(bp," Subject Public Key Info:\n",33) <= 0) in X509_REQ_print_ex()
138 if (BIO_printf(bp,"%12sPublic Key Algorithm: ","") <= 0) in X509_REQ_print_ex()
140 if (i2a_ASN1_OBJECT(bp, ri->pubkey->algor->algorithm) <= 0) in X509_REQ_print_ex()
[all …]
Dasn1_par.c65 static int asn1_print_info(BIO *bp, int tag, int xclass,int constructed,
67 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length,
69 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, in asn1_print_info() argument
81 if (BIO_write(bp,p,6) < 6) goto err; in asn1_print_info()
82 BIO_indent(bp,indent,128); in asn1_print_info()
98 if (BIO_printf(bp,fmt2,tag,p2) <= 0) goto err; in asn1_print_info()
102 if (BIO_printf(bp,fmt,p) <= 0) goto err; in asn1_print_info()
109 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent) in ASN1_parse() argument
111 return(asn1_parse2(bp,&pp,len,0,0,indent,0)); in ASN1_parse()
114 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, int dump) in ASN1_parse_dump() argument
[all …]
Dt_pkey.c107 int RSA_print(BIO *bp, const RSA *x, int off) in RSA_print() argument
151 if(!BIO_indent(bp,off,128)) in RSA_print()
153 if (BIO_printf(bp,"Private-Key: (%d bit)\n", mod_len) in RSA_print()
161 if (!print(bp,str,x->n,m,off)) goto err; in RSA_print()
163 if ((x->e != NULL) && !print(bp,s,x->e,m,off)) in RSA_print()
165 if ((x->d != NULL) && !print(bp,"privateExponent:",x->d,m,off)) in RSA_print()
167 if ((x->p != NULL) && !print(bp,"prime1:",x->p,m,off)) in RSA_print()
169 if ((x->q != NULL) && !print(bp,"prime2:",x->q,m,off)) in RSA_print()
171 if ((x->dmp1 != NULL) && !print(bp,"exponent1:",x->dmp1,m,off)) in RSA_print()
173 if ((x->dmq1 != NULL) && !print(bp,"exponent2:",x->dmq1,m,off)) in RSA_print()
[all …]
/external/openssl/ssl/
Dssl_txt.c81 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) in SSL_SESSION_print() argument
87 if (BIO_puts(bp,"SSL-Session:\n") <= 0) goto err; in SSL_SESSION_print()
96 if (BIO_printf(bp," Protocol : %s\n",s) <= 0) goto err; in SSL_SESSION_print()
102 if (BIO_printf(bp," Cipher : %06lX\n",x->cipher_id&0xffffff) <= 0) in SSL_SESSION_print()
107 if (BIO_printf(bp," Cipher : %04lX\n",x->cipher_id&0xffff) <= 0) in SSL_SESSION_print()
113 if (BIO_printf(bp," Cipher : %s\n",((x->cipher == NULL)?"unknown":x->cipher->name)) <= 0) in SSL_SESSION_print()
116 if (BIO_puts(bp," Session-ID: ") <= 0) goto err; in SSL_SESSION_print()
119 if (BIO_printf(bp,"%02X",x->session_id[i]) <= 0) goto err; in SSL_SESSION_print()
121 if (BIO_puts(bp,"\n Session-ID-ctx: ") <= 0) goto err; in SSL_SESSION_print()
124 if (BIO_printf(bp,"%02X",x->sid_ctx[i]) <= 0) in SSL_SESSION_print()
[all …]
/external/openssl/crypto/x509/
Dx_all.c135 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() argument
137 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio()
140 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio() argument
142 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); in i2d_X509_bio()
157 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) in d2i_X509_CRL_bio() argument
159 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in d2i_X509_CRL_bio()
162 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) in i2d_X509_CRL_bio() argument
164 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in i2d_X509_CRL_bio()
179 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) in d2i_PKCS7_bio() argument
181 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); in d2i_PKCS7_bio()
[all …]
/external/openssl/crypto/x509v3/
Dv3_ocsp.c83 static int i2r_ocsp_serviceloc(X509V3_EXT_METHOD *method, void *in, BIO *bp, int ind);
151 static int i2r_ocsp_crlid(X509V3_EXT_METHOD *method, void *in, BIO *bp, int ind) in i2r_ocsp_crlid() argument
156 if (!BIO_printf(bp, "%*scrlUrl: ", ind, "")) goto err; in i2r_ocsp_crlid()
157 if (!ASN1_STRING_print(bp, (ASN1_STRING*)a->crlUrl)) goto err; in i2r_ocsp_crlid()
158 if (!BIO_write(bp, "\n", 1)) goto err; in i2r_ocsp_crlid()
162 if (!BIO_printf(bp, "%*scrlNum: ", ind, "")) goto err; in i2r_ocsp_crlid()
163 if (!i2a_ASN1_INTEGER(bp, a->crlNum)) goto err; in i2r_ocsp_crlid()
164 if (!BIO_write(bp, "\n", 1)) goto err; in i2r_ocsp_crlid()
168 if (!BIO_printf(bp, "%*scrlTime: ", ind, "")) goto err; in i2r_ocsp_crlid()
169 if (!ASN1_GENERALIZEDTIME_print(bp, a->crlTime)) goto err; in i2r_ocsp_crlid()
[all …]
Dv3_ncons.c69 void *a, BIO *bp, int ind);
72 BIO *bp, int ind, char *name);
73 static int print_nc_ipadd(BIO *bp, ASN1_OCTET_STRING *ip);
159 void *a, BIO *bp, int ind) in i2r_NAME_CONSTRAINTS() argument
163 bp, ind, "Permitted"); in i2r_NAME_CONSTRAINTS()
165 bp, ind, "Excluded"); in i2r_NAME_CONSTRAINTS()
171 BIO *bp, int ind, char *name) in do_i2r_name_constraints() argument
176 BIO_printf(bp, "%*s%s:\n", ind, "", name); in do_i2r_name_constraints()
180 BIO_printf(bp, "%*s", ind + 2, ""); in do_i2r_name_constraints()
182 print_nc_ipadd(bp, tree->base->d.ip); in do_i2r_name_constraints()
[all …]
/external/openssl/crypto/pem/
Dpem.h273 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\
276 str, bp, \
282 int PEM_write_bio_##name(BIO *bp, type *x) \
285 str, bp, \
291 int PEM_write_bio_##name(BIO *bp, const type *x) \
294 str, bp, \
300 int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
304 str, bp, \
310 int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
314 str, bp, \
[all …]
Dpem_pk8.c69 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder,
73 static int do_pk8pkey_fp(FILE *bp, EVP_PKEY *x, int isder,
84 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, in PEM_write_bio_PKCS8PrivateKey_nid() argument
88 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
91 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PKCS8PrivateKey() argument
95 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
98 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_bio() argument
102 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
105 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, in i2d_PKCS8PrivateKey_nid_bio() argument
109 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
/external/openssl/include/openssl/
Dpem.h273 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\
276 str, bp, \
282 int PEM_write_bio_##name(BIO *bp, type *x) \
285 str, bp, \
291 int PEM_write_bio_##name(BIO *bp, const type *x) \
294 str, bp, \
300 int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
304 str, bp, \
310 int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
314 str, bp, \
[all …]
/external/jpeg/
Djmemdosa.asm44 push bp ; linkage
45 mov bp,sp
54 lds dx,dword ptr [bp+10] ; get filename pointer
58 lds bx,dword ptr [bp+6] ; get handle pointer
68 pop bp
79 push bp ; linkage
80 mov bp,sp
88 mov bx,word ptr [bp+6] ; file handle
100 pop bp
111 push bp ; linkage
[all …]

123456789