Home
last modified time | relevance | path

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

12

/net/ipv6/netfilter/
Dip6t_hbh.c54 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 …]
Dip6t_ah.c45 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()
Dip6t_rt.c46 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 …]
Dip6t_ipv6header.c51 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()
Dnf_nat_l3proto_ipv6.c191 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()
242 skb_checksum(skb, hdrlen, 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
[all …]
Dnf_log_ipv6.c49 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()
Dnf_conntrack_reasm.c413 int hdrlen; in find_prev_fhdr() local
429 hdrlen = (hdr.hdrlen+2)<<2; in find_prev_fhdr()
431 hdrlen = ipv6_optlen(&hdr); in find_prev_fhdr()
437 len -= hdrlen; in find_prev_fhdr()
438 start += hdrlen; in find_prev_fhdr()
/net/ipv6/
Dexthdrs_core.c80 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 …]
Dseg6_iptunnel.c101 int hdrlen, tot_len, err; in seg6_do_srh_encap() local
103 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_encap()
104 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap()
136 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_encap()
162 int hdrlen, err; in seg6_do_srh_inline() local
164 hdrlen = (osrh->hdrlen + 1) << 3; in seg6_do_srh_inline()
166 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline()
176 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
185 memcpy(isrh, osrh, hdrlen); in seg6_do_srh_inline()
203 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
Dexthdrs.c355 int offset = (hdr->hdrlen + 1) << 3; in ipv6_srh_rcv()
379 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_srh_rcv()
385 if (hdr->segments_left >= (hdr->hdrlen >> 1)) { in ipv6_srh_rcv()
509 skb->transport_header += (hdr->hdrlen + 1) << 3; in ipv6_rthdr_rcv()
522 if (hdr->hdrlen != 2 || hdr->segments_left != 1) { in ipv6_rthdr_rcv()
539 n = hdr->hdrlen >> 1; in ipv6_rthdr_rcv()
851 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0()
854 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
875 plen = (sr_ihdr->hdrlen + 1) << 3; in ipv6_push_rthdr4()
887 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4()
[all …]
Ddatagram.c704 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in ip6_datagram_recv_specific_ctl()
854 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl()
874 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl()
899 len = ((hdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl()
929 if (rthdr->hdrlen != 2 || in ip6_datagram_send_ctl()
941 len = ((rthdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl()
949 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl()
958 int dsthdrlen = ((opt->dst1opt->hdrlen+1)<<3); in ip6_datagram_send_ctl()
Dseg6_local.c76 len = (srh->hdrlen + 1) << 3; in get_srh()
578 len = (srh->hdrlen + 1) << 3; in put_nla_srh()
591 int len = (a->srh->hdrlen + 1) << 3; in cmp_nla_srh()
593 if (len != ((b->srh->hdrlen + 1) << 3)) in cmp_nla_srh()
870 nlsize += nla_total_size((slwt->srh->hdrlen + 1) << 3); in seg6_local_get_encap_size()
/net/mac80211/
Dwpa.c36 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 …]
Dwep.c96 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 …]
Dtx.c859 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()
2125 int hdrlen; in ieee80211_monitor_start_xmit() local
[all …]
Dmesh_pathtbl.c108 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/ipv4/
Dxfrm4_mode_beet.c43 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()
60 ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); in xfrm4_beet_output()
68 ph->hdrlen = optlen / 8; in xfrm4_beet_output()
99 optlen = ph->hdrlen * 8 + (IPV4_BEET_PHMAXLEN - phlen); in xfrm4_beet_input()
Dfou.c87 void *data, size_t hdrlen, u8 ipproto, in gue_remcsum() argument
93 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum()
103 skb_remcsum_process(skb, (void *)guehdr + hdrlen, in gue_remcsum()
119 size_t len, optlen, hdrlen; in gue_udp_recv() local
173 hdrlen = sizeof(struct guehdr) + optlen; in gue_udp_recv()
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()
[all …]
Dinet_diag.c1059 int hdrlen = sizeof(struct inet_diag_req_v2); in inet_diag_dump() local
1062 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump()
1063 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump()
1084 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_dump_compat() local
1094 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump_compat()
1095 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump_compat()
1117 int hdrlen = sizeof(struct inet_diag_req); in inet_diag_rcv_msg_compat() local
1121 nlmsg_len(nlh) < hdrlen) in inet_diag_rcv_msg_compat()
1125 if (nlmsg_attrlen(nlh, hdrlen)) { in inet_diag_rcv_msg_compat()
1129 attr = nlmsg_find_attr(nlh, hdrlen, in inet_diag_rcv_msg_compat()
[all …]
Dah4.c215 ah->hdrlen = (XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
217 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
274 int ah_hlen = (ah->hdrlen + 2) << 2; in ah_input_done()
331 ah_hlen = (ah->hdrlen + 2) << 2; in ah_input()
/net/wireless/
Dutil.c349 unsigned int hdrlen = 24; in ieee80211_hdrlen() local
353 hdrlen = 30; in ieee80211_hdrlen()
355 hdrlen += IEEE80211_QOS_CTL_LEN; in ieee80211_hdrlen()
357 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen()
364 hdrlen += IEEE80211_HT_CTL_LEN; in ieee80211_hdrlen()
379 hdrlen = 10; in ieee80211_hdrlen()
381 hdrlen = 16; in ieee80211_hdrlen()
384 return hdrlen; in ieee80211_hdrlen()
392 unsigned int hdrlen; in ieee80211_get_hdrlen_from_skb() local
396 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_get_hdrlen_from_skb()
[all …]
/net/bluetooth/cmtp/
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()
/net/ipv4/netfilter/
Dnf_nat_l3proto_ipv4.c188 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/
Dgss_krb5_crypto.c165 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
422 sg_init_one(sg, header, hdrlen); in make_checksum_v2()
423 ahash_request_set_crypt(req, sg, NULL, hdrlen); in make_checksum_v2()
/net/netlink/
Ddiag.c229 int hdrlen = sizeof(struct netlink_diag_req); in netlink_diag_handler_dump() local
232 if (nlmsg_len(h) < hdrlen) in netlink_diag_handler_dump()

12