Home
last modified time | relevance | path

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

12345678910>>...19

/external/tcpdump/
Dprint-pim.c137 static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, u_int …
141 register const u_char *bp, register u_int len) in pimv1_join_prune_print() argument
147 if (ND_TTEST2(bp[0], 30) && bp[11] == 1 && in pimv1_join_prune_print()
148 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { in pimv1_join_prune_print()
151 ND_PRINT((ndo, " RPF %s ", ipaddr_string(ndo, bp))); in pimv1_join_prune_print()
152 hold = EXTRACT_16BITS(&bp[6]); in pimv1_join_prune_print()
158 ipaddr_string(ndo, &bp[26]), bp[25] & 0x3f, in pimv1_join_prune_print()
159 ipaddr_string(ndo, &bp[12]))); in pimv1_join_prune_print()
160 if (EXTRACT_32BITS(&bp[16]) != 0xffffffff) in pimv1_join_prune_print()
161 ND_PRINT((ndo, "/%s", ipaddr_string(ndo, &bp[16]))); in pimv1_join_prune_print()
[all …]
Dprint-dvmrp.c69 register const u_char *bp, register u_int len) in dvmrp_print() argument
75 if (bp >= ep) in dvmrp_print()
78 ND_TCHECK(bp[1]); in dvmrp_print()
79 type = bp[1]; in dvmrp_print()
82 bp += 8; in dvmrp_print()
90 if (print_probe(ndo, bp, ep, len) < 0) in dvmrp_print()
98 if (print_report(ndo, bp, ep, len) < 0) in dvmrp_print()
109 if (print_neighbors(ndo, bp, ep, len) < 0) in dvmrp_print()
123 bp -= 4; in dvmrp_print()
124 ND_TCHECK2(bp[0], 4); in dvmrp_print()
[all …]
Dprint-rx.c524 register const u_char *bp, int length, int sport, int dport, in rx_print() argument
531 if (ndo->ndo_snapend - bp < (int)sizeof (struct rx_header)) { in rx_print()
536 rxh = (struct rx_header *) bp; in rx_print()
591 rx_cache_insert(ndo, bp, (const struct ip *) bp2, dport); in rx_print()
595 fs_print(ndo, bp, length); in rx_print()
598 cb_print(ndo, bp, length); in rx_print()
601 prot_print(ndo, bp, length); in rx_print()
604 vldb_print(ndo, bp, length); in rx_print()
607 kauth_print(ndo, bp, length); in rx_print()
610 vol_print(ndo, bp, length); in rx_print()
[all …]
Dprint-pgm.c147 register const u_char *bp, register u_int length, in pgm_print() argument
166 pgm = (struct pgm_header *)bp; in pgm_print()
263 bp = (u_char *) (spm + 1); in pgm_print()
264 ND_TCHECK2(*bp, addr_size); in pgm_print()
265 nla = bp; in pgm_print()
266 bp += addr_size; in pgm_print()
285 bp = (u_char *) (poll + 1); in pgm_print()
310 bp = (u_char *) (polr + 1); in pgm_print()
311 ND_TCHECK2(*bp, addr_size); in pgm_print()
312 nla = bp; in pgm_print()
[all …]
Dprint-bootp.c285 register const struct bootp *bp; in bootp_print() local
289 bp = (const struct bootp *)cp; in bootp_print()
290 ND_TCHECK(bp->bp_op); in bootp_print()
293 tok2str(bootp_op_values, "unknown (0x%02x)", bp->bp_op))); in bootp_print()
295 if (bp->bp_htype == 1 && bp->bp_hlen == 6 && bp->bp_op == BOOTPREQUEST) { in bootp_print()
296 ND_TCHECK2(bp->bp_chaddr[0], 6); in bootp_print()
297 ND_PRINT((ndo, " from %s", etheraddr_string(ndo, bp->bp_chaddr))); in bootp_print()
305 ND_TCHECK(bp->bp_secs); in bootp_print()
308 if (bp->bp_htype != 1) in bootp_print()
309 ND_PRINT((ndo, ", htype %d", bp->bp_htype)); in bootp_print()
[all …]
Dprint-gre.c86 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print() argument
94 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; in gre_print()
99 gre_print_0(ndo, bp, len); in gre_print()
102 gre_print_1(ndo, bp, len); in gre_print()
111 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument
116 flags = EXTRACT_16BITS(bp); in gre_print_0()
122 bp += 2; in gre_print_0()
126 prot = EXTRACT_16BITS(bp); in gre_print_0()
128 bp += 2; in gre_print_0()
134 ND_PRINT((ndo, ", sum 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
[all …]
Dprint-igmp.c106 register const u_char *bp, register u_int len) in print_mtrace() argument
108 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mtrace()
128 register const u_char *bp, register u_int len) in print_mresp() argument
130 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mresp()
150 register const u_char *bp, register u_int len) in print_igmpv3_report() argument
160 ND_TCHECK2(bp[6], 2); in print_igmpv3_report()
161 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report()
171 ND_TCHECK2(bp[group+4], 4); in print_igmpv3_report()
172 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); in print_igmpv3_report()
174 bp[group]))); in print_igmpv3_report()
[all …]
Dprint-ntp.c207 register const struct ntpdata *bp; in ntp_print() local
210 bp = (struct ntpdata *)cp; in ntp_print()
212 ND_TCHECK(bp->status); in ntp_print()
214 version = (int)(bp->status & VERSIONMASK) >> 3; in ntp_print()
217 mode = bp->status & MODEMASK; in ntp_print()
229 leapind = bp->status & LEAPMASK; in ntp_print()
234 ND_TCHECK(bp->stratum); in ntp_print()
236 bp->stratum, in ntp_print()
237 …tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserv… in ntp_print()
239 ND_TCHECK(bp->ppoll); in ntp_print()
[all …]
Dprint-geonet.c59 const u_char *bp) in print_btp_body() argument
66 version = bp[0]; in print_btp_body()
67 msg_type = bp[1]; in print_btp_body()
75 const u_char *bp) in print_btp() argument
77 uint16_t dest = EXTRACT_16BITS(bp+0); in print_btp()
78 uint16_t src = EXTRACT_16BITS(bp+2); in print_btp()
84 const u_char *bp) in print_long_pos_vector() argument
88 ND_PRINT((ndo, "GN_ADDR:%s ", linkaddr_string (ndo, bp, 0, GEONET_ADDR_LEN))); in print_long_pos_vector()
90 if (!ND_TTEST2(*(bp+12), 8)) in print_long_pos_vector()
92 lat = EXTRACT_32BITS(bp+12); in print_long_pos_vector()
[all …]
Dprint-vrrp.c106 register const u_char *bp, register u_int len, in vrrp_print() argument
112 ND_TCHECK(bp[0]); in vrrp_print()
113 version = (bp[0] & 0xf0) >> 4; in vrrp_print()
114 type = bp[0] & 0x0f; in vrrp_print()
121 ND_TCHECK(bp[2]); in vrrp_print()
122 ND_PRINT((ndo, ", vrid %u, prio %u", bp[1], bp[2])); in vrrp_print()
123 ND_TCHECK(bp[5]); in vrrp_print()
126 auth_type = bp[4]; in vrrp_print()
128 ND_PRINT((ndo, ", intvl %us, length %u", bp[5], len)); in vrrp_print()
130 uint16_t intvl = (bp[4] & 0x0f) << 8 | bp[5]; in vrrp_print()
[all …]
Dprint-ip6opts.c45 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len) in ip6_sopt_print() argument
51 if (bp[i] == IP6OPT_PAD1) in ip6_sopt_print()
55 optlen = bp[i + 1] + 2; in ip6_sopt_print()
62 switch (bp[i]) { in ip6_sopt_print()
75 ND_PRINT((ndo, ", sopt_type %d: trunc)", bp[i])); in ip6_sopt_print()
78 ND_PRINT((ndo, ", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1])); in ip6_sopt_print()
89 ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len) in ip6_opt_print() argument
97 if (bp[i] == IP6OPT_PAD1) in ip6_opt_print()
101 optlen = bp[i + 1] + 2; in ip6_opt_print()
108 switch (bp[i]) { in ip6_opt_print()
[all …]
Dprint-mobility.c105 const u_char *bp, const unsigned len) in mobility_opt_print() argument
110 ND_TCHECK(bp[i]); in mobility_opt_print()
111 if (bp[i] == IP6MOPT_PAD1) in mobility_opt_print()
115 ND_TCHECK(bp[i + 1]); in mobility_opt_print()
116 optlen = bp[i + 1] + 2; in mobility_opt_print()
123 ND_TCHECK(bp[i + optlen]); in mobility_opt_print()
125 switch (bp[i]) { in mobility_opt_print()
143 EXTRACT_16BITS(&bp[i+2]) << 2)); in mobility_opt_print()
150 ND_PRINT((ndo, "(alt-CoA: %s)", ip6addr_string(ndo, &bp[i+2]))); in mobility_opt_print()
158 EXTRACT_16BITS(&bp[i+2]), in mobility_opt_print()
[all …]
Dprint-geneve.c89 geneve_opts_print(netdissect_options *ndo, const u_char *bp, u_int len) in geneve_opts_print() argument
101 opt_class = EXTRACT_16BITS(bp); in geneve_opts_print()
102 opt_type = *(bp + 2); in geneve_opts_print()
103 opt_len = 4 + ((*(bp + 3) & OPT_LEN_MASK) * 4); in geneve_opts_print()
115 uint32_t *print_data = (uint32_t *)(bp + 4); in geneve_opts_print()
126 bp += opt_len; in geneve_opts_print()
132 geneve_print(netdissect_options *ndo, const u_char *bp, u_int len) in geneve_print() argument
144 ND_TCHECK2(*bp, 8); in geneve_print()
146 ver_opt = *bp; in geneve_print()
147 bp += 1; in geneve_print()
[all …]
Dprint-carp.c48 carp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, int ttl) in carp_print() argument
53 ND_TCHECK(bp[0]); in carp_print()
54 version = (bp[0] & 0xf0) >> 4; in carp_print()
55 type = bp[0] & 0x0f; in carp_print()
65 ND_TCHECK(bp[2]); in carp_print()
66 ND_TCHECK(bp[5]); in carp_print()
68 bp[1], bp[5], bp[2], bp[3])); in carp_print()
71 vec[0].ptr = (const uint8_t *)bp; in carp_print()
73 if (ND_TTEST2(bp[0], len) && in_cksum(vec, 1)) in carp_print()
75 EXTRACT_16BITS(&bp[6]))); in carp_print()
[all …]
/external/ltrace/
Dbreakpoints.c63 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 …]
Dbreakpoint.h47 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/boringssl/src/crypto/x509/
Dt_x509.c92 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 …]
Dx_all.c146 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() argument
148 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio()
151 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio() argument
153 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); in i2d_X509_bio()
168 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) in d2i_X509_CRL_bio() argument
170 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in d2i_X509_CRL_bio()
173 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) in i2d_X509_CRL_bio() argument
175 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in i2d_X509_CRL_bio()
190 X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) in d2i_X509_REQ_bio() argument
192 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_REQ), bp, req); in d2i_X509_REQ_bio()
[all …]
/external/v8/test/mjsunit/
Ddebug-conditional-breakpoints.js53 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/asn1/
Dasn1_par.c66 static int asn1_print_info(BIO *bp, int tag, int xclass,int constructed,
68 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length,
70 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()
96 if (BIO_printf(bp,fmt,p) <= 0) in asn1_print_info()
103 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent) in ASN1_parse() argument
105 return(asn1_parse2(bp,&pp,len,0,0,indent,0)); in ASN1_parse()
108 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, int dump) in ASN1_parse_dump() argument
110 return(asn1_parse2(bp,&pp,len,0,0,indent,dump)); in ASN1_parse_dump()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dblkmap64_rb.c160 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 …]
Dblkmap64_ba.c44 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/
Dglxinit.c274 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/clang/test/Sema/
Dblock-misc.c163 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 …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_android.c81 int ret = 0, i = 0, bp; in android_pno_start() local
84 bp = WEXT_PNOSETUP_HEADER_SIZE; in android_pno_start()
85 os_memcpy(buf, WEXT_PNOSETUP_HEADER, bp); in android_pno_start()
86 buf[bp++] = WEXT_PNO_TLV_PREFIX; in android_pno_start()
87 buf[bp++] = WEXT_PNO_TLV_VERSION; in android_pno_start()
88 buf[bp++] = WEXT_PNO_TLV_SUBVERSION; in android_pno_start()
89 buf[bp++] = WEXT_PNO_TLV_RESERVED; in android_pno_start()
94 if ((bp + WEXT_PNO_SSID_HEADER_SIZE + MAX_SSID_LEN + in android_pno_start()
100 buf[bp++] = WEXT_PNO_SSID_SECTION; in android_pno_start()
101 buf[bp++] = params->ssids[i].ssid_len; in android_pno_start()
[all …]

12345678910>>...19