/net/ipv6/netfilter/ |
D | ip6t_hbh.c | 54 unsigned int hdrlen = 0; in hbh_mt6() local 78 hdrlen = ipv6_optlen(oh); in hbh_mt6() 79 if (skb->len - ptr < hdrlen) { in hbh_mt6() 84 pr_debug("IPv6 OPTS LEN %u %u ", hdrlen, oh->hdrlen); in hbh_mt6() 87 optinfo->hdrlen, hdrlen, in hbh_mt6() 89 ((optinfo->hdrlen == hdrlen) ^ in hbh_mt6() 94 ((optinfo->hdrlen == hdrlen) ^ in hbh_mt6() 98 hdrlen -= 2; in hbh_mt6() 106 if (hdrlen < 1) in hbh_mt6() 126 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() 84 (!ahinfo->hdrlen || in ah_mt6() 85 (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() 100 ((rtinfo->hdrlen == hdrlen) ^ in rt_mt6() 123 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() 131 temp < (unsigned int)((hdrlen - 8) / 16); in rt_mt6() 157 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() 100 len -= hdrlen; in ipv6header_mt6() 101 ptr += hdrlen; in ipv6header_mt6()
|
D | nf_nat_l3proto_ipv6.c | 204 unsigned int hdrlen) in nf_nat_icmpv6_reply_translation() argument 218 if (!skb_make_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmpv6_reply_translation() 220 if (nf_ip6_checksum(skb, hooknum, hdrlen, IPPROTO_ICMPV6)) in nf_nat_icmpv6_reply_translation() 223 inside = (void *)skb->data + hdrlen; in nf_nat_icmpv6_reply_translation() 244 if (!nf_nat_ipv6_manip_pkt(skb, hdrlen + sizeof(inside->icmp6), in nf_nat_icmpv6_reply_translation() 250 inside = (void *)skb->data + hdrlen; in nf_nat_icmpv6_reply_translation() 254 skb->len - hdrlen, IPPROTO_ICMPV6, in nf_nat_icmpv6_reply_translation() 256 skb->len - hdrlen, 0)); in nf_nat_icmpv6_reply_translation() 281 int hdrlen; in nf_nat_ipv6_fn() local 305 hdrlen = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), in nf_nat_ipv6_fn() [all …]
|
D | nf_log_ipv6.c | 49 unsigned int hdrlen = 0; in dump_ipv6_packet() local 116 hdrlen = 8; in dump_ipv6_packet() 128 hdrlen = ipv6_optlen(hp); in dump_ipv6_packet() 161 hdrlen = (hp->hdrlen+2)<<2; in dump_ipv6_packet() 201 ptr += hdrlen; in dump_ipv6_packet()
|
D | nf_conntrack_reasm.c | 504 int hdrlen; in find_prev_fhdr() local 520 hdrlen = (hdr.hdrlen+2)<<2; in find_prev_fhdr() 522 hdrlen = ipv6_optlen(&hdr); in find_prev_fhdr() 528 len -= hdrlen; in find_prev_fhdr() 529 start += hdrlen; in find_prev_fhdr()
|
/net/ipv6/ |
D | exthdrs_core.c | 80 int hdrlen; in ipv6_skip_exthdr() local 100 hdrlen = 8; in ipv6_skip_exthdr() 102 hdrlen = (hp->hdrlen+2)<<2; in ipv6_skip_exthdr() 104 hdrlen = ipv6_optlen(hp); in ipv6_skip_exthdr() 107 start += hdrlen; in ipv6_skip_exthdr() 125 len = ((hdr->hdrlen + 1) << 3); in ipv6_find_tlv() 211 unsigned int hdrlen; in ipv6_find_hdr() local 269 hdrlen = 8; in ipv6_find_hdr() 273 hdrlen = (hp->hdrlen + 2) << 2; in ipv6_find_hdr() 275 hdrlen = ipv6_optlen(hp); in ipv6_find_hdr() [all …]
|
D | datagram.c | 656 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in ip6_datagram_recv_specific_ctl() 794 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 814 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 839 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 869 if (rthdr->hdrlen != 2 || in ip6_datagram_send_ctl() 881 len = ((rthdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 889 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl() 898 int dsthdrlen = ((opt->dst1opt->hdrlen+1)<<3); in ip6_datagram_send_ctl()
|
D | exthdrs.c | 349 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rthdr_rcv() 362 if (hdr->hdrlen != 2 || hdr->segments_left != 1) { in ipv6_rthdr_rcv() 379 n = hdr->hdrlen >> 1; in ipv6_rthdr_rcv() 664 phdr = (struct rt0_hdr *) skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr() 667 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr()
|
/net/mac80211/ |
D | wpa.c | 35 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() local 46 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() 47 if (skb->len < hdrlen) in ieee80211_tx_h_michael_mic_add() 50 data = skb->data + hdrlen; in ieee80211_tx_h_michael_mic_add() 51 data_len = skb->len - hdrlen; in ieee80211_tx_h_michael_mic_add() 92 unsigned int hdrlen; in ieee80211_rx_h_michael_mic_verify() local 144 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_michael_mic_verify() 145 if (skb->len < hdrlen + MICHAEL_MIC_LEN) in ieee80211_rx_h_michael_mic_verify() 152 data = skb->data + hdrlen; in ieee80211_rx_h_michael_mic_verify() 153 data_len = skb->len - hdrlen - MICHAEL_MIC_LEN; in ieee80211_rx_h_michael_mic_verify() [all …]
|
D | wep.c | 96 unsigned int hdrlen; in ieee80211_wep_add_iv() local 104 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv() 106 memmove(newhdr, newhdr + IEEE80211_WEP_IV_LEN, hdrlen); in ieee80211_wep_add_iv() 111 return newhdr + hdrlen; in ieee80211_wep_add_iv() 113 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv() 114 return newhdr + hdrlen; in ieee80211_wep_add_iv() 123 unsigned int hdrlen; in ieee80211_wep_remove_iv() local 125 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_remove_iv() 126 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv() 233 unsigned int hdrlen; in ieee80211_wep_decrypt() local [all …]
|
D | tx.c | 852 struct sk_buff *skb, int hdrlen, in ieee80211_fragment() argument 858 int per_fragm = frag_threshold - hdrlen - FCS_LEN; in ieee80211_fragment() 859 int pos = hdrlen + per_fragm; in ieee80211_fragment() 860 int rem = skb->len - hdrlen - per_fragm; in ieee80211_fragment() 900 memcpy(skb_put(tmp, hdrlen), skb->data, hdrlen); in ieee80211_fragment() 907 skb_trim(skb, hdrlen + per_fragm); in ieee80211_fragment() 918 int hdrlen; in ieee80211_tx_h_fragment() local 939 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_fragment() 953 if (ieee80211_fragment(tx, skb, hdrlen, frag_threshold)) in ieee80211_tx_h_fragment() 1780 int hdrlen; in ieee80211_monitor_start_xmit() local [all …]
|
D | rx.c | 729 int hdrlen; in iwl80211_get_cs_keyid() local 733 hdrlen = ieee80211_hdrlen(fc); in iwl80211_get_cs_keyid() 735 if (skb->len < hdrlen + cs->hdr_len) in iwl80211_get_cs_keyid() 738 skb_copy_bits(skb, hdrlen + cs->key_idx_off, &keyid, 1); in iwl80211_get_cs_keyid() 1162 unsigned int hdrlen; in ieee80211_rx_h_check() local 1165 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_check() 1167 if (rx->skb->len < hdrlen + 8) in ieee80211_rx_h_check() 1170 skb_copy_bits(rx->skb, hdrlen + 6, ðertype, 2); in ieee80211_rx_h_check() 1527 int hdrlen; in ieee80211_rx_h_decrypt() local 1651 hdrlen = ieee80211_hdrlen(fc); in ieee80211_rx_h_decrypt() [all …]
|
/net/wireless/ |
D | util.c | 342 unsigned int hdrlen = 24; in ieee80211_hdrlen() local 346 hdrlen = 30; in ieee80211_hdrlen() 348 hdrlen += IEEE80211_QOS_CTL_LEN; in ieee80211_hdrlen() 350 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen() 357 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen() 372 hdrlen = 10; in ieee80211_hdrlen() 374 hdrlen = 16; in ieee80211_hdrlen() 377 return hdrlen; in ieee80211_hdrlen() 385 unsigned int hdrlen; in ieee80211_get_hdrlen_from_skb() local 389 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_get_hdrlen_from_skb() [all …]
|
/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()
|
D | fou.c | 83 void *data, size_t hdrlen, u8 ipproto, in gue_remcsum() argument 89 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum() 99 skb_remcsum_process(skb, (void *)guehdr + hdrlen, in gue_remcsum() 115 size_t len, optlen, hdrlen; in gue_udp_recv() local 139 hdrlen = sizeof(struct guehdr) + optlen; in gue_udp_recv() 144 hdrlen = sizeof(struct guehdr) + optlen; in gue_udp_recv() 162 hdrlen, guehdr->proto_ctype, in gue_udp_recv() 178 __skb_pull(skb, sizeof(struct udphdr) + hdrlen); in gue_udp_recv() 251 size_t hdrlen, struct gro_remcsum *grc, in gue_gro_remcsum() argument 264 guehdr = skb_gro_remcsum_process(skb, (void *)guehdr, off, hdrlen, in gue_gro_remcsum() [all …]
|
D | inet_diag.c | 988 int hdrlen = sizeof(struct inet_diag_req_v2); in inet_diag_dump() local 991 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump() 992 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump() 1013 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_dump_compat() local 1023 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump_compat() 1024 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump_compat() 1046 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_rcv_msg_compat() local 1050 nlmsg_len(nlh) < hdrlen) in inet_diag_rcv_msg_compat() 1054 if (nlmsg_attrlen(nlh, hdrlen)) { in inet_diag_rcv_msg_compat() 1058 attr = nlmsg_find_attr(nlh, hdrlen, in inet_diag_rcv_msg_compat() [all …]
|
D | ah4.c | 214 ah->hdrlen = (XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output() 216 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output() 273 int ah_hlen = (ah->hdrlen + 2) << 2; in ah_input_done() 330 ah_hlen = (ah->hdrlen + 2) << 2; in ah_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/xprtrdma/ |
D | svc_rdma_marshal.c | 169 int hdrlen; in svc_rdma_xdr_decode_req() local 178 hdrlen = (u32)((unsigned long)va - (unsigned long)rmsgp); in svc_rdma_xdr_decode_req() 179 rqstp->rq_arg.head[0].iov_len -= hdrlen; in svc_rdma_xdr_decode_req() 180 if (hdrlen > rqstp->rq_arg.len) in svc_rdma_xdr_decode_req() 182 return hdrlen; in svc_rdma_xdr_decode_req()
|
D | rpc_rdma.c | 440 ssize_t hdrlen; in rpcrdma_marshal_req() local 512 hdrlen = RPCRDMA_HDRLEN_MIN; in rpcrdma_marshal_req() 531 hdrlen = rpcrdma_create_chunks(rqst, &rqst->rq_snd_buf, in rpcrdma_marshal_req() 536 hdrlen = rpcrdma_create_chunks(rqst, &rqst->rq_rcv_buf, in rpcrdma_marshal_req() 539 if (hdrlen < 0) in rpcrdma_marshal_req() 540 return hdrlen; in rpcrdma_marshal_req() 544 __func__, transfertypes[wtype], hdrlen, rpclen, in rpcrdma_marshal_req() 555 req->rl_send_iov[0].length = hdrlen; in rpcrdma_marshal_req()
|
/net/ipv4/netfilter/ |
D | nf_nat_l3proto_ipv4.c | 201 unsigned int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation() local 208 if (!skb_make_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmp_reply_translation() 210 if (nf_ip_checksum(skb, hooknum, hdrlen, 0)) in nf_nat_icmp_reply_translation() 213 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 234 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation() 240 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 243 csum_fold(skb_checksum(skb, hdrlen, in nf_nat_icmp_reply_translation() 244 skb->len - hdrlen, 0)); in nf_nat_icmp_reply_translation()
|
/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 151 make_checksum_hmac_md5(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum_hmac_md5() argument 199 sg_init_one(sg, header, hdrlen); in make_checksum_hmac_md5() 200 err = crypto_hash_update(&desc, sg, hdrlen); in make_checksum_hmac_md5() 241 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum() argument 252 return make_checksum_hmac_md5(kctx, header, hdrlen, in make_checksum() 279 sg_init_one(sg, header, hdrlen); in make_checksum() 280 err = crypto_hash_update(&desc, sg, hdrlen); in make_checksum() 322 make_checksum_v2(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum_v2() argument 362 sg_init_one(sg, header, hdrlen); in make_checksum_v2() 363 err = crypto_hash_update(&desc, sg, hdrlen); in make_checksum_v2()
|
/net/netlink/ |
D | diag.c | 166 int hdrlen = sizeof(struct netlink_diag_req); in netlink_diag_handler_dump() local 169 if (nlmsg_len(h) < hdrlen) in netlink_diag_handler_dump()
|