/net/ceph/ |
D | osdmap.c | 55 static int crush_decode_uniform_bucket(void **p, void *end, in crush_decode_uniform_bucket() argument 58 dout("crush_decode_uniform_bucket %p to %p\n", *p, end); in crush_decode_uniform_bucket() 59 ceph_decode_need(p, end, (1+b->h.size) * sizeof(u32), bad); in crush_decode_uniform_bucket() 66 static int crush_decode_list_bucket(void **p, void *end, in crush_decode_list_bucket() argument 70 dout("crush_decode_list_bucket %p to %p\n", *p, end); in crush_decode_list_bucket() 77 ceph_decode_need(p, end, 2 * b->h.size * sizeof(u32), bad); in crush_decode_list_bucket() 87 static int crush_decode_tree_bucket(void **p, void *end, in crush_decode_tree_bucket() argument 91 dout("crush_decode_tree_bucket %p to %p\n", *p, end); in crush_decode_tree_bucket() 92 ceph_decode_8_safe(p, end, b->num_nodes, bad); in crush_decode_tree_bucket() 96 ceph_decode_need(p, end, b->num_nodes * sizeof(u32), bad); in crush_decode_tree_bucket() [all …]
|
D | cls_lock_client.c | 32 void *p, *end; in ceph_cls_lock() local 53 end = p + lock_op_buf_size; in ceph_cls_lock() 58 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock() 60 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock() 61 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_lock() 62 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock() 95 void *p, *end; in ceph_cls_unlock() local 110 end = p + unlock_op_buf_size; in ceph_cls_unlock() 115 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_unlock() 116 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock() [all …]
|
D | armor.c | 4 int ceph_armor(char *dst, const char *src, const char *end); 5 int ceph_unarmor(char *dst, const char *src, const char *end); 36 int ceph_armor(char *dst, const char *src, const char *end) in ceph_armor() argument 41 while (src < end) { in ceph_armor() 46 if (src < end) { in ceph_armor() 49 if (src < end) { in ceph_armor() 74 int ceph_unarmor(char *dst, const char *src, const char *end) in ceph_unarmor() argument 78 while (src < end) { in ceph_unarmor() 85 if (src + 4 > end) in ceph_unarmor()
|
D | auth_x.c | 72 static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end) in ceph_x_decrypt() argument 78 ceph_decode_32_safe(p, end, ciphertext_len, e_inval); in ceph_x_decrypt() 79 ceph_decode_need(p, end, ciphertext_len, e_inval); in ceph_x_decrypt() 81 ret = ceph_crypt(secret, false, *p, end - *p, ciphertext_len, in ceph_x_decrypt() 142 void **p, void *end) in process_one_ticket() argument 160 ceph_decode_need(p, end, sizeof(u32) + 1, bad); in process_one_ticket() 177 ret = ceph_x_decrypt(secret, p, end); in process_one_ticket() 199 ceph_decode_8_safe(p, end, is_enc, bad); in process_one_ticket() 203 ret = ceph_x_decrypt(&th->session_key, p, end); in process_one_ticket() 212 tpend = end; in process_one_ticket() [all …]
|
D | auth.c | 88 int ceph_auth_entity_name_encode(const char *name, void **p, void *end) in ceph_auth_entity_name_encode() argument 92 if (*p + 2*sizeof(u32) + len > end) in ceph_auth_entity_name_encode() 107 void *p = monhdr + 1, *end = buf + len, *lenp; in ceph_auth_build_hello() local 122 ceph_decode_need(&p, end, 1 + sizeof(u32), bad); in ceph_auth_build_hello() 126 ceph_decode_need(&p, end, num * sizeof(u32), bad); in ceph_auth_build_hello() 130 ret = ceph_auth_entity_name_encode(ac->name, &p, end); in ceph_auth_build_hello() 133 ceph_decode_need(&p, end, sizeof(u64), bad); in ceph_auth_build_hello() 152 void *end = msg_buf + msg_len; in ceph_build_auth_request() local 161 ret = ac->ops->build_request(ac, p + sizeof(u32), end); in ceph_build_auth_request() 182 void *end = buf + len; in ceph_handle_auth_reply() local [all …]
|
D | auth_none.c | 45 void *const end = p + sizeof(au->buf); in ceph_auth_none_build_authorizer() local 48 ceph_encode_8_safe(&p, end, 1, e_range); in ceph_auth_none_build_authorizer() 49 ret = ceph_auth_entity_name_encode(ac->name, &p, end); in ceph_auth_none_build_authorizer() 53 ceph_encode_64_safe(&p, end, ac->global_id, e_range); in ceph_auth_none_build_authorizer() 62 static int build_request(struct ceph_auth_client *ac, void *buf, void *end) in build_request() argument 72 void *buf, void *end) in handle_reply() argument
|
D | crypto.h | 20 int ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end); 21 int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end); 32 int ceph_armor(char *dst, const char *src, const char *end); 33 int ceph_unarmor(char *dst, const char *src, const char *end);
|
D | mon_client.c | 40 struct ceph_monmap *ceph_monmap_decode(void *p, void *end) in ceph_monmap_decode() argument 49 ceph_decode_32_safe(&p, end, len, bad); in ceph_monmap_decode() 50 ceph_decode_need(&p, end, len, bad); in ceph_monmap_decode() 52 dout("monmap_decode %p %p len %d\n", p, end, (int)(end-p)); in ceph_monmap_decode() 54 ceph_decode_16_safe(&p, end, version, bad); in ceph_monmap_decode() 56 ceph_decode_need(&p, end, sizeof(fsid) + 2*sizeof(u32), bad); in ceph_monmap_decode() 61 ceph_decode_need(&p, end, num_mon*sizeof(m->mon_inst[0]), bad); in ceph_monmap_decode() 244 void *const end = p + msg->front_alloc_len; in __send_subscribe() local 278 ceph_encode_string(&p, end, buf, len); in __send_subscribe() 283 BUG_ON(p > end); in __send_subscribe() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 140 unsigned char *end; /* Octet after last octet */ member 157 ctx->end = buf + len; in asn1_open() 164 if (ctx->pointer >= ctx->end) { in asn1_octet_decode() 240 if (*len > ctx->end - ctx->pointer) in asn1_length_decode() 676 unsigned char *eoc, *end, *p; in snmp_object_decode() local 690 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) in snmp_object_decode() 696 if (!asn1_oid_decode(ctx, end, &id, &idlen)) in snmp_object_decode() 699 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) { in snmp_object_decode() 719 if (!asn1_long_decode(ctx, end, &l)) { in snmp_object_decode() 732 if (!asn1_octets_decode(ctx, end, &p, &len)) { in snmp_object_decode() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_krb5_mech.c | 191 simple_get_bytes(const void *p, const void *end, void *res, int len) in simple_get_bytes() argument 194 if (unlikely(q > end || q < p)) in simple_get_bytes() 201 simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res) in simple_get_netobj() argument 206 p = simple_get_bytes(p, end, &len, sizeof(len)); in simple_get_netobj() 210 if (unlikely(q > end || q < p)) in simple_get_netobj() 220 get_key(const void *p, const void *end, in get_key() argument 226 p = simple_get_bytes(p, end, &alg, sizeof(alg)); in get_key() 245 p = simple_get_netobj(p, end, &key); in get_key() 276 gss_import_v1_context(const void *p, const void *end, struct krb5_ctx *ctx) in gss_import_v1_context() argument 280 p = simple_get_bytes(p, end, &ctx->initiate, sizeof(ctx->initiate)); in gss_import_v1_context() [all …]
|
/net/core/ |
D | datagram.c | 400 int end; in skb_copy_datagram_iter() local 405 end = start + skb_frag_size(frag); in skb_copy_datagram_iter() 406 if ((copy = end - offset) > 0) { in skb_copy_datagram_iter() 418 start = end; in skb_copy_datagram_iter() 422 int end; in skb_copy_datagram_iter() local 426 end = start + frag_iter->len; in skb_copy_datagram_iter() 427 if ((copy = end - offset) > 0) { in skb_copy_datagram_iter() 437 start = end; in skb_copy_datagram_iter() 489 int end; in skb_copy_datagram_from_iter() local 494 end = start + skb_frag_size(frag); in skb_copy_datagram_from_iter() [all …]
|
D | skbuff.c | 103 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic() 254 skb->end = skb->tail + size; in __alloc_skb() 322 skb->end = skb->tail + size; in __build_skb() 908 C(end); in __skb_clone() 1252 skb->end = size; in pskb_expand_head() 1255 skb->end = skb->head + size; in pskb_expand_head() 1375 ntail = skb->data_len + pad - (skb->end - skb->tail); in skb_pad() 1436 if (unlikely(skb->tail > skb->end)) in skb_put() 1514 int end = offset + skb_frag_size(&skb_shinfo(skb)->frags[i]); in ___pskb_trim() local 1516 if (end < len) { in ___pskb_trim() [all …]
|
D | utils.c | 122 int delim, const char **end) in in4_pton() argument 168 if (end) in in4_pton() 169 *end = s; in in4_pton() 188 int delim, const char **end) in in6_pton() argument 297 if (end) in in6_pton() 298 *end = s; in in6_pton()
|
/net/ipv6/ |
D | calipso.c | 866 unsigned int *end) in calipso_opt_find() argument 905 *end = offset_e + calipso_tlv_len(hop, offset_e); in calipso_opt_find() 907 *end = opt_len; in calipso_opt_find() 931 unsigned int start, end, buf_len, pad, hop_len; in calipso_opt_insert() local 937 ret_val = calipso_opt_find(hop, &start, &end); in calipso_opt_insert() 943 end = 0; in calipso_opt_insert() 946 buf_len = hop_len + start - end + CALIPSO_OPT_LEN_MAX_WITH_PAD; in calipso_opt_insert() 962 pad = ((buf_len & 4) + (end & 7)) & 7; in calipso_opt_insert() 966 if (end != hop_len) { in calipso_opt_insert() 967 memcpy((char *)new + buf_len, (char *)hop + end, hop_len - end); in calipso_opt_insert() [all …]
|
/net/netfilter/ |
D | nf_conntrack_sip.c | 141 const char *end; in sip_parse_addr() local 150 ret = in4_pton(cp, limit - cp, (u8 *)&addr->ip, -1, &end); in sip_parse_addr() 160 ret = in6_pton(cp, limit - cp, (u8 *)&addr->ip6, -1, &end); in sip_parse_addr() 164 if (end < limit && *end == ']') in sip_parse_addr() 165 end++; in sip_parse_addr() 174 *endp = end; in sip_parse_addr() 236 const char *start = dptr, *limit = dptr + datalen, *end; in ct_sip_parse_request() local 262 if (!sip_parse_addr(ct, dptr, &end, addr, limit, true)) in ct_sip_parse_request() 264 if (end < limit && *end == ':') { in ct_sip_parse_request() 265 end++; in ct_sip_parse_request() [all …]
|
/net/sctp/ |
D | tsnmap.c | 46 __u16 len, __u16 *start, __u16 *end); 169 __u16 *start, __u16 *end) in sctp_tsnmap_next_gap_ack() argument 194 *end = end_ + 1; in sctp_tsnmap_next_gap_ack() 197 iter->start = map->cumulative_tsn_ack_point + *end + 1; in sctp_tsnmap_next_gap_ack() 288 __u16 len, __u16 *start, __u16 *end) in sctp_tsnmap_find_gap_ack() argument 310 *end = i - 1; in sctp_tsnmap_find_gap_ack() 340 __u16 start = 0, end = 0; in sctp_tsnmap_num_gabs() local 344 &end)) { in sctp_tsnmap_num_gabs() 347 gabs[ngaps].end = htons(end); in sctp_tsnmap_num_gabs()
|
/net/mac80211/ |
D | aes_cmac.c | 43 const u8 *pos, *end; in aes_cmac_vector() local 55 end = pos + len[0]; in aes_cmac_vector() 60 if (pos >= end) { in aes_cmac_vector() 63 end = pos + len[e]; in aes_cmac_vector() 78 if (pos >= end) { in aes_cmac_vector() 81 end = pos + len[e]; in aes_cmac_vector()
|
/net/l2tp/ |
D | l2tp_ppp.c | 197 goto end; in pppol2tp_recvmsg() 203 goto end; in pppol2tp_recvmsg() 215 end: in pppol2tp_recvmsg() 598 goto end; in pppol2tp_connect() 601 goto end; in pppol2tp_connect() 606 goto end; in pppol2tp_connect() 611 goto end; /* socket is already attached */ in pppol2tp_connect() 654 goto end; /* bad socket address */ in pppol2tp_connect() 660 goto end; in pppol2tp_connect() 676 goto end; in pppol2tp_connect() [all …]
|
/net/ipv4/ |
D | ip_fragment.c | 286 unsigned int start, end; in ip_frag_too_far() local 294 end = atomic_inc_return(&peer->rid); in ip_frag_too_far() 295 qp->rid = end; in ip_frag_too_far() 297 rc = qp->q.fragments && (end - start) > max; in ip_frag_too_far() 347 int ihl, end; in ip_frag_queue() local 369 end = offset + skb->len - skb_network_offset(skb) - ihl; in ip_frag_queue() 377 if (end < qp->q.len || in ip_frag_queue() 378 ((qp->q.flags & INET_FRAG_LAST_IN) && end != qp->q.len)) in ip_frag_queue() 381 qp->q.len = end; in ip_frag_queue() 383 if (end&7) { in ip_frag_queue() [all …]
|
/net/rose/ |
D | rose_out.c | 52 unsigned short start, end; in rose_kick() local 64 end = (rose->va + sysctl_rose_window_size) % ROSE_MODULUS; in rose_kick() 66 if (start == end) in rose_kick() 98 } while (rose->vs != end && in rose_kick()
|
/net/sunrpc/ |
D | xdr.c | 470 xdr->end = (__be32 *)((char *)iov->iov_base + scratch_len); in xdr_init_encode() 476 BUG_ON(p < xdr->p || p > xdr->end); in xdr_init_encode() 523 frag1bytes = (xdr->end - xdr->p) << 2; in xdr_get_next_encode_buffer() 547 xdr->end = (void *)p + min_t(int, space_left, PAGE_SIZE); in xdr_get_next_encode_buffer() 572 if (unlikely(q > xdr->end || q < p)) in xdr_reserve_space() 622 WARN_ON_ONCE(!xdr->end); in xdr_truncate_encode() 637 xdr->end = (void *)xdr->p + PAGE_SIZE; in xdr_truncate_encode() 643 xdr->end = head->iov_base + head->iov_len; in xdr_truncate_encode() 669 int left_in_this_buf = (void *)xdr->end - (void *)xdr->p; in xdr_restrict_buflen() 677 xdr->end = (void *)xdr->end + newbuflen - end_offset; in xdr_restrict_buflen() [all …]
|
/net/dns_resolver/ |
D | dns_key.c | 68 const char *data = prep->data, *end, *opt; in dns_resolver_preparse() local 77 end = data + datalen; in dns_resolver_preparse() 93 next_opt = memchr(opt, '#', end - opt) ?: end; in dns_resolver_preparse() 101 eq = memchr(opt, '=', opt_len) ?: end; in dns_resolver_preparse() 134 } while (opt = next_opt + 1, opt < end); in dns_resolver_preparse()
|
/net/ipv6/netfilter/ |
D | nf_conntrack_reasm.c | 217 int offset, end; in nf_ct_frag6_queue() local 228 end = offset + (payload_len - in nf_ct_frag6_queue() 231 if ((unsigned int)end > IPV6_MAXPLEN) { in nf_ct_frag6_queue() 250 if (end < fq->q.len || in nf_ct_frag6_queue() 251 ((fq->q.flags & INET_FRAG_LAST_IN) && end != fq->q.len)) { in nf_ct_frag6_queue() 256 fq->q.len = end; in nf_ct_frag6_queue() 261 if (end & 0x7) { in nf_ct_frag6_queue() 268 if (end > fq->q.len) { in nf_ct_frag6_queue() 274 fq->q.len = end; in nf_ct_frag6_queue() 278 if (end == offset) in nf_ct_frag6_queue() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 91 char **start, char **end) in ip_vs_ftp_get_addrport() argument 130 *end = data; in ip_vs_ftp_get_addrport() 175 char *start, *end; in ip_vs_ftp_out() local 214 &start, &end) != 1) in ip_vs_ftp_out() 273 start-data, end-start, in ip_vs_ftp_out() 317 char *start, *end; in ip_vs_ftp_in() local 375 &start, &end) != 1) in ip_vs_ftp_in()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_marshal.c | 85 unsigned long start, end; in decode_write_list() local 103 end = (unsigned long)vaend; in decode_write_list() 106 (start + (sizeof(struct rpcrdma_write_chunk) * nchunks)) > end) { in decode_write_list() 120 unsigned long start, end; in decode_reply_array() local 137 end = (unsigned long)vaend; in decode_reply_array() 140 (start + (sizeof(struct rpcrdma_write_chunk) * nchunks)) > end) { in decode_reply_array()
|