/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 | 461 int hdr_len; /* Size of the event header */ in wireless_send_event() local 531 hdr_len = event_type_size[descr->header_type]; in wireless_send_event() 532 event_len = hdr_len + extra_len; in wireless_send_event() 577 memset(event, 0, hdr_len); in wireless_send_event() 580 memcpy(&event->u, ((char *) wrqu) + wrqu_off, hdr_len - IW_EV_LCP_LEN); in wireless_send_event() 582 memcpy(((char *) event) + hdr_len, extra, extra_len); in wireless_send_event() 586 hdr_len = compat_event_type_size[descr->header_type]; in wireless_send_event() 589 ptr_len = hdr_len - IW_EV_COMPAT_LCP_LEN; in wireless_send_event() 590 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() 357 struct ip_tunnel_net *itn, int hdr_len, bool raw_proto) in __ipgre_rcv() argument 370 if (__iptunnel_pull_header(skb, hdr_len, tpi->proto, in __ipgre_rcv() 405 int hdr_len) in ipgre_rcv() argument 416 res = __ipgre_rcv(skb, tpi, itn, hdr_len, false); in ipgre_rcv() 422 res = __ipgre_rcv(skb, tpi, itn, hdr_len, true); in ipgre_rcv() 431 int hdr_len; in gre_rcv() local 441 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IP), 0); in gre_rcv() 442 if (hdr_len < 0) in gre_rcv() 447 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 | 11 int hdr_len = skb_transport_offset(skb) + tso->tlen; in tso_build_hdr() local 14 memcpy(hdr, skb->data, hdr_len); in tso_build_hdr() 19 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr() 67 int hdr_len = skb_transport_offset(skb) + tlen; in tso_start() local 76 tso->size = skb_headlen(skb) - hdr_len; in tso_start() 77 tso->data = skb->data + hdr_len; in tso_start() 87 return hdr_len; in tso_start()
|
D | gso.c | 180 unsigned int hdr_len = skb_transport_header(skb) - in skb_gso_network_seglen() local 183 return hdr_len + skb_gso_transport_seglen(skb); in skb_gso_network_seglen() 197 unsigned int hdr_len = skb_transport_header(skb) - skb_mac_header(skb); in skb_gso_mac_seglen() local 199 return hdr_len + skb_gso_transport_seglen(skb); in skb_gso_mac_seglen()
|
D | sock_reuseport.c | 500 int hdr_len) in run_bpf_filter() argument 513 if (!pskb_pull(skb, hdr_len)) { in run_bpf_filter() 518 __skb_push(skb, hdr_len); in run_bpf_filter() 572 int hdr_len) in reuseport_select_sock() argument 598 sk2 = run_bpf_filter(reuse, socks, prog, skb, hdr_len); in reuseport_select_sock()
|
/net/xfrm/ |
D | xfrm_output.c | 168 int hdr_len; in xfrm6_transport_output() local 173 hdr_len = xfrm6_hdr_offset(x, skb, &prevhdr); in xfrm6_transport_output() 174 if (hdr_len < 0) in xfrm6_transport_output() 175 return hdr_len; in xfrm6_transport_output() 179 skb->transport_header = skb->network_header + hdr_len; in xfrm6_transport_output() 180 __skb_pull(skb, hdr_len); in xfrm6_transport_output() 181 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_transport_output() 199 int hdr_len; in xfrm6_ro_output() local 203 hdr_len = xfrm6_hdr_offset(x, skb, &prevhdr); in xfrm6_ro_output() 204 if (hdr_len < 0) in xfrm6_ro_output() [all …]
|
/net/ipv6/ |
D | ah6.c | 463 int hdr_len = skb_network_header_len(skb); in ah6_input_done() local 470 auth_data = ah_tmp_auth(work_iph, hdr_len); in ah6_input_done() 480 memcpy(skb_network_header(skb), work_iph, hdr_len); in ah6_input_done() 481 __skb_pull(skb, ah_hlen + hdr_len); in ah6_input_done() 485 skb_set_transport_header(skb, -hdr_len); in ah6_input_done() 520 u16 hdr_len; in ah6_input() local 540 hdr_len = skb_network_header_len(skb); in ah6_input() 563 skb_push(skb, hdr_len); in ah6_input() 570 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, hdr_len + in ah6_input() 577 auth_data = ah_tmp_auth((u8 *)work_iph, hdr_len); in ah6_input() [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() 787 struct sk_buff *skb, int hdr_len) in batadv_check_unicast_ttvn() argument 798 if (!pskb_may_pull(skb, hdr_len + ETH_HLEN)) in batadv_check_unicast_ttvn() 806 vid = batadv_get_vid(skb, hdr_len); in batadv_check_unicast_ttvn() 807 ethhdr = (struct ethhdr *)(skb->data + hdr_len); in batadv_check_unicast_ttvn()
|
/net/mctp/test/ |
D | route-test.c | 85 size_t hdr_len = sizeof(*hdr); in mctp_test_create_skb() local 90 skb = alloc_skb(hdr_len + data_len, GFP_KERNEL); in mctp_test_create_skb() 94 memcpy(skb_put(skb, hdr_len), hdr, hdr_len); in mctp_test_create_skb() 107 size_t hdr_len = sizeof(*hdr); in __mctp_test_create_skb_data() local 110 skb = alloc_skb(hdr_len + data_len, GFP_KERNEL); in __mctp_test_create_skb_data() 114 memcpy(skb_put(skb, hdr_len), hdr, hdr_len); in __mctp_test_create_skb_data()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 651 unsigned int hdr_len; in svc_rdma_xdr_decode_req() local 686 hdr_len = xdr_stream_pos(&rctxt->rc_stream); in svc_rdma_xdr_decode_req() 687 rq_arg->head[0].iov_len -= hdr_len; in svc_rdma_xdr_decode_req() 688 rq_arg->len -= hdr_len; in svc_rdma_xdr_decode_req() 689 trace_svcrdma_decode_rqst(rctxt, rdma_argp, hdr_len); in svc_rdma_xdr_decode_req() 690 return hdr_len; in svc_rdma_xdr_decode_req()
|
/net/l2tp/ |
D | l2tp_core.c | 1032 headroom = NET_SKB_PAD + sizeof(struct iphdr) + uhlen + session->hdr_len; in l2tp_xmit_core() 1040 l2tp_build_l2tpv2_header(session, __skb_push(skb, session->hdr_len)); in l2tp_xmit_core() 1042 l2tp_build_l2tpv3_header(session, __skb_push(skb, session->hdr_len)); in l2tp_xmit_core() 1085 udp_len = uhlen + session->hdr_len + data_len; in l2tp_xmit_core() 1580 session->hdr_len = 6; in l2tp_session_set_header_len() 1582 session->hdr_len += 4; in l2tp_session_set_header_len() 1584 session->hdr_len = 4 + session->cookie_len; in l2tp_session_set_header_len() 1585 session->hdr_len += l2tp_get_l2specific_len(session); in l2tp_session_set_header_len() 1587 session->hdr_len += 4; in l2tp_session_set_header_len()
|
D | l2tp_eth.c | 236 overhead += session->hdr_len + ETH_HLEN + l3_overhead; in l2tp_eth_adjust_mtu() 244 dev->needed_headroom += session->hdr_len; in l2tp_eth_adjust_mtu()
|
/net/mac80211/ |
D | mesh_pathtbl.c | 476 build.fast_tx.hdr_len = ieee80211_hdrlen(hdr->frame_control); in mesh_fast_tx_cache() 477 meshhdr = (struct ieee80211s_hdr *)(skb->data + build.fast_tx.hdr_len); in mesh_fast_tx_cache() 536 build.fast_tx.pn_offs = build.fast_tx.hdr_len; in mesh_fast_tx_cache() 538 build.fast_tx.hdr_len += IEEE80211_CCMP_HDR_LEN; in mesh_fast_tx_cache() 543 build.fast_tx.pn_offs = build.fast_tx.hdr_len; in mesh_fast_tx_cache() 545 build.fast_tx.hdr_len += IEEE80211_GCMP_HDR_LEN; in mesh_fast_tx_cache() 561 memcpy(build.fast_tx.hdr, hdr, build.fast_tx.hdr_len); in mesh_fast_tx_cache()
|
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()
|
D | tx.c | 3082 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3099 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3112 build.hdr_len = 30; in ieee80211_check_fast_xmit() 3120 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3131 build.hdr_len = 30; in ieee80211_check_fast_xmit() 3155 build.hdr_len = 24; in ieee80211_check_fast_xmit() 3163 build.hdr_len += 2; in ieee80211_check_fast_xmit() 3196 build.pn_offs = build.hdr_len; in ieee80211_check_fast_xmit() 3198 build.hdr_len += IEEE80211_CCMP_HDR_LEN; in ieee80211_check_fast_xmit() 3203 build.pn_offs = build.hdr_len; in ieee80211_check_fast_xmit() [all …]
|
/net/bluetooth/ |
D | coredump.c | 66 int hdr_len; in hci_devcd_mkheader() local 68 hdr_len = hci_devcd_update_hdr_state(hdr, sizeof(hdr), in hci_devcd_mkheader() 70 skb_put_data(skb, hdr, hdr_len); in hci_devcd_mkheader()
|
/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()
|