/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() 91 ((optinfo->hdrlen == hdrlen) ^ in hbh_mt6() 95 hdrlen -= 2; in hbh_mt6() 103 if (hdrlen < 1) in hbh_mt6() 123 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() 81 (!ahinfo->hdrlen || in ah_mt6() 82 (ahinfo->hdrlen == hdrlen) ^ in ah_mt6()
|
D | ip6t_rt.c | 43 unsigned int hdrlen = 0; in rt_mt6() local 62 hdrlen = ipv6_optlen(rh); in rt_mt6() 63 if (skb->len - ptr < hdrlen) { in rt_mt6() 68 pr_debug("IPv6 RT LEN %u %u ", hdrlen, rh->hdrlen); in rt_mt6() 82 rtinfo->hdrlen, hdrlen, in rt_mt6() 84 ((rtinfo->hdrlen == hdrlen) ^ in rt_mt6() 97 ((rtinfo->hdrlen == hdrlen) ^ in rt_mt6() 120 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() 128 temp < (unsigned int)((hdrlen - 8) / 16); in rt_mt6() 157 if (rtinfo->addrnr > (unsigned int)((hdrlen - 8) / 16)) { in rt_mt6() [all …]
|
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()
|
D | nf_log_ipv6.c | 46 unsigned int hdrlen = 0; in dump_ipv6_packet() local 113 hdrlen = 8; in dump_ipv6_packet() 125 hdrlen = ipv6_optlen(hp); in dump_ipv6_packet() 158 hdrlen = ipv6_authlen(hp); in dump_ipv6_packet() 198 ptr += hdrlen; in dump_ipv6_packet()
|
D | nf_conntrack_reasm.c | 401 int hdrlen; in find_prev_fhdr() local 417 hdrlen = ipv6_authlen(&hdr); in find_prev_fhdr() 419 hdrlen = ipv6_optlen(&hdr); in find_prev_fhdr() 425 len -= hdrlen; in find_prev_fhdr() 426 start += hdrlen; in find_prev_fhdr()
|
/net/mac80211/ |
D | wep.c | 72 unsigned int hdrlen; in ieee80211_wep_add_iv() local 80 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv() 82 memmove(newhdr, newhdr + IEEE80211_WEP_IV_LEN, hdrlen); in ieee80211_wep_add_iv() 87 return newhdr + hdrlen; in ieee80211_wep_add_iv() 89 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv() 90 return newhdr + hdrlen; in ieee80211_wep_add_iv() 99 unsigned int hdrlen; in ieee80211_wep_remove_iv() local 101 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_remove_iv() 102 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv() 201 unsigned int hdrlen; in ieee80211_wep_decrypt() local [all …]
|
D | wpa.c | 33 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() local 44 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() 45 if (skb->len < hdrlen) in ieee80211_tx_h_michael_mic_add() 48 data = skb->data + hdrlen; in ieee80211_tx_h_michael_mic_add() 49 data_len = skb->len - hdrlen; in ieee80211_tx_h_michael_mic_add() 98 unsigned int hdrlen; in ieee80211_rx_h_michael_mic_verify() local 150 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_michael_mic_verify() 151 if (skb->len < hdrlen + MICHAEL_MIC_LEN) in ieee80211_rx_h_michael_mic_verify() 158 data = skb->data + hdrlen; in ieee80211_rx_h_michael_mic_verify() 159 data_len = skb->len - hdrlen - MICHAEL_MIC_LEN; in ieee80211_rx_h_michael_mic_verify() [all …]
|
D | tx.c | 859 struct sk_buff *skb, int hdrlen, in ieee80211_fragment() argument 865 int per_fragm = frag_threshold - hdrlen - FCS_LEN; in ieee80211_fragment() 866 int pos = hdrlen + per_fragm; in ieee80211_fragment() 867 int rem = skb->len - hdrlen - per_fragm; in ieee80211_fragment() 907 skb_put_data(tmp, skb->data, hdrlen); in ieee80211_fragment() 914 skb_trim(skb, hdrlen + per_fragm); in ieee80211_fragment() 925 int hdrlen; in ieee80211_tx_h_fragment() local 946 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_fragment() 960 if (ieee80211_fragment(tx, skb, hdrlen, frag_threshold)) in ieee80211_tx_h_fragment() 2213 int hdrlen; in ieee80211_monitor_start_xmit() local [all …]
|
/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 | 114 int hdrlen, tot_len, err; in seg6_do_srh_encap() local 117 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_encap() 118 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap() 151 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_encap() 177 int hdrlen, err; in seg6_do_srh_inline() local 179 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_inline() 181 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline() 191 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline() 200 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_inline() 218 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in seg6_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() 534 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rthdr_rcv() 547 if (hdr->hdrlen != 2 || hdr->segments_left != 1) { in ipv6_rthdr_rcv() 563 n = hdr->hdrlen >> 1; in ipv6_rthdr_rcv() 875 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0() 878 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 899 plen = (sr_ihdr->hdrlen + 1) << 3; in ipv6_push_rthdr4() 911 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4() [all …]
|
D | seg6_local.c | 80 len = (srh->hdrlen + 1) << 3; in get_srh() 480 if ((srh_state->hdrlen & 7) != 0) in seg6_bpf_has_valid_srh() 483 srh->hdrlen = (u8)(srh_state->hdrlen >> 3); in seg6_bpf_has_valid_srh() 484 if (!seg6_validate_srh(srh, (srh->hdrlen + 1) << 3)) in seg6_bpf_has_valid_srh() 513 srh_state->hdrlen = srh->hdrlen << 3; in input_action_end_bpf() 678 len = (srh->hdrlen + 1) << 3; in put_nla_srh() 691 int len = (a->srh->hdrlen + 1) << 3; in cmp_nla_srh() 693 if (len != ((b->srh->hdrlen + 1) << 3)) in cmp_nla_srh() 1052 nlsize += nla_total_size((slwt->srh->hdrlen + 1) << 3); in seg6_local_get_encap_size()
|
D | datagram.c | 694 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in ip6_datagram_recv_specific_ctl() 849 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 869 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 894 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 924 if (rthdr->hdrlen != 2 || in ip6_datagram_send_ctl() 936 len = ((rthdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 944 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl() 953 int dsthdrlen = ((opt->dst1opt->hdrlen+1)<<3); in ip6_datagram_send_ctl()
|
/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()
|
/net/netfilter/ |
D | nf_nat_proto.c | 572 unsigned int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation() local 578 if (skb_ensure_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmp_reply_translation() 580 if (nf_ip_checksum(skb, hooknum, hdrlen, IPPROTO_ICMP)) in nf_nat_icmp_reply_translation() 583 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 603 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation() 609 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 612 csum_fold(skb_checksum(skb, hdrlen, in nf_nat_icmp_reply_translation() 613 skb->len - hdrlen, 0)); in nf_nat_icmp_reply_translation() 787 unsigned int hdrlen) in nf_nat_icmpv6_reply_translation() argument 800 if (skb_ensure_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmpv6_reply_translation() [all …]
|
/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 …]
|
D | inet_diag.c | 1066 int hdrlen = sizeof(struct inet_diag_req_v2); in inet_diag_dump() local 1069 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump() 1070 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump() 1091 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_dump_compat() local 1101 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump_compat() 1102 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump_compat() 1124 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_rcv_msg_compat() local 1128 nlmsg_len(nlh) < hdrlen) in inet_diag_rcv_msg_compat() 1132 if (nlmsg_attrlen(nlh, hdrlen)) { in inet_diag_rcv_msg_compat() 1136 attr = nlmsg_find_attr(nlh, hdrlen, in inet_diag_rcv_msg_compat() [all …]
|
/net/wireless/ |
D | util.c | 375 unsigned int hdrlen = 24; in ieee80211_hdrlen() local 379 hdrlen = 30; in ieee80211_hdrlen() 381 hdrlen += IEEE80211_QOS_CTL_LEN; in ieee80211_hdrlen() 383 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen() 390 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen() 405 hdrlen = 10; in ieee80211_hdrlen() 407 hdrlen = 16; in ieee80211_hdrlen() 410 return hdrlen; in ieee80211_hdrlen() 418 unsigned int hdrlen; in ieee80211_get_hdrlen_from_skb() local 422 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_get_hdrlen_from_skb() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 165 make_checksum_hmac_md5(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum_hmac_md5() argument 223 sg_init_one(sg, header, hdrlen); in make_checksum_hmac_md5() 224 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum_hmac_md5() 276 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum() argument 288 return make_checksum_hmac_md5(kctx, header, hdrlen, in make_checksum() 324 sg_init_one(sg, header, hdrlen); in make_checksum() 325 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum() 373 make_checksum_v2(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum_v2() argument 420 sg_init_one(sg, header, hdrlen); in make_checksum_v2() 421 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum_v2()
|
/net/xfrm/ |
D | xfrm_output.c | 146 int hdrlen, optlen; in xfrm4_beet_encap_add() local 148 hdrlen = 0; in xfrm4_beet_encap_add() 151 hdrlen += IPV4_BEET_PHMAXLEN - (optlen & 4); in xfrm4_beet_encap_add() 153 skb_set_network_header(skb, -x->props.header_len - hdrlen + in xfrm4_beet_encap_add() 163 ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); in xfrm4_beet_encap_add() 172 ph->hdrlen = optlen / 8; in xfrm4_beet_encap_add() 298 ph->hdrlen = optlen / 8; in xfrm6_beet_encap_add()
|
/net/tipc/ |
D | diag.c | 79 int hdrlen = sizeof(struct tipc_sock_diag_req); in tipc_sock_diag_handler_dump() local 82 if (nlmsg_len(h) < hdrlen) in tipc_sock_diag_handler_dump()
|
/net/netlink/ |
D | genetlink.c | 511 int hdrlen, err; in genl_family_rcv_msg() local 517 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg() 518 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in genl_family_rcv_msg() 540 int hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg() local 542 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in genl_family_rcv_msg() 551 rc = __nla_validate(nlmsg_attrdata(nlh, hdrlen), in genl_family_rcv_msg() 552 nlmsg_attrlen(nlh, hdrlen), in genl_family_rcv_msg() 607 err = __nlmsg_parse(nlh, hdrlen, attrbuf, family->maxattr, in genl_family_rcv_msg()
|
/net/vmw_vsock/ |
D | diag.c | 143 int hdrlen = sizeof(struct vsock_diag_req); in vsock_diag_handler_dump() local 146 if (nlmsg_len(h) < hdrlen) in vsock_diag_handler_dump()
|