Home
last modified time | relevance | path

Searched refs:hdrlen (Results 1 – 25 of 201) sorted by relevance

123456789

/linux/net/ipv6/netfilter/
A Dip6t_hbh.c51 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 …]
A Dip6t_ah.c42 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()
A Dip6t_rt.c38 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()
A Dip6t_srh.c29 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()
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()
154 !(srh->hdrlen > srhinfo->hdr_len))) in srh1_mt6()
[all …]
A Dip6t_ipv6header.c48 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()
/linux/drivers/staging/r8188eu/core/
A Drtw_security.c45 iv = pframe + pattrib->hdrlen; in rtw_wep_encrypt()
987 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) in aes_cipher()
995 hdrlen += 2; in aes_cipher()
998 hdrlen += 2; in aes_cipher()
1053 payload_index = hdrlen + 8; in aes_cipher()
1194 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) in aes_decipher()
1203 hdrlen += 2; in aes_decipher()
1207 hdrlen += 2; in aes_decipher()
1293 payload_index = hdrlen + 8; in aes_decipher()
1331 if (pframe[hdrlen + 8 + plen - 8 + i] != message[hdrlen + 8 + plen - 8 + i]) { in aes_decipher()
[all …]
/linux/drivers/staging/rtl8723bs/core/
A Drtw_security.c65 iv = pframe+pattrib->hdrlen; in rtw_wep_encrypt()
110 iv = pframe+prxattrib->hdrlen; in rtw_wep_decrypt()
895 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) in aes_cipher()
905 hdrlen += 2; in aes_cipher()
913 hdrlen += 2; in aes_cipher()
936 hdrlen, in aes_cipher()
983 payload_index = hdrlen + 8; in aes_cipher()
1121 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) in aes_decipher()
1131 hdrlen += 2; in aes_decipher()
1139 hdrlen += 2; in aes_decipher()
[all …]
/linux/net/mac80211/
A Dwep.c70 unsigned int hdrlen; in ieee80211_wep_add_iv() local
78 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv()
85 return 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()
199 unsigned int hdrlen; in ieee80211_wep_decrypt() local
206 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_decrypt()
212 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt()
220 memcpy(rc4key, skb->data + hdrlen, 3); in ieee80211_wep_decrypt()
[all …]
A Dwpa.c34 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() local
46 if (skb->len < hdrlen) in ieee80211_tx_h_michael_mic_add()
99 unsigned int hdrlen; in ieee80211_rx_h_michael_mic_verify() local
199 unsigned int hdrlen; in tkip_encrypt_skb() local
225 pos += hdrlen; in tkip_encrypt_skb()
337 len_a = hdrlen - 2; in ccmp_special_blocks()
453 pos += hdrlen; in ccmp_encrypt_skb()
499 int hdrlen; in ieee80211_crypto_ccmp_decrypt() local
690 pos += hdrlen; in gcmp_encrypt_skb()
732 int hdrlen; in ieee80211_crypto_gcmp_decrypt() local
[all …]
/linux/drivers/staging/rtl8712/
A Drtl871x_security.c180 pattrib->hdrlen - in r8712_wep_encrypt()
593 pattrib->hdrlen; in r8712_tkip_encrypt()
616 pattrib->hdrlen - in r8712_tkip_encrypt()
664 prxattrib->hdrlen; in r8712_tkip_decrypt()
1043 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) in aes_cipher()
1053 hdrlen += 2; in aes_cipher()
1059 hdrlen += 2; in aes_cipher()
1164 pattrib->hdrlen - in r8712_aes_encrypt()
1224 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) in aes_decipher()
1233 hdrlen += 2; in aes_decipher()
[all …]
/linux/crypto/asymmetric_keys/
A Dpkcs7_parser.c204 int pkcs7_note_OID(void *context, size_t hdrlen, in pkcs7_note_OID() argument
384 int pkcs7_extract_cert(void *context, size_t hdrlen, in pkcs7_extract_cert() argument
402 value -= hdrlen; in pkcs7_extract_cert()
403 vlen += hdrlen; in pkcs7_extract_cert()
442 int pkcs7_note_content(void *context, size_t hdrlen, in pkcs7_note_content() argument
462 int pkcs7_note_data(void *context, size_t hdrlen, in pkcs7_note_data() argument
472 ctx->msg->data_hdrlen = hdrlen; in pkcs7_note_data()
509 hdrlen, tag, value, vlen); in pkcs7_sig_note_authenticated_attr()
582 sinfo->authattrs = value - (hdrlen - 1); in pkcs7_sig_note_set_of_authattrs()
583 sinfo->authattrs_len = vlen + (hdrlen - 1); in pkcs7_sig_note_set_of_authattrs()
[all …]
A Dx509_cert_parser.c155 int x509_note_OID(void *context, size_t hdrlen, in x509_note_OID() argument
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
322 int x509_note_serial(void *context, size_t hdrlen, in x509_note_serial() argument
439 int x509_note_issuer(void *context, size_t hdrlen, in x509_note_issuer() argument
449 int x509_note_subject(void *context, size_t hdrlen, in x509_note_subject() argument
462 int x509_note_params(void *context, size_t hdrlen, in x509_note_params() argument
475 ctx->params = value - hdrlen; in x509_note_params()
476 ctx->params_size = vlen + hdrlen; in x509_note_params()
[all …]
/linux/net/ipv6/
A Dexthdrs_core.c81 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 …]
A Dioam6_iptunnel.c148 tuninfo->eh.hdrlen = ((sizeof(*tuninfo) + len_aligned) >> 3) - 1; in ioam6_build_state()
190 int hdrlen, err; in ioam6_do_inline() local
192 hdrlen = (tuninfo->eh.hdrlen + 1) << 3; in ioam6_do_inline()
194 err = skb_cow_head(skb, hdrlen + skb->mac_len); in ioam6_do_inline()
202 skb_push(skb, sizeof(*oldhdr) + hdrlen); in ioam6_do_inline()
211 skb_postpush_rcsum(skb, hdr, sizeof(*hdr) + hdrlen); in ioam6_do_inline()
213 memcpy(skb_transport_header(skb), (u8 *)tuninfo, hdrlen); in ioam6_do_inline()
227 int hdrlen, len, err; in ioam6_do_encap() local
229 hdrlen = (tuninfo->eh.hdrlen + 1) << 3; in ioam6_do_encap()
230 len = sizeof(*hdr) + hdrlen; in ioam6_do_encap()
[all …]
A Dseg6_iptunnel.c45 return ((tuninfo->srh->hdrlen + 1) << 3) + head; in seg6_lwt_headroom()
132 int hdrlen, tot_len, err; in seg6_do_srh_encap() local
135 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_encap()
136 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap()
177 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_encap()
203 int hdrlen, err; in seg6_do_srh_inline() local
205 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_inline()
207 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline()
217 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
226 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_inline()
[all …]
A Drpl_iptunnel.c44 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()
A Dexthdrs.c395 int offset = (hdr->hdrlen + 1) << 3; in ipv6_srh_rcv()
420 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_srh_rcv()
426 if (hdr->segments_left >= (hdr->hdrlen >> 1)) { in ipv6_srh_rcv()
513 int offset = (hdr->hdrlen + 1) << 3; in ipv6_rpl_srh_rcv()
537 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rpl_srh_rcv()
627 skb_pull(skb, ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
742 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rthdr_rcv()
771 n = hdr->hdrlen >> 1; in ipv6_rthdr_rcv()
1118 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1139 plen = (sr_ihdr->hdrlen + 1) << 3; in ipv6_push_rthdr4()
[all …]
/linux/drivers/staging/wlan-ng/
A Dp80211hdr.h188 u16 hdrlen = 0; in p80211_headerlen() local
192 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen()
195 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen()
197 hdrlen += ETH_ALEN; in p80211_headerlen()
200 hdrlen = wlan_ctl_framelen(WLAN_GET_FC_FSTYPE(fctl)) - in p80211_headerlen()
204 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen()
207 return hdrlen; in p80211_headerlen()
/linux/crypto/
A Drsa_helper.c16 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
/linux/include/net/
A Dnetlink.h588 int hdrlen) in nlmsg_attrdata() argument
601 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
728 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) { in __nlmsg_parse()
734 nlmsg_attrlen(nlh, hdrlen), policy, validate, in __nlmsg_parse()
805 int hdrlen, int attrtype) in nlmsg_find_attr() argument
807 return nla_find(nlmsg_attrdata(nlh, hdrlen), in nlmsg_find_attr()
808 nlmsg_attrlen(nlh, hdrlen), attrtype); in nlmsg_find_attr()
866 int hdrlen, int maxtype, in nlmsg_validate_deprecated() argument
870 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in nlmsg_validate_deprecated()
874 nlmsg_attrlen(nlh, hdrlen), maxtype, in nlmsg_validate_deprecated()
[all …]
/linux/net/bluetooth/cmtp/
A Dcore.c134 __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()
/linux/net/netfilter/
A Dnf_nat_proto.c570 unsigned int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation() local
581 inside = (void *)skb->data + hdrlen; 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()
840 unsigned int hdrlen) in nf_nat_icmpv6_reply_translation() argument
858 inside = (void *)skb->data + hdrlen; in nf_nat_icmpv6_reply_translation()
890 skb_checksum(skb, hdrlen, in nf_nat_icmpv6_reply_translation()
891 skb->len - hdrlen, 0)); in nf_nat_icmpv6_reply_translation()
910 int hdrlen; in nf_nat_ipv6_fn() local
[all …]
/linux/drivers/net/wireless/intersil/hostap/
A Dhostap_80211_rx.c195 skb_pull(skb, hdrlen); in prism2_rx_80211()
653 int res, hdrlen; in hostap_rx_frame_decrypt() local
691 int res, hdrlen; in hostap_rx_frame_decrypt_msdu() local
722 size_t hdrlen; in hostap_80211_rx() local
782 if (skb->len >= hdrlen + 3) in hostap_80211_rx()
783 idx = skb->data[hdrlen + 3] >> 6; in hostap_80211_rx()
933 flen -= hdrlen; in hostap_80211_rx()
1007 payload = skb->data + hdrlen; in hostap_80211_rx()
1035 if (skb->len - hdrlen >= 8 && in hostap_80211_rx()
1041 skb_pull(skb, hdrlen + 6); in hostap_80211_rx()
[all …]
/linux/net/ipv4/
A Dfou.c121 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()
319 size_t len, optlen, hdrlen, off; in gue_gro_receive() local
371 hdrlen = sizeof(*guehdr) + optlen; in gue_gro_receive()
387 data + doffset, hdrlen, &grc, in gue_gro_receive()
400 skb_gro_pull(skb, hdrlen); in gue_gro_receive()
991 size_t hdrlen, optlen = 0; in __gue_build_header() local
1015 skb_push(skb, hdrlen); in __gue_build_header()
1038 if (csum_start < hdrlen) in __gue_build_header()
[all …]
/linux/drivers/net/wireless/intel/ipw2x00/
A Dlibipw_rx.c272 int res, hdrlen; in libipw_rx_frame_decrypt() local
304 int res, hdrlen; in libipw_rx_frame_decrypt_msdu() local
333 size_t hdrlen; in libipw_rx() local
365 if (skb->len < hdrlen) { in libipw_rx()
594 flen -= hdrlen; in libipw_rx()
666 if (skb->len >= hdrlen + 3) in libipw_rx()
677 hdrlen += 4; in libipw_rx()
683 hdrlen += 8; in libipw_rx()
689 hdrlen += 8; in libipw_rx()
700 if (skb->len < hdrlen) in libipw_rx()
[all …]

Completed in 51 milliseconds

123456789