/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
D | ip6t_hbh.c | 51 unsigned int hdrlen = 0; in hbh_mt6() local 75 hdrlen = ipv6_optlen(oh); in hbh_mt6() 76 if (skb->len - ptr < hdrlen) { in hbh_mt6() 81 pr_debug("IPv6 OPTS LEN %u %u ", hdrlen, oh->hdrlen); in hbh_mt6() 84 optinfo->hdrlen, hdrlen, in hbh_mt6() 86 ((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 | 42 unsigned int hdrlen = 0; in ah_mt6() local 58 hdrlen = ipv6_authlen(ah); in ah_mt6() 60 pr_debug("IPv6 AH LEN %u %u ", hdrlen, ah->hdrlen); in ah_mt6() 69 ahinfo->hdrlen, hdrlen, in ah_mt6() 70 (!ahinfo->hdrlen || in ah_mt6() 71 (ahinfo->hdrlen == hdrlen) ^ in ah_mt6() 80 (!ahinfo->hdrlen || in ah_mt6() 81 (ahinfo->hdrlen == hdrlen) ^ in ah_mt6()
|
D | ip6t_rt.c | 38 unsigned int hdrlen = 0; in rt_mt6() local 57 hdrlen = ipv6_optlen(rh); in rt_mt6() 58 if (skb->len - ptr < hdrlen) { in rt_mt6() 67 ((rtinfo->hdrlen == hdrlen) ^ in rt_mt6() 92 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() 98 temp < (unsigned int)((hdrlen - 8) / 16); in rt_mt6() 123 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() 142 temp == (unsigned int)((hdrlen - 8) / 16)) in rt_mt6()
|
D | ip6t_srh.c | 29 int hdrlen, srhoff = 0; in srh_mt6() local 37 hdrlen = ipv6_optlen(srh); in srh_mt6() 38 if (skb->len - srhoff < hdrlen) in srh_mt6() 56 !(srh->hdrlen == srhinfo->hdr_len))) in srh_mt6() 61 !(srh->hdrlen > srhinfo->hdr_len))) in srh_mt6() 66 !(srh->hdrlen < srhinfo->hdr_len))) in srh_mt6() 118 int hdrlen, psidoff, nsidoff, lsidoff, srhoff = 0; in srh1_mt6() local 131 hdrlen = ipv6_optlen(srh); in srh1_mt6() 132 if (skb->len - srhoff < hdrlen) in srh1_mt6() 150 !(srh->hdrlen == srhinfo->hdr_len))) in srh1_mt6() [all …]
|
D | ip6t_ipv6header.c | 48 int hdrlen; in ipv6header_mt6() local 72 hdrlen = 8; in ipv6header_mt6() 74 hdrlen = ipv6_authlen(hp); in ipv6header_mt6() 76 hdrlen = ipv6_optlen(hp); in ipv6header_mt6() 100 len -= hdrlen; in ipv6header_mt6() 101 ptr += hdrlen; in ipv6header_mt6()
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | wep.c | 70 unsigned int hdrlen; in ieee80211_wep_add_iv() local 78 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv() 80 memmove(newhdr, newhdr + IEEE80211_WEP_IV_LEN, hdrlen); in ieee80211_wep_add_iv() 85 return newhdr + hdrlen; in ieee80211_wep_add_iv() 87 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv() 88 return newhdr + hdrlen; in ieee80211_wep_add_iv() 97 unsigned int hdrlen; in ieee80211_wep_remove_iv() local 99 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_remove_iv() 100 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv() 199 unsigned int hdrlen; in ieee80211_wep_decrypt() local [all …]
|
D | wpa.c | 34 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() local 45 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() 46 if (skb->len < hdrlen) in ieee80211_tx_h_michael_mic_add() 49 data = skb->data + hdrlen; in ieee80211_tx_h_michael_mic_add() 50 data_len = skb->len - hdrlen; in ieee80211_tx_h_michael_mic_add() 99 unsigned int hdrlen; in ieee80211_rx_h_michael_mic_verify() local 151 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_michael_mic_verify() 152 if (skb->len < hdrlen + MICHAEL_MIC_LEN) in ieee80211_rx_h_michael_mic_verify() 159 data = skb->data + hdrlen; in ieee80211_rx_h_michael_mic_verify() 160 data_len = skb->len - hdrlen - MICHAEL_MIC_LEN; in ieee80211_rx_h_michael_mic_verify() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 172 iv = pframe + pattrib->hdrlen; in r8712_wep_encrypt() 177 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in r8712_wep_encrypt() 180 pattrib->hdrlen - in r8712_wep_encrypt() 192 pattrib->hdrlen - pattrib->iv_len - in r8712_wep_encrypt() 225 iv = pframe + prxattrib->hdrlen; in r8712_wep_decrypt() 233 u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len; in r8712_wep_decrypt() 234 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in r8712_wep_decrypt() 591 iv = pframe + pattrib->hdrlen; in r8712_tkip_encrypt() 593 pattrib->hdrlen; in r8712_tkip_encrypt() 604 pattrib->hdrlen - in r8712_tkip_encrypt() [all …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | exthdrs_core.c | 81 int hdrlen; in ipv6_skip_exthdr() local 101 hdrlen = 8; in ipv6_skip_exthdr() 103 hdrlen = ipv6_authlen(hp); in ipv6_skip_exthdr() 105 hdrlen = ipv6_optlen(hp); in ipv6_skip_exthdr() 108 start += hdrlen; in ipv6_skip_exthdr() 126 len = ((hdr->hdrlen + 1) << 3); in ipv6_find_tlv() 208 unsigned int hdrlen; in ipv6_find_hdr() local 263 hdrlen = 8; in ipv6_find_hdr() 267 hdrlen = ipv6_authlen(hp); in ipv6_find_hdr() 269 hdrlen = ipv6_optlen(hp); in ipv6_find_hdr() [all …]
|
D | seg6_iptunnel.c | 44 return ((tuninfo->srh->hdrlen + 1) << 3) + head; in seg6_lwt_headroom() 131 int hdrlen, tot_len, err; in seg6_do_srh_encap() local 134 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_encap() 135 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap() 176 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_encap() 202 int hdrlen, err; in seg6_do_srh_inline() local 204 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_inline() 206 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline() 216 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline() 225 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_inline() [all …]
|
D | rpl_iptunnel.c | 44 if ((srh->hdrlen << 3) != seglen) in rpl_validate_srh() 134 size_t hdrlen; in rpl_do_srh_inline() local 144 csrh = (struct ipv6_rpl_sr_hdr *)(buf + ((srh->hdrlen + 1) << 3)); in rpl_do_srh_inline() 154 hdrlen = ((csrh->hdrlen + 1) << 3); in rpl_do_srh_inline() 156 err = skb_cow_head(skb, hdrlen + skb->mac_len); in rpl_do_srh_inline() 166 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in rpl_do_srh_inline() 173 memcpy(isrh, csrh, hdrlen); in rpl_do_srh_inline() 182 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in rpl_do_srh_inline()
|
D | exthdrs.c | 384 int offset = (hdr->hdrlen + 1) << 3; in ipv6_srh_rcv() 408 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_srh_rcv() 414 if (hdr->segments_left >= (hdr->hdrlen >> 1)) { in ipv6_srh_rcv() 501 int offset = (hdr->hdrlen + 1) << 3; in ipv6_rpl_srh_rcv() 525 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rpl_srh_rcv() 536 n = (hdr->hdrlen << 3) - hdr->pad - (16 - hdr->cmpre); in ipv6_rpl_srh_rcv() 590 chdr = (struct ipv6_rpl_sr_hdr *)(buf + ((ohdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv() 615 skb_pull(skb, ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv() 617 sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv() 618 skb_push(skb, ((chdr->hdrlen + 1) << 3) + sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv() [all …]
|
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
D | pkcs7_parser.c | 204 int pkcs7_note_OID(void *context, size_t hdrlen, in pkcs7_note_OID() argument 223 int pkcs7_sig_note_digest_algo(void *context, size_t hdrlen, in pkcs7_sig_note_digest_algo() argument 261 int pkcs7_sig_note_pkey_algo(void *context, size_t hdrlen, in pkcs7_sig_note_pkey_algo() argument 282 int pkcs7_check_content_type(void *context, size_t hdrlen, in pkcs7_check_content_type() argument 299 int pkcs7_note_signeddata_version(void *context, size_t hdrlen, in pkcs7_note_signeddata_version() argument 333 int pkcs7_note_signerinfo_version(void *context, size_t hdrlen, in pkcs7_note_signerinfo_version() argument 376 int pkcs7_extract_cert(void *context, size_t hdrlen, in pkcs7_extract_cert() argument 394 value -= hdrlen; in pkcs7_extract_cert() 395 vlen += hdrlen; in pkcs7_extract_cert() 416 int pkcs7_note_certificate_list(void *context, size_t hdrlen, in pkcs7_note_certificate_list() argument [all …]
|
D | x509_cert_parser.c | 155 int x509_note_OID(void *context, size_t hdrlen, in x509_note_OID() argument 175 int x509_note_tbs_certificate(void *context, size_t hdrlen, in x509_note_tbs_certificate() argument 182 hdrlen, tag, (unsigned long)value - ctx->data, vlen); in x509_note_tbs_certificate() 184 ctx->cert->tbs = value - hdrlen; in x509_note_tbs_certificate() 185 ctx->cert->tbs_size = vlen + hdrlen; in x509_note_tbs_certificate() 192 int x509_note_pkey_algo(void *context, size_t hdrlen, in x509_note_pkey_algo() argument 263 int x509_note_signature(void *context, size_t hdrlen, in x509_note_signature() argument 296 int x509_note_serial(void *context, size_t hdrlen, in x509_note_serial() argument 309 int x509_extract_name_segment(void *context, size_t hdrlen, in x509_extract_name_segment() argument 338 static int x509_fabricate_name(struct x509_parse_context *ctx, size_t hdrlen, in x509_fabricate_name() argument [all …]
|
D | pkcs8_parser.c | 33 int pkcs8_note_OID(void *context, size_t hdrlen, in pkcs8_note_OID() argument 53 int pkcs8_note_version(void *context, size_t hdrlen, in pkcs8_note_version() argument 67 int pkcs8_note_algo(void *context, size_t hdrlen, in pkcs8_note_algo() argument 83 int pkcs8_note_key(void *context, size_t hdrlen, in pkcs8_note_key() argument
|
D | mscode_parser.c | 36 int mscode_note_content_type(void *context, size_t hdrlen, in mscode_note_content_type() argument 68 int mscode_note_digest_algo(void *context, size_t hdrlen, in mscode_note_digest_algo() argument 116 int mscode_note_digest(void *context, size_t hdrlen, in mscode_note_digest() argument
|
/kernel/linux/linux-5.10/crypto/ |
D | rsa_helper.c | 16 int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, in rsa_get_n() argument 46 int rsa_get_e(void *context, size_t hdrlen, unsigned char tag, in rsa_get_e() argument 61 int rsa_get_d(void *context, size_t hdrlen, unsigned char tag, in rsa_get_d() argument 76 int rsa_get_p(void *context, size_t hdrlen, unsigned char tag, in rsa_get_p() argument 91 int rsa_get_q(void *context, size_t hdrlen, unsigned char tag, in rsa_get_q() argument 106 int rsa_get_dp(void *context, size_t hdrlen, unsigned char tag, in rsa_get_dp() argument 121 int rsa_get_dq(void *context, size_t hdrlen, unsigned char tag, in rsa_get_dq() argument 136 int rsa_get_qinv(void *context, size_t hdrlen, unsigned char tag, in rsa_get_qinv() argument
|
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/ |
D | p80211hdr.h | 202 u16 hdrlen = 0; in p80211_headerlen() local 206 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen() 209 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen() 211 hdrlen += ETH_ALEN; in p80211_headerlen() 214 hdrlen = wlan_ctl_framelen(WLAN_GET_FC_FSTYPE(fctl)) - in p80211_headerlen() 218 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen() 221 return hdrlen; in p80211_headerlen()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 240 iv = pframe+pattrib->hdrlen; in rtw_wep_encrypt() 243 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt() 247 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 256 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 287 iv = pframe+prxattrib->hdrlen; in rtw_wep_decrypt() 294 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt() 296 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt() 690 iv = pframe+pattrib->hdrlen; in rtw_tkip_encrypt() 691 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_tkip_encrypt() 703 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | netlink.h | 588 int hdrlen) in nlmsg_attrdata() argument 591 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata() 599 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument 601 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 722 static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in __nlmsg_parse() argument 728 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) { in __nlmsg_parse() 733 return __nla_parse(tb, maxtype, nlmsg_attrdata(nlh, hdrlen), in __nlmsg_parse() 734 nlmsg_attrlen(nlh, hdrlen), policy, validate, in __nlmsg_parse() 748 static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse() argument 753 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, in nlmsg_parse() [all …]
|
/kernel/linux/linux-5.10/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() 186 skb_pull(skb, hdrlen + len); in cmtp_recv_frame()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 180 memmove(skb->data + 4, skb->data, pattrib->hdrlen); in rtw_wep_encrypt() 184 if (crypto_ops->encrypt_mpdu(skb, pattrib->hdrlen, crypto_private)) { in rtw_wep_encrypt() 220 memcpy(iv, pframe + prxattrib->hdrlen, 4); in rtw_wep_decrypt() 233 if (crypto_ops->decrypt_mpdu(skb, prxattrib->hdrlen, crypto_private)) { in rtw_wep_decrypt() 238 memmove(pframe, pframe + 4, prxattrib->hdrlen); in rtw_wep_decrypt() 242 memcpy(pframe + prxattrib->hdrlen, iv, 4); in rtw_wep_decrypt() 614 iv = pframe + pattrib->hdrlen; in rtw_tkip_encrypt() 615 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_tkip_encrypt() 625 length = pattrib->last_txcmdsz - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt() 635 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nf_nat_proto.c | 570 unsigned int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation() local 576 if (skb_ensure_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmp_reply_translation() 578 if (nf_ip_checksum(skb, hooknum, hdrlen, IPPROTO_ICMP)) in nf_nat_icmp_reply_translation() 581 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 601 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation() 607 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 610 csum_fold(skb_checksum(skb, hdrlen, in nf_nat_icmp_reply_translation() 611 skb->len - hdrlen, 0)); in nf_nat_icmp_reply_translation() 802 unsigned int hdrlen) in nf_nat_icmpv6_reply_translation() argument 815 if (skb_ensure_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmpv6_reply_translation() [all …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | fou.c | 89 void *data, size_t hdrlen, u8 ipproto, in gue_remcsum() argument 95 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum() 105 skb_remcsum_process(skb, (void *)guehdr + hdrlen, in gue_remcsum() 121 size_t len, optlen, hdrlen; in gue_udp_recv() local 178 hdrlen = sizeof(struct guehdr) + optlen; in gue_udp_recv() 200 hdrlen, guehdr->proto_ctype, in gue_udp_recv() 216 __skb_pull(skb, sizeof(struct udphdr) + hdrlen); in gue_udp_recv() 289 size_t hdrlen, struct gro_remcsum *grc, in gue_gro_remcsum() argument 302 guehdr = skb_gro_remcsum_process(skb, (void *)guehdr, off, hdrlen, in gue_gro_remcsum() 319 size_t len, optlen, hdrlen, off; in gue_gro_receive() local [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_rx.c | 68 int hdrlen, phdrlen, head_need, tail_need; in prism2_rx_80211() local 102 hdrlen = hostap_80211_get_hdrlen(fhdr->frame_control); in prism2_rx_80211() 195 skb_pull(skb, hdrlen); in prism2_rx_80211() 653 int res, hdrlen; in hostap_rx_frame_decrypt() local 659 hdrlen = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_rx_frame_decrypt() 672 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in hostap_rx_frame_decrypt() 691 int res, hdrlen; in hostap_rx_frame_decrypt_msdu() local 697 hdrlen = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_rx_frame_decrypt_msdu() 700 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu() 722 size_t hdrlen; in hostap_80211_rx() local [all …]
|