/net/mac80211/ |
D | wpa.c | 29 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() local 41 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() 42 if (skb->len < hdrlen) in ieee80211_tx_h_michael_mic_add() 45 data = skb->data + hdrlen; in ieee80211_tx_h_michael_mic_add() 46 data_len = skb->len - hdrlen; in ieee80211_tx_h_michael_mic_add() 85 unsigned int hdrlen; in ieee80211_rx_h_michael_mic_verify() local 101 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_michael_mic_verify() 102 if (skb->len < hdrlen + MICHAEL_MIC_LEN) in ieee80211_rx_h_michael_mic_verify() 105 data = skb->data + hdrlen; in ieee80211_rx_h_michael_mic_verify() 106 data_len = skb->len - hdrlen - MICHAEL_MIC_LEN; in ieee80211_rx_h_michael_mic_verify() [all …]
|
D | wep.c | 91 unsigned int hdrlen; in ieee80211_wep_add_iv() local 100 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv() 102 memmove(newhdr, newhdr + WEP_IV_LEN, hdrlen); in ieee80211_wep_add_iv() 103 ieee80211_wep_get_iv(local, key, newhdr + hdrlen); in ieee80211_wep_add_iv() 104 return newhdr + hdrlen; in ieee80211_wep_add_iv() 113 unsigned int hdrlen; in ieee80211_wep_remove_iv() local 115 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_remove_iv() 116 memmove(skb->data + WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv() 226 unsigned int hdrlen; in ieee80211_wep_decrypt() local 233 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_decrypt() [all …]
|
D | tx.c | 666 size_t hdrlen, per_fragm, num_fragm, payload_len, left; in ieee80211_tx_h_fragment() local 686 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_fragment() 687 payload_len = first->len - hdrlen; in ieee80211_tx_h_fragment() 688 per_fragm = frag_threshold - hdrlen - FCS_LEN; in ieee80211_tx_h_fragment() 697 pos = first->data + hdrlen + per_fragm; in ieee80211_tx_h_fragment() 728 fhdr = (struct ieee80211_hdr *) skb_put(frag, hdrlen); in ieee80211_tx_h_fragment() 729 memcpy(fhdr, first->data, hdrlen); in ieee80211_tx_h_fragment() 761 skb_trim(first, hdrlen + per_fragm); in ieee80211_tx_h_fragment() 954 int hdrlen, tid; in __ieee80211_tx_prepare() local 1017 hdrlen = ieee80211_hdrlen(hdr->frame_control); in __ieee80211_tx_prepare() [all …]
|
D | util.c | 96 unsigned int hdrlen = 24; in ieee80211_hdrlen() local 100 hdrlen = 30; in ieee80211_hdrlen() 102 hdrlen += IEEE80211_QOS_CTL_LEN; in ieee80211_hdrlen() 117 hdrlen = 10; in ieee80211_hdrlen() 119 hdrlen = 16; in ieee80211_hdrlen() 122 return hdrlen; in ieee80211_hdrlen() 129 unsigned int hdrlen; in ieee80211_get_hdrlen_from_skb() local 133 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_get_hdrlen_from_skb() 134 if (unlikely(hdrlen > skb->len)) in ieee80211_get_hdrlen_from_skb() 136 return hdrlen; in ieee80211_get_hdrlen_from_skb()
|
D | rx.c | 378 int hdrlen; in ieee80211_verify_ip_alignment() local 402 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_verify_ip_alignment() 404 hdrlen += ETH_HLEN; in ieee80211_verify_ip_alignment() 405 WARN_ON_ONCE(((unsigned long)(rx->skb->data + hdrlen)) & 3); in ieee80211_verify_ip_alignment() 442 unsigned int hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_mesh_check() local 481 mesh_rmc_check(hdr->addr4, msh_h_get(hdr, hdrlen), rx->sdata)) in ieee80211_rx_mesh_check() 550 int hdrlen; in ieee80211_rx_h_decrypt() local 609 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_decrypt() 611 if (rx->skb->len < 8 + hdrlen) in ieee80211_rx_h_decrypt() 618 keyidx = rx->skb->data[hdrlen + 3] >> 6; in ieee80211_rx_h_decrypt() [all …]
|
D | main.c | 360 unsigned int hdrlen, iv_len, mic_len; in ieee80211_remove_tx_extra() local 363 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_remove_tx_extra() 385 if (skb->len >= hdrlen + mic_len && in ieee80211_remove_tx_extra() 388 if (skb->len >= hdrlen + iv_len) { in ieee80211_remove_tx_extra() 389 memmove(skb->data + iv_len, skb->data, hdrlen); in ieee80211_remove_tx_extra() 397 hdrlen - IEEE80211_QOS_CTL_LEN); in ieee80211_remove_tx_extra()
|
/net/ipv6/netfilter/ |
D | ip6t_hbh.c | 52 unsigned int hdrlen = 0; in hbh_mt6() local 74 hdrlen = ipv6_optlen(oh); in hbh_mt6() 75 if (skb->len - ptr < hdrlen) { in hbh_mt6() 80 pr_debug("IPv6 OPTS LEN %u %u ", hdrlen, oh->hdrlen); in hbh_mt6() 83 optinfo->hdrlen, hdrlen, in hbh_mt6() 85 ((optinfo->hdrlen == hdrlen) ^ in hbh_mt6() 90 ((optinfo->hdrlen == hdrlen) ^ in hbh_mt6() 94 hdrlen -= 2; in hbh_mt6() 102 if (hdrlen < 1) in hbh_mt6() 122 if (hdrlen < 2) in hbh_mt6() [all …]
|
D | ip6t_ah.c | 45 unsigned int hdrlen = 0; in ah_mt6() local 61 hdrlen = (ah->hdrlen + 2) << 2; in ah_mt6() 63 pr_debug("IPv6 AH LEN %u %u ", hdrlen, ah->hdrlen); in ah_mt6() 72 ahinfo->hdrlen, hdrlen, in ah_mt6() 73 (!ahinfo->hdrlen || in ah_mt6() 74 (ahinfo->hdrlen == hdrlen) ^ in ah_mt6() 86 (!ahinfo->hdrlen || in ah_mt6() 87 (ahinfo->hdrlen == hdrlen) ^ in ah_mt6()
|
D | ip6t_rt.c | 46 unsigned int hdrlen = 0; in rt_mt6() local 65 hdrlen = ipv6_optlen(rh); in rt_mt6() 66 if (skb->len - ptr < hdrlen) { in rt_mt6() 71 pr_debug("IPv6 RT LEN %u %u ", hdrlen, rh->hdrlen); in rt_mt6() 85 rtinfo->hdrlen, hdrlen, in rt_mt6() 87 ((rtinfo->hdrlen == hdrlen) ^ in rt_mt6() 102 ((rtinfo->hdrlen == hdrlen) ^ in rt_mt6() 126 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() 134 temp < (unsigned int)((hdrlen - 8) / 16); in rt_mt6() 160 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() [all …]
|
D | ip6t_ipv6header.c | 51 int hdrlen; in ipv6header_mt6() local 72 hdrlen = 8; in ipv6header_mt6() 74 hdrlen = (hp->hdrlen + 2) << 2; in ipv6header_mt6() 76 hdrlen = ipv6_optlen(hp); in ipv6header_mt6() 101 len -= hdrlen; in ipv6header_mt6() 102 ptr += hdrlen; in ipv6header_mt6()
|
D | nf_conntrack_l3proto_ipv6.c | 91 int hdrlen; in nf_ct_ipv6_skip_exthdr() local 102 hdrlen = (hdr.hdrlen+2)<<2; in nf_ct_ipv6_skip_exthdr() 104 hdrlen = ipv6_optlen(&hdr); in nf_ct_ipv6_skip_exthdr() 107 len -= hdrlen; in nf_ct_ipv6_skip_exthdr() 108 start += hdrlen; in nf_ct_ipv6_skip_exthdr()
|
D | ip6t_LOG.c | 49 unsigned int hdrlen = 0; in dump_packet() local 115 hdrlen = 8; in dump_packet() 127 hdrlen = ipv6_optlen(hp); in dump_packet() 160 hdrlen = (hp->hdrlen+2)<<2; in dump_packet() 200 ptr += hdrlen; in dump_packet()
|
D | nf_conntrack_reasm.c | 526 int hdrlen; in find_prev_fhdr() local 542 hdrlen = (hdr.hdrlen+2)<<2; in find_prev_fhdr() 544 hdrlen = ipv6_optlen(&hdr); in find_prev_fhdr() 550 len -= hdrlen; in find_prev_fhdr() 551 start += hdrlen; in find_prev_fhdr()
|
/net/ipv6/ |
D | exthdrs_core.c | 72 int hdrlen; in ipv6_skip_exthdr() local 91 hdrlen = 8; in ipv6_skip_exthdr() 93 hdrlen = (hp->hdrlen+2)<<2; in ipv6_skip_exthdr() 95 hdrlen = ipv6_optlen(hp); in ipv6_skip_exthdr() 98 start += hdrlen; in ipv6_skip_exthdr()
|
D | datagram.c | 489 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in datagram_recv_ctl() 590 len = ((hdr->hdrlen + 1) << 3); in datagram_send_ctl() 610 len = ((hdr->hdrlen + 1) << 3); in datagram_send_ctl() 635 len = ((hdr->hdrlen + 1) << 3); in datagram_send_ctl() 665 if (rthdr->hdrlen != 2 || in datagram_send_ctl() 677 len = ((rthdr->hdrlen + 1) << 3); in datagram_send_ctl() 685 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in datagram_send_ctl() 694 int dsthdrlen = ((opt->dst1opt->hdrlen+1)<<3); in datagram_send_ctl()
|
D | exthdrs.c | 60 len = ((hdr->hdrlen + 1) << 3); in ipv6_find_tlv() 373 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rthdr_rcv() 386 if (hdr->hdrlen != 2 || hdr->segments_left != 1) { in ipv6_rthdr_rcv() 403 n = hdr->hdrlen >> 1; in ipv6_rthdr_rcv() 682 phdr = (struct rt0_hdr *) skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr() 685 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_marshal.c | 219 int hdrlen; in svc_rdma_xdr_decode_req() local 227 hdrlen = (u32)((unsigned long)va - (unsigned long)rmsgp); in svc_rdma_xdr_decode_req() 228 rqstp->rq_arg.head[0].iov_len -= hdrlen; in svc_rdma_xdr_decode_req() 229 if (hdrlen > rqstp->rq_arg.len) in svc_rdma_xdr_decode_req() 231 return hdrlen; in svc_rdma_xdr_decode_req() 263 u32 hdrlen; in svc_rdma_xdr_decode_deferred_req() local 273 hdrlen = (u32)((unsigned long)va - (unsigned long)rmsgp); in svc_rdma_xdr_decode_deferred_req() 274 rqstp->rq_arg.head[0].iov_len -= hdrlen; in svc_rdma_xdr_decode_deferred_req() 275 return hdrlen; in svc_rdma_xdr_decode_deferred_req() 307 hdrlen = (unsigned long)va - (unsigned long)rmsgp; in svc_rdma_xdr_decode_deferred_req() [all …]
|
D | rpc_rdma.c | 370 size_t hdrlen, rpclen, padlen; in rpcrdma_marshal_req() local 451 hdrlen = 28; /*sizeof *headerp;*/ in rpcrdma_marshal_req() 473 hdrlen += 2 * sizeof(u32); /* extra words in padhdr */ in rpcrdma_marshal_req() 503 hdrlen = rpcrdma_create_chunks(rqst, in rpcrdma_marshal_req() 508 hdrlen = rpcrdma_create_chunks(rqst, in rpcrdma_marshal_req() 512 if (hdrlen == 0) in rpcrdma_marshal_req() 517 __func__, transfertypes[wtype], hdrlen, rpclen, padlen, in rpcrdma_marshal_req() 528 req->rl_send_iov[0].length = hdrlen; in rpcrdma_marshal_req()
|
/net/ipv4/ |
D | xfrm4_mode_beet.c | 43 int hdrlen, optlen; in xfrm4_beet_output() local 45 hdrlen = 0; in xfrm4_beet_output() 48 hdrlen += IPV4_BEET_PHMAXLEN - (optlen & 4); in xfrm4_beet_output() 51 hdrlen + (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); in xfrm4_beet_output() 61 __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); in xfrm4_beet_output() 69 ph->hdrlen = optlen / 8; in xfrm4_beet_output() 100 optlen = ph->hdrlen * 8 + (IPV4_BEET_PHMAXLEN - phlen); in xfrm4_beet_input()
|
/net/bluetooth/cmtp/ |
D | core.c | 134 __u8 hdr, hdrlen, id; in cmtp_recv_frame() local 144 hdrlen = 2; in cmtp_recv_frame() 148 hdrlen = 3; in cmtp_recv_frame() 152 hdrlen = 1; in cmtp_recv_frame() 159 BT_DBG("hdr 0x%02x hdrlen %d len %d id %d", hdr, hdrlen, len, id); in cmtp_recv_frame() 161 if (hdrlen + len > skb->len) { in cmtp_recv_frame() 167 skb_pull(skb, hdrlen); in cmtp_recv_frame() 173 cmtp_add_msgpart(session, id, skb->data + hdrlen, len); in cmtp_recv_frame() 178 cmtp_add_msgpart(session, id, skb->data + hdrlen, len); in cmtp_recv_frame() 187 skb_pull(skb, hdrlen + len); in cmtp_recv_frame()
|
/net/sunrpc/auth_gss/ |
D | gss_spkm3_token.c | 155 spkm3_mic_header(unsigned char **hdrbuf, unsigned int *hdrlen, unsigned char *ctxdata, int elen, in… in spkm3_mic_header() argument 175 *hdrlen = hptr - top; in spkm3_mic_header()
|
D | gss_spkm3_seal.c | 142 unsigned int hdrlen, struct xdr_buf *body, in make_spkm3_checksum() argument 176 sg_init_one(sg, header, hdrlen); in make_spkm3_checksum()
|
D | gss_krb5_crypto.c | 129 make_checksum(char *cksumname, char *header, int hdrlen, struct xdr_buf *body, in make_checksum() argument 145 sg_init_one(sg, header, hdrlen); in make_checksum() 146 err = crypto_hash_update(&desc, sg, hdrlen); in make_checksum()
|
/net/ipv4/netfilter/ |
D | nf_nat_core.c | 432 int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation() local 437 if (!skb_make_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmp_reply_translation() 444 if (nf_ip_checksum(skb, hooknum, hdrlen, 0)) in nf_nat_icmp_reply_translation() 495 csum_fold(skb_checksum(skb, hdrlen, in nf_nat_icmp_reply_translation() 496 skb->len - hdrlen, 0)); in nf_nat_icmp_reply_translation()
|
/net/netlink/ |
D | genetlink.c | 426 int hdrlen, err; in genl_rcv_msg() local 432 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_rcv_msg() 433 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in genl_rcv_msg() 459 err = nlmsg_parse(nlh, hdrlen, family->attrbuf, family->maxattr, in genl_rcv_msg()
|