/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 | 191 unsigned int hdrlen) in nf_nat_icmpv6_reply_translation() argument 205 if (!skb_make_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmpv6_reply_translation() 207 if (nf_ip6_checksum(skb, hooknum, hdrlen, IPPROTO_ICMPV6)) in nf_nat_icmpv6_reply_translation() 210 inside = (void *)skb->data + hdrlen; in nf_nat_icmpv6_reply_translation() 231 if (!nf_nat_ipv6_manip_pkt(skb, hdrlen + sizeof(inside->icmp6), in nf_nat_icmpv6_reply_translation() 237 inside = (void *)skb->data + hdrlen; in nf_nat_icmpv6_reply_translation() 241 skb->len - hdrlen, IPPROTO_ICMPV6, in nf_nat_icmpv6_reply_translation() 243 skb->len - hdrlen, 0)); in nf_nat_icmpv6_reply_translation() 268 int hdrlen; in nf_nat_ipv6_fn() local 292 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 | 529 int hdrlen; in find_prev_fhdr() local 545 hdrlen = (hdr.hdrlen+2)<<2; in find_prev_fhdr() 547 hdrlen = ipv6_optlen(&hdr); in find_prev_fhdr() 553 len -= hdrlen; in find_prev_fhdr() 554 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 | 690 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in ip6_datagram_recv_specific_ctl() 834 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 854 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 879 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 909 if (rthdr->hdrlen != 2 || in ip6_datagram_send_ctl() 921 len = ((rthdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl() 929 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl() 938 int dsthdrlen = ((opt->dst1opt->hdrlen+1)<<3); in ip6_datagram_send_ctl()
|
D | exthdrs.c | 350 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rthdr_rcv() 363 if (hdr->hdrlen != 2 || hdr->segments_left != 1) { in ipv6_rthdr_rcv() 380 n = hdr->hdrlen >> 1; in ipv6_rthdr_rcv() 691 phdr = (struct rt0_hdr *) skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr() 694 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr()
|
D | mip6.c | 182 dstopt->hdrlen = (x->props.header_len >> 3) - 1; in mip6_destopt_output() 383 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output() 388 WARN_ON(rt2->rt_hdr.hdrlen != 2); in mip6_rthdr_output()
|
/net/mac80211/ |
D | wpa.c | 36 unsigned int hdrlen; in ieee80211_tx_h_michael_mic_add() local 47 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() 48 if (skb->len < hdrlen) in ieee80211_tx_h_michael_mic_add() 51 data = skb->data + hdrlen; in ieee80211_tx_h_michael_mic_add() 52 data_len = skb->len - hdrlen; in ieee80211_tx_h_michael_mic_add() 93 unsigned int hdrlen; in ieee80211_rx_h_michael_mic_verify() local 145 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_michael_mic_verify() 146 if (skb->len < hdrlen + MICHAEL_MIC_LEN) in ieee80211_rx_h_michael_mic_verify() 153 data = skb->data + hdrlen; in ieee80211_rx_h_michael_mic_verify() 154 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 | 862 struct sk_buff *skb, int hdrlen, in ieee80211_fragment() argument 868 int per_fragm = frag_threshold - hdrlen - FCS_LEN; in ieee80211_fragment() 869 int pos = hdrlen + per_fragm; in ieee80211_fragment() 870 int rem = skb->len - hdrlen - per_fragm; in ieee80211_fragment() 910 memcpy(skb_put(tmp, hdrlen), skb->data, hdrlen); in ieee80211_fragment() 917 skb_trim(skb, hdrlen + per_fragm); in ieee80211_fragment() 928 int hdrlen; in ieee80211_tx_h_fragment() local 949 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_fragment() 963 if (ieee80211_fragment(tx, skb, hdrlen, frag_threshold)) in ieee80211_tx_h_fragment() 2115 int hdrlen; in ieee80211_monitor_start_xmit() local [all …]
|
D | mesh_pathtbl.c | 108 int mesh_hdrlen, hdrlen; in prepare_for_gate() local 112 hdrlen = ieee80211_hdrlen(hdr->frame_control); in prepare_for_gate() 113 mshdr = (struct ieee80211s_hdr *) (skb->data + hdrlen); in prepare_for_gate() 121 memmove(skb->data, hdr, hdrlen + mesh_hdrlen); in prepare_for_gate() 127 mshdr = (struct ieee80211s_hdr *) (skb->data + hdrlen); in prepare_for_gate()
|
/net/wireless/ |
D | util.c | 348 unsigned int hdrlen = 24; in ieee80211_hdrlen() local 352 hdrlen = 30; in ieee80211_hdrlen() 354 hdrlen += IEEE80211_QOS_CTL_LEN; in ieee80211_hdrlen() 356 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen() 363 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen() 378 hdrlen = 10; in ieee80211_hdrlen() 380 hdrlen = 16; in ieee80211_hdrlen() 383 return hdrlen; in ieee80211_hdrlen() 391 unsigned int hdrlen; in ieee80211_get_hdrlen_from_skb() local 395 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 | 86 void *data, size_t hdrlen, u8 ipproto, in gue_remcsum() argument 92 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum() 102 skb_remcsum_process(skb, (void *)guehdr + hdrlen, in gue_remcsum() 118 size_t len, optlen, hdrlen; in gue_udp_recv() local 171 hdrlen = sizeof(struct guehdr) + optlen; in gue_udp_recv() 176 hdrlen = sizeof(struct guehdr) + optlen; in gue_udp_recv() 198 hdrlen, guehdr->proto_ctype, in gue_udp_recv() 213 __skb_pull(skb, sizeof(struct udphdr) + hdrlen); in gue_udp_recv() 286 size_t hdrlen, struct gro_remcsum *grc, in gue_gro_remcsum() argument 299 guehdr = skb_gro_remcsum_process(skb, (void *)guehdr, off, hdrlen, in gue_gro_remcsum() [all …]
|
D | inet_diag.c | 1008 int hdrlen = sizeof(struct inet_diag_req_v2); in inet_diag_dump() local 1011 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump() 1012 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump() 1033 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_dump_compat() local 1043 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump_compat() 1044 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump_compat() 1066 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_rcv_msg_compat() local 1070 nlmsg_len(nlh) < hdrlen) in inet_diag_rcv_msg_compat() 1074 if (nlmsg_attrlen(nlh, hdrlen)) { in inet_diag_rcv_msg_compat() 1078 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() 186 skb_pull(skb, hdrlen + len); in cmtp_recv_frame()
|
/net/ipv4/netfilter/ |
D | nf_nat_l3proto_ipv4.c | 188 unsigned int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation() local 195 if (!skb_make_writable(skb, hdrlen + sizeof(*inside))) in nf_nat_icmp_reply_translation() 197 if (nf_ip_checksum(skb, hooknum, hdrlen, 0)) in nf_nat_icmp_reply_translation() 200 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 221 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation() 227 inside = (void *)skb->data + hdrlen; in nf_nat_icmp_reply_translation() 230 csum_fold(skb_checksum(skb, hdrlen, in nf_nat_icmp_reply_translation() 231 skb->len - hdrlen, 0)); in nf_nat_icmp_reply_translation()
|
/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 219 sg_init_one(sg, header, hdrlen); in make_checksum_hmac_md5() 220 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum_hmac_md5() 270 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum() argument 282 return make_checksum_hmac_md5(kctx, header, hdrlen, in make_checksum() 318 sg_init_one(sg, header, hdrlen); in make_checksum() 319 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum() 367 make_checksum_v2(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum_v2() argument 416 sg_init_one(sg, header, hdrlen); in make_checksum_v2() 417 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum_v2()
|
/net/netlink/ |
D | diag.c | 204 int hdrlen = sizeof(struct netlink_diag_req); in netlink_diag_handler_dump() local 207 if (nlmsg_len(h) < hdrlen) in netlink_diag_handler_dump()
|
/net/sunrpc/xprtrdma/ |
D | rpc_rdma.c | 620 u32 hdrlen, struct xdr_buf *xdr, in rpcrdma_prepare_send_sges() argument 626 if (!rpcrdma_prepare_hdr_sge(ia, req, hdrlen)) in rpcrdma_prepare_send_sges() 670 ssize_t hdrlen; in rpcrdma_marshal_req() local 769 hdrlen = (unsigned char *)iptr - (unsigned char *)headerp; in rpcrdma_marshal_req() 774 hdrlen, rpclen); in rpcrdma_marshal_req() 776 if (!rpcrdma_prepare_send_sges(&r_xprt->rx_ia, req, hdrlen, in rpcrdma_marshal_req()
|