/net/wireless/ |
D | lib80211_crypt_wep.c | 63 static int lib80211_wep_build_iv(struct sk_buff *skb, int hdr_len, in lib80211_wep_build_iv() argument 70 if (skb_headroom(skb) < 4 || skb->len < hdr_len) in lib80211_wep_build_iv() 74 memmove(pos, pos + 4, hdr_len); in lib80211_wep_build_iv() 75 pos += hdr_len; in lib80211_wep_build_iv() 105 static int lib80211_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_wep_encrypt() argument 117 if (lib80211_wep_build_iv(skb, hdr_len, NULL, 0, priv)) in lib80211_wep_encrypt() 121 skb_copy_from_linear_data_offset(skb, hdr_len, key, 3); in lib80211_wep_encrypt() 126 len = skb->len - hdr_len - 4; in lib80211_wep_encrypt() 127 pos = skb->data + hdr_len + 4; in lib80211_wep_encrypt() 151 static int lib80211_wep_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_wep_decrypt() argument [all …]
|
D | lib80211_crypt_tkip.c | 283 static int lib80211_tkip_hdr(struct sk_buff *skb, int hdr_len, in lib80211_tkip_hdr() argument 292 if (skb_headroom(skb) < TKIP_HDR_LEN || skb->len < hdr_len) in lib80211_tkip_hdr() 306 memmove(pos, pos + TKIP_HDR_LEN, hdr_len); in lib80211_tkip_hdr() 307 pos += hdr_len; in lib80211_tkip_hdr() 327 static int lib80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_tkip_encrypt() argument 341 if (skb_tailroom(skb) < 4 || skb->len < hdr_len) in lib80211_tkip_encrypt() 344 len = skb->len - hdr_len; in lib80211_tkip_encrypt() 345 pos = skb->data + hdr_len; in lib80211_tkip_encrypt() 347 if ((lib80211_tkip_hdr(skb, hdr_len, rc4key, 16, priv)) < 0) in lib80211_tkip_encrypt() 376 static int lib80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_tkip_decrypt() argument [all …]
|
D | lib80211_crypt_ccmp.c | 153 static int lib80211_ccmp_hdr(struct sk_buff *skb, int hdr_len, in lib80211_ccmp_hdr() argument 160 if (skb_headroom(skb) < CCMP_HDR_LEN || skb->len < hdr_len) in lib80211_ccmp_hdr() 167 memmove(pos, pos + CCMP_HDR_LEN, hdr_len); in lib80211_ccmp_hdr() 168 pos += hdr_len; in lib80211_ccmp_hdr() 190 static int lib80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_ccmp_encrypt() argument 201 if (skb_tailroom(skb) < CCMP_MIC_LEN || skb->len < hdr_len) in lib80211_ccmp_encrypt() 204 data_len = skb->len - hdr_len; in lib80211_ccmp_encrypt() 205 len = lib80211_ccmp_hdr(skb, hdr_len, NULL, 0, priv); in lib80211_ccmp_encrypt() 220 sg_set_buf(&sg[1], skb->data + hdr_len + CCMP_HDR_LEN, in lib80211_ccmp_encrypt() 254 static int lib80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_ccmp_decrypt() argument [all …]
|
D | wext-core.c | 460 int hdr_len; /* Size of the event header */ in wireless_send_event() local 530 hdr_len = event_type_size[descr->header_type]; in wireless_send_event() 531 event_len = hdr_len + extra_len; in wireless_send_event() 576 memset(event, 0, hdr_len); in wireless_send_event() 579 memcpy(&event->u, ((char *) wrqu) + wrqu_off, hdr_len - IW_EV_LCP_LEN); in wireless_send_event() 581 memcpy(((char *) event) + hdr_len, extra, extra_len); in wireless_send_event() 585 hdr_len = compat_event_type_size[descr->header_type]; in wireless_send_event() 588 ptr_len = hdr_len - IW_EV_COMPAT_LCP_LEN; in wireless_send_event() 589 event_len = hdr_len + extra_len; in wireless_send_event()
|
/net/ipv4/ |
D | gre_demux.c | 67 int hdr_len; in gre_parse_header() local 77 hdr_len = gre_calc_hlen(tpi->flags); in gre_parse_header() 79 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header() 117 val = skb_header_pointer(skb, nhs + hdr_len, in gre_parse_header() 123 hdr_len += 4; in gre_parse_header() 125 tpi->hdr_len = hdr_len; in gre_parse_header() 131 if ((greh->protocol == htons(ETH_P_ERSPAN) && hdr_len != 4) || in gre_parse_header() 135 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header() 138 ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); in gre_parse_header() 142 return hdr_len; in gre_parse_header()
|
D | ip_gre.c | 193 !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len, in ipgre_err() 352 struct ip_tunnel_net *itn, int hdr_len, bool raw_proto) in __ipgre_rcv() argument 365 if (__iptunnel_pull_header(skb, hdr_len, tpi->proto, in __ipgre_rcv() 400 int hdr_len) in ipgre_rcv() argument 411 res = __ipgre_rcv(skb, tpi, itn, hdr_len, false); in ipgre_rcv() 417 res = __ipgre_rcv(skb, tpi, itn, hdr_len, true); in ipgre_rcv() 426 int hdr_len; in gre_rcv() local 436 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IP), 0); in gre_rcv() 437 if (hdr_len < 0) in gre_rcv() 442 if (erspan_rcv(skb, &tpi, hdr_len) == PACKET_RCVD) in gre_rcv() [all …]
|
/net/802/ |
D | fc.c | 37 int hdr_len; in fc_header() local 47 hdr_len = sizeof(struct fch_hdr) + sizeof(struct fcllc); in fc_header() 48 fch = skb_push(skb, hdr_len); in fc_header() 57 hdr_len = sizeof(struct fch_hdr); in fc_header() 58 fch = skb_push(skb, hdr_len); in fc_header() 69 return hdr_len; in fc_header() 71 return -hdr_len; in fc_header()
|
/net/core/ |
D | tso.c | 19 int hdr_len = skb_transport_offset(skb) + tso->tlen; in tso_build_hdr() local 22 memcpy(hdr, skb->data, hdr_len); in tso_build_hdr() 27 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr() 75 int hdr_len = skb_transport_offset(skb) + tlen; in tso_start() local 84 tso->size = skb_headlen(skb) - hdr_len; in tso_start() 85 tso->data = skb->data + hdr_len; in tso_start() 95 return hdr_len; in tso_start()
|
D | sock_reuseport.c | 430 int hdr_len) in run_bpf_filter() argument 443 if (!pskb_pull(skb, hdr_len)) { in run_bpf_filter() 448 __skb_push(skb, hdr_len); in run_bpf_filter() 488 int hdr_len) in reuseport_select_sock() argument 514 sk2 = run_bpf_filter(reuse, socks, prog, skb, hdr_len); in reuseport_select_sock()
|
/net/xfrm/ |
D | xfrm_output.c | 167 int hdr_len; in xfrm6_transport_output() local 172 hdr_len = xfrm6_hdr_offset(x, skb, &prevhdr); in xfrm6_transport_output() 173 if (hdr_len < 0) in xfrm6_transport_output() 174 return hdr_len; in xfrm6_transport_output() 178 skb->transport_header = skb->network_header + hdr_len; in xfrm6_transport_output() 179 __skb_pull(skb, hdr_len); in xfrm6_transport_output() 180 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_transport_output() 198 int hdr_len; in xfrm6_ro_output() local 202 hdr_len = xfrm6_hdr_offset(x, skb, &prevhdr); in xfrm6_ro_output() 203 if (hdr_len < 0) in xfrm6_ro_output() [all …]
|
/net/ipv6/ |
D | ah6.c | 466 int hdr_len = skb_network_header_len(skb); in ah6_input_done() local 473 auth_data = ah_tmp_auth(work_iph, hdr_len); in ah6_input_done() 483 memcpy(skb_network_header(skb), work_iph, hdr_len); in ah6_input_done() 484 __skb_pull(skb, ah_hlen + hdr_len); in ah6_input_done() 488 skb_set_transport_header(skb, -hdr_len); in ah6_input_done() 523 u16 hdr_len; in ah6_input() local 543 hdr_len = skb_network_header_len(skb); in ah6_input() 566 skb_push(skb, hdr_len); in ah6_input() 573 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, hdr_len + in ah6_input() 580 auth_data = ah_tmp_auth((u8 *)work_iph, hdr_len); in ah6_input() [all …]
|
/net/sched/ |
D | sch_atm.c | 60 int hdr_len; member 205 int fd, error, hdr_len; in atm_tc_change() local 237 hdr_len = nla_len(tb[TCA_ATM_HDR]); in atm_tc_change() 240 hdr_len = RFC1483LLC_LEN; in atm_tc_change() 252 opt->nla_type, nla_len(opt), hdr_len); in atm_tc_change() 281 flow = kzalloc(sizeof(struct atm_flow_data) + hdr_len, GFP_KERNEL); in atm_tc_change() 311 flow->hdr_len = hdr_len; in atm_tc_change() 313 memcpy(flow->hdr, hdr, hdr_len); in atm_tc_change() 501 if (skb_headroom(skb) < flow->hdr_len) { in sch_atm_dequeue() 504 new = skb_realloc_headroom(skb, flow->hdr_len); in sch_atm_dequeue() [all …]
|
/net/ipv6/netfilter/ |
D | ip6t_srh.c | 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() 150 !(srh->hdrlen == srhinfo->hdr_len))) in srh1_mt6() 154 !(srh->hdrlen > srhinfo->hdr_len))) in srh1_mt6() 158 !(srh->hdrlen < srhinfo->hdr_len))) in srh1_mt6()
|
/net/batman-adv/ |
D | routing.c | 663 int res, hdr_len, ret = NET_RX_DROP; in batadv_route_unicast_packet() local 691 hdr_len = sizeof(struct batadv_unicast_4addr_packet); in batadv_route_unicast_packet() 694 hdr_len = sizeof(struct batadv_unicast_packet); in batadv_route_unicast_packet() 698 hdr_len = -1; in batadv_route_unicast_packet() 702 if (hdr_len > 0) in batadv_route_unicast_packet() 703 batadv_skb_set_priority(skb, hdr_len); in batadv_route_unicast_packet() 786 struct sk_buff *skb, int hdr_len) in batadv_check_unicast_ttvn() argument 797 if (!pskb_may_pull(skb, hdr_len + ETH_HLEN)) in batadv_check_unicast_ttvn() 805 vid = batadv_get_vid(skb, hdr_len); in batadv_check_unicast_ttvn() 806 ethhdr = (struct ethhdr *)(skb->data + hdr_len); in batadv_check_unicast_ttvn()
|
D | tvlv.c | 600 ssize_t hdr_len = sizeof(*unicast_tvlv_packet); in batadv_tvlv_unicast_send() local 608 skb = netdev_alloc_skb_ip_align(NULL, ETH_HLEN + hdr_len + tvlv_len); in batadv_tvlv_unicast_send()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 650 unsigned int hdr_len; in svc_rdma_xdr_decode_req() local 685 hdr_len = xdr_stream_pos(&rctxt->rc_stream); in svc_rdma_xdr_decode_req() 686 rq_arg->head[0].iov_len -= hdr_len; in svc_rdma_xdr_decode_req() 687 rq_arg->len -= hdr_len; in svc_rdma_xdr_decode_req() 688 trace_svcrdma_decode_rqst(rctxt, rdma_argp, hdr_len); in svc_rdma_xdr_decode_req() 689 return hdr_len; in svc_rdma_xdr_decode_req()
|
/net/l2tp/ |
D | l2tp_core.c | 1027 headroom = NET_SKB_PAD + sizeof(struct iphdr) + uhlen + session->hdr_len; in l2tp_xmit_core() 1035 l2tp_build_l2tpv2_header(session, __skb_push(skb, session->hdr_len)); in l2tp_xmit_core() 1037 l2tp_build_l2tpv3_header(session, __skb_push(skb, session->hdr_len)); in l2tp_xmit_core() 1074 udp_len = uhlen + session->hdr_len + data_len; in l2tp_xmit_core() 1571 session->hdr_len = 6; in l2tp_session_set_header_len() 1573 session->hdr_len += 4; in l2tp_session_set_header_len() 1575 session->hdr_len = 4 + session->cookie_len; in l2tp_session_set_header_len() 1576 session->hdr_len += l2tp_get_l2specific_len(session); in l2tp_session_set_header_len() 1578 session->hdr_len += 4; in l2tp_session_set_header_len()
|
D | l2tp_eth.c | 233 overhead += session->hdr_len + ETH_HLEN + l3_overhead; in l2tp_eth_adjust_mtu() 241 dev->needed_headroom += session->hdr_len; in l2tp_eth_adjust_mtu()
|
/net/caif/ |
D | cfsrvl.c | 122 info->hdr_len = 1; in cfservl_modemcmd() 143 info->hdr_len = 1; in cfservl_modemcmd()
|
D | cfveil.c | 95 info->hdr_len = 1; in cfvei_transmit()
|
D | cfdgml.c | 110 info->hdr_len = 4; in cfdgml_transmit()
|
D | cfutill.c | 101 info->hdr_len = 1; in cfutill_transmit()
|
/net/mac80211/ |
D | tx.c | 3003 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3011 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3024 build.hdr_len = 30; in ieee80211_check_fast_xmit() 3032 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3043 build.hdr_len = 30; in ieee80211_check_fast_xmit() 3053 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3061 build.hdr_len += 2; in ieee80211_check_fast_xmit() 3094 build.pn_offs = build.hdr_len; in ieee80211_check_fast_xmit() 3096 build.hdr_len += IEEE80211_CCMP_HDR_LEN; in ieee80211_check_fast_xmit() 3101 build.pn_offs = build.hdr_len; in ieee80211_check_fast_xmit() [all …]
|
D | mesh_hwmp.c | 112 int hdr_len = offsetofend(struct ieee80211_mgmt, in mesh_path_sel_frame_tx() local 116 hdr_len + in mesh_path_sel_frame_tx() 121 mgmt = skb_put_zero(skb, hdr_len); in mesh_path_sel_frame_tx() 243 int hdr_len = offsetofend(struct ieee80211_mgmt, in mesh_path_error_tx() local 252 hdr_len + in mesh_path_error_tx() 257 mgmt = skb_put_zero(skb, hdr_len); in mesh_path_error_tx()
|
/net/ethtool/ |
D | netlink.c | 353 int hdr_len, reply_len; in ethnl_default_doit() local 391 hdr_len = rskb->len; in ethnl_default_doit() 395 WARN_ONCE(rskb->len - hdr_len > reply_len, in ethnl_default_doit() 397 cmd, reply_len, rskb->len - hdr_len); in ethnl_default_doit()
|