Home
last modified time | relevance | path

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

12345678910>>...45

/external/tcpdump/
Dprint-pim.c140 static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, const …
144 register const u_char *bp, register u_int len) in pimv1_join_prune_print() argument
150 if (ND_TTEST2(bp[0], 30) && bp[11] == 1 && in pimv1_join_prune_print()
151 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { in pimv1_join_prune_print()
154 ND_PRINT((ndo, " RPF %s ", ipaddr_string(ndo, bp))); in pimv1_join_prune_print()
155 hold = EXTRACT_16BITS(&bp[6]); in pimv1_join_prune_print()
161 ipaddr_string(ndo, &bp[26]), bp[25] & 0x3f, in pimv1_join_prune_print()
162 ipaddr_string(ndo, &bp[12]))); in pimv1_join_prune_print()
163 if (EXTRACT_32BITS(&bp[16]) != 0xffffffff) in pimv1_join_prune_print()
164 ND_PRINT((ndo, "/%s", ipaddr_string(ndo, &bp[16]))); in pimv1_join_prune_print()
[all …]
Dprint-dvmrp.c70 register const u_char *bp, register u_int len) in dvmrp_print() argument
76 if (bp >= ep) in dvmrp_print()
79 ND_TCHECK(bp[1]); in dvmrp_print()
80 type = bp[1]; in dvmrp_print()
83 bp += 8; in dvmrp_print()
91 if (print_probe(ndo, bp, ep, len) < 0) in dvmrp_print()
99 if (print_report(ndo, bp, ep, len) < 0) in dvmrp_print()
110 if (print_neighbors(ndo, bp, ep, len) < 0) in dvmrp_print()
124 bp -= 4; in dvmrp_print()
125 ND_TCHECK2(bp[0], 4); in dvmrp_print()
[all …]
Dprint-pgm.c147 register const u_char *bp, register u_int length, in pgm_print() argument
160 pgm = (const struct pgm_header *)bp; in pgm_print()
227 bp = (const u_char *) (spm + 1); in pgm_print()
231 ND_TCHECK2(*bp, sizeof(struct in_addr)); in pgm_print()
232 addrtostr(bp, nla_buf, sizeof(nla_buf)); in pgm_print()
233 bp += sizeof(struct in_addr); in pgm_print()
236 ND_TCHECK2(*bp, sizeof(struct in6_addr)); in pgm_print()
237 addrtostr6(bp, nla_buf, sizeof(nla_buf)); in pgm_print()
238 bp += sizeof(struct in6_addr); in pgm_print()
261 bp = (const u_char *) (poll_msg + 1); in pgm_print()
[all …]
Dprint-gre.c88 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print() argument
92 ND_TCHECK2(*bp, 2); in gre_print()
95 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; in gre_print()
100 gre_print_0(ndo, bp, len); in gre_print()
103 gre_print_1(ndo, bp, len); in gre_print()
117 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument
122 flags = EXTRACT_16BITS(bp); in gre_print_0()
128 bp += 2; in gre_print_0()
130 ND_TCHECK2(*bp, 2); in gre_print_0()
133 prot = EXTRACT_16BITS(bp); in gre_print_0()
[all …]
Dprint-bootp.c286 register const struct bootp *bp; in bootp_print() local
290 bp = (const struct bootp *)cp; in bootp_print()
291 ND_TCHECK(bp->bp_op); in bootp_print()
294 tok2str(bootp_op_values, "unknown (0x%02x)", bp->bp_op))); in bootp_print()
296 ND_TCHECK(bp->bp_hlen); in bootp_print()
297 if (bp->bp_htype == 1 && bp->bp_hlen == 6 && bp->bp_op == BOOTPREQUEST) { in bootp_print()
298 ND_TCHECK2(bp->bp_chaddr[0], 6); in bootp_print()
299 ND_PRINT((ndo, " from %s", etheraddr_string(ndo, bp->bp_chaddr))); in bootp_print()
307 ND_TCHECK(bp->bp_secs); in bootp_print()
310 if (bp->bp_htype != 1) in bootp_print()
[all …]
Dprint-rx.c526 register const u_char *bp, int length, int sport, int dport, in rx_print() argument
533 if (ndo->ndo_snapend - bp < (int)sizeof (struct rx_header)) { in rx_print()
538 rxh = (const struct rx_header *) bp; in rx_print()
593 rx_cache_insert(ndo, bp, (const struct ip *) bp2, dport); in rx_print()
597 fs_print(ndo, bp, length); in rx_print()
600 cb_print(ndo, bp, length); in rx_print()
603 prot_print(ndo, bp, length); in rx_print()
606 vldb_print(ndo, bp, length); in rx_print()
609 kauth_print(ndo, bp, length); in rx_print()
612 vol_print(ndo, bp, length); in rx_print()
[all …]
Dprint-resp.c213 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) in resp_print() argument
217 if(!bp || length <= 0) in resp_print()
231 ret_len = resp_parse(ndo, bp, length_cur); in resp_print()
233 bp += ret_len; in resp_print()
244 resp_parse(netdissect_options *ndo, register const u_char *bp, int length) in resp_parse() argument
250 ND_TCHECK(*bp); in resp_parse()
251 op = *bp; in resp_parse()
255 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break; in resp_parse()
256 case RESP_INTEGER: ret_len = resp_print_integer(ndo, bp, length); break; in resp_parse()
257 case RESP_ERROR: ret_len = resp_print_error(ndo, bp, length); break; in resp_parse()
[all …]
Dprint-nsh.c49 nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) in nsh_print() argument
69 ND_TCHECK2(*bp, NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN); in nsh_print()
71 ver = (uint8_t)(*bp >> 6); in nsh_print()
72 flags = *bp; in nsh_print()
73 bp += 1; in nsh_print()
74 length = *bp; in nsh_print()
75 bp += 1; in nsh_print()
76 md_type = *bp; in nsh_print()
77 bp += 1; in nsh_print()
78 next_protocol = *bp; in nsh_print()
[all …]
Dprint-mobility.c116 const u_char *bp, const unsigned len) in mobility_opt_print() argument
121 ND_TCHECK(bp[i]); in mobility_opt_print()
122 if (bp[i] == IP6MOPT_PAD1) in mobility_opt_print()
126 ND_TCHECK(bp[i + 1]); in mobility_opt_print()
127 optlen = bp[i + 1] + 2; in mobility_opt_print()
134 ND_TCHECK(bp[i + optlen]); in mobility_opt_print()
136 switch (bp[i]) { in mobility_opt_print()
153 ND_TCHECK_16BITS(&bp[i+2]); in mobility_opt_print()
155 EXTRACT_16BITS(&bp[i+2]) << 2)); in mobility_opt_print()
162 ND_TCHECK_128BITS(&bp[i+2]); in mobility_opt_print()
[all …]
Dprint-igmp.c107 register const u_char *bp, register u_int len) in print_mtrace() argument
109 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mtrace()
129 register const u_char *bp, register u_int len) in print_mresp() argument
131 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mresp()
151 register const u_char *bp, register u_int len) in print_igmpv3_report() argument
161 ND_TCHECK2(bp[6], 2); in print_igmpv3_report()
162 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report()
172 ND_TCHECK2(bp[group+4], 4); in print_igmpv3_report()
173 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); in print_igmpv3_report()
175 bp[group]))); in print_igmpv3_report()
[all …]
Dprint-ntp.c207 register const struct ntpdata *bp; in ntp_print() local
210 bp = (const 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.c60 const u_char *bp) in print_btp_body() argument
67 version = bp[0]; in print_btp_body()
68 msg_type = bp[1]; in print_btp_body()
76 const u_char *bp) in print_btp() argument
78 uint16_t dest = EXTRACT_16BITS(bp+0); in print_btp()
79 uint16_t src = EXTRACT_16BITS(bp+2); in print_btp()
85 const u_char *bp) in print_long_pos_vector() argument
89 if (!ND_TTEST2(*bp, GEONET_ADDR_LEN)) in print_long_pos_vector()
91 ND_PRINT((ndo, "GN_ADDR:%s ", linkaddr_string (ndo, bp, 0, GEONET_ADDR_LEN))); in print_long_pos_vector()
93 if (!ND_TTEST2(*(bp+12), 8)) in print_long_pos_vector()
[all …]
Dprint-vrrp.c107 register const u_char *bp, register u_int len, in vrrp_print() argument
113 ND_TCHECK(bp[0]); in vrrp_print()
114 version = (bp[0] & 0xf0) >> 4; in vrrp_print()
115 type = bp[0] & 0x0f; in vrrp_print()
122 ND_TCHECK(bp[2]); in vrrp_print()
123 ND_PRINT((ndo, ", vrid %u, prio %u", bp[1], bp[2])); in vrrp_print()
124 ND_TCHECK(bp[5]); in vrrp_print()
127 auth_type = bp[4]; in vrrp_print()
129 ND_PRINT((ndo, ", intvl %us, length %u", bp[5], len)); in vrrp_print()
131 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-geneve.c103 geneve_opts_print(netdissect_options *ndo, const u_char *bp, u_int len) in geneve_opts_print() argument
115 opt_class = EXTRACT_16BITS(bp); in geneve_opts_print()
116 opt_type = *(bp + 2); in geneve_opts_print()
117 opt_len = 4 + ((*(bp + 3) & OPT_LEN_MASK) * 4); in geneve_opts_print()
129 const uint32_t *data = (const uint32_t *)(bp + 4); in geneve_opts_print()
140 bp += opt_len; in geneve_opts_print()
146 geneve_print(netdissect_options *ndo, const u_char *bp, u_int len) in geneve_print() argument
158 ND_TCHECK2(*bp, 8); in geneve_print()
160 ver_opt = *bp; in geneve_print()
161 bp += 1; in geneve_print()
[all …]
Dprint-tftp.c92 register const u_char *bp, u_int length) in tftp_print() argument
104 ND_TCHECK_16BITS(bp); in tftp_print()
105 opcode = EXTRACT_16BITS(bp); in tftp_print()
111 bp += 2; in tftp_print()
123 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print()
127 bp += ui; in tftp_print()
134 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print()
137 bp += ui; in tftp_print()
142 ND_TCHECK(*bp); in tftp_print()
143 if (*bp != '\0') in tftp_print()
[all …]
/external/libgav1/libgav1/src/tile/bitstream/
Dmode_info.cc210 BlockParameters& bp = *block.bp; in ReadSegmentId() local
211 if (bp.skip) { in ReadSegmentId()
212 bp.segment_id = pred; in ReadSegmentId()
227 bp.segment_id = in ReadSegmentId()
231 if (bp.segment_id < 0 || in ReadSegmentId()
232 bp.segment_id > frame_header_.segmentation.last_active_segment_id) { in ReadSegmentId()
237 bp.segment_id); in ReadSegmentId()
244 BlockParameters& bp = *block.bp; in ReadIntraSegmentId() local
246 bp.segment_id = 0; in ReadIntraSegmentId()
253 BlockParameters& bp = *block.bp; in ReadSkip() local
[all …]
/external/openssh/openbsd-compat/
Dstrptime.c70 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/boringssl/src/crypto/x509/
Dt_x509.c91 int X509_print(BIO *bp, X509 *x) in X509_print() argument
93 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print()
96 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, in X509_print_ex() argument
118 if (BIO_write(bp, "Certificate:\n", 13) <= 0) in X509_print_ex()
120 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_print_ex()
125 if (BIO_printf(bp, "%8sVersion: %lu (0x%lx)\n", "", l + 1, l) <= 0) in X509_print_ex()
130 if (BIO_write(bp, " Serial Number:", 22) <= 0) in X509_print_ex()
142 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, l, neg, l) <= 0) in X509_print_ex()
146 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0) in X509_print_ex()
150 if (BIO_printf(bp, "%02x%c", bs->data[i], in X509_print_ex()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/
Dt_x509.c91 int X509_print(BIO *bp, X509 *x) in X509_print() argument
93 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print()
96 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, in X509_print_ex() argument
118 if (BIO_write(bp, "Certificate:\n", 13) <= 0) in X509_print_ex()
120 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_print_ex()
125 if (BIO_printf(bp, "%8sVersion: %lu (0x%lx)\n", "", l + 1, l) <= 0) in X509_print_ex()
130 if (BIO_write(bp, " Serial Number:", 22) <= 0) in X509_print_ex()
142 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, l, neg, l) <= 0) in X509_print_ex()
146 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0) in X509_print_ex()
150 if (BIO_printf(bp, "%02x%c", bs->data[i], in X509_print_ex()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dblkmap64_rb.c168 static void rb_free_extent(struct ext2fs_rb_private *bp, in rb_free_extent() argument
171 if (bp->wcursor == ext) in rb_free_extent()
172 bp->wcursor = NULL; in rb_free_extent()
173 if (bp->rcursor == ext) in rb_free_extent()
174 bp->rcursor = NULL; in rb_free_extent()
175 if (bp->rcursor_next == ext) in rb_free_extent()
176 bp->rcursor_next = NULL; in rb_free_extent()
182 struct ext2fs_rb_private *bp; in rb_alloc_private_data() local
185 retval = ext2fs_get_mem(sizeof (struct ext2fs_rb_private), &bp); in rb_alloc_private_data()
189 bp->root = RB_ROOT; in rb_alloc_private_data()
[all …]
Dblkmap64_ba.c45 ext2fs_ba_private bp; in ba_alloc_private_data() local
55 retval = ext2fs_get_mem(sizeof (ext2fs_ba_private), &bp); in ba_alloc_private_data()
61 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data()
63 ext2fs_free_mem(&bp); in ba_alloc_private_data()
64 bp = 0; in ba_alloc_private_data()
67 bitmap->private = (void *) bp; in ba_alloc_private_data()
74 ext2fs_ba_private bp; in ba_new_bmap() local
82 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap()
84 memset(bp->bitarray, 0, size); in ba_new_bmap()
91 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap() local
[all …]
/external/pdfium/third_party/libopenjpeg20/
Dmqc.c189 assert(mqc->bp >= mqc->start - 1); in opj_mqc_byteout()
190 if (*mqc->bp == 0xff) { in opj_mqc_byteout()
191 mqc->bp++; in opj_mqc_byteout()
192 *mqc->bp = (OPJ_BYTE)(mqc->c >> 20); in opj_mqc_byteout()
197 mqc->bp++; in opj_mqc_byteout()
198 *mqc->bp = (OPJ_BYTE)(mqc->c >> 19); in opj_mqc_byteout()
202 (*mqc->bp)++; in opj_mqc_byteout()
203 if (*mqc->bp == 0xff) { in opj_mqc_byteout()
205 mqc->bp++; in opj_mqc_byteout()
206 *mqc->bp = (OPJ_BYTE)(mqc->c >> 20); in opj_mqc_byteout()
[all …]
/external/libwebsockets/lib/misc/fts/
Dtrie-fd.c90 int ra, bp = 0; in lws_fts_filepath() local
120 bp += rq32(&buf[bp], ofs_linetable); in lws_fts_filepath()
122 bp += rq32(&buf[bp], &flen); in lws_fts_filepath()
124 bp += rq32(&buf[bp], lines); in lws_fts_filepath()
126 bp += rq32(&buf[bp], &flen); in lws_fts_filepath()
127 bp += rq32(&buf[bp], &flen); in lws_fts_filepath()
133 strncpy(result, (char *)&buf[bp], m); in lws_fts_filepath()
226 bp = 0; \
244 int line = 1, bp, ra; in lws_fts_cache_chunktable() local
264 lt->chunk_line_number_count = b16(&buf[bp + 2]); in lws_fts_cache_chunktable()
[all …]
Dtrie.c171 if (bp && ((uint32_t)bp >= (sizeof(buf) - (margin)) || (force))) { \
172 if (write(t->fd, buf, bp) != bp) { \
174 bp, errno); \
177 t->c += bp; \
178 bp = 0; \
401 int bp = 0; in finalize_per_input() local
403 bp += g16(&buf[bp], 0); in finalize_per_input()
404 bp += g16(&buf[bp], 0); in finalize_per_input()
405 bp += g32(&buf[bp], 0); in finalize_per_input()
406 if (write(t->fd, buf, bp) != bp) in finalize_per_input()
[all …]

12345678910>>...45