/net/wireless/ |
D | lib80211_crypt_wep.c | 87 static int lib80211_wep_build_iv(struct sk_buff *skb, int hdr_len, in lib80211_wep_build_iv() argument 94 if (skb_headroom(skb) < 4 || skb->len < hdr_len) in lib80211_wep_build_iv() 98 memmove(pos, pos + 4, hdr_len); in lib80211_wep_build_iv() 99 pos += hdr_len; in lib80211_wep_build_iv() 129 static int lib80211_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_wep_encrypt() argument 144 if (lib80211_wep_build_iv(skb, hdr_len, NULL, 0, priv)) in lib80211_wep_encrypt() 148 skb_copy_from_linear_data_offset(skb, hdr_len, key, 3); in lib80211_wep_encrypt() 153 len = skb->len - hdr_len - 4; in lib80211_wep_encrypt() 154 pos = skb->data + hdr_len + 4; in lib80211_wep_encrypt() 182 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 | 302 static int lib80211_tkip_hdr(struct sk_buff *skb, int hdr_len, in lib80211_tkip_hdr() argument 311 if (skb_headroom(skb) < TKIP_HDR_LEN || skb->len < hdr_len) in lib80211_tkip_hdr() 325 memmove(pos, pos + TKIP_HDR_LEN, hdr_len); in lib80211_tkip_hdr() 326 pos += hdr_len; in lib80211_tkip_hdr() 346 static int lib80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_tkip_encrypt() argument 363 if (skb_tailroom(skb) < 4 || skb->len < hdr_len) in lib80211_tkip_encrypt() 366 len = skb->len - hdr_len; in lib80211_tkip_encrypt() 367 pos = skb->data + hdr_len; in lib80211_tkip_encrypt() 369 if ((lib80211_tkip_hdr(skb, hdr_len, rc4key, 16, priv)) < 0) in lib80211_tkip_encrypt() 402 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 | 181 static int lib80211_ccmp_hdr(struct sk_buff *skb, int hdr_len, in lib80211_ccmp_hdr() argument 188 if (skb_headroom(skb) < CCMP_HDR_LEN || skb->len < hdr_len) in lib80211_ccmp_hdr() 195 memmove(pos, pos + CCMP_HDR_LEN, hdr_len); in lib80211_ccmp_hdr() 196 pos += hdr_len; in lib80211_ccmp_hdr() 218 static int lib80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_ccmp_encrypt() argument 229 if (skb_tailroom(skb) < CCMP_MIC_LEN || skb->len < hdr_len) in lib80211_ccmp_encrypt() 232 data_len = skb->len - hdr_len; in lib80211_ccmp_encrypt() 233 len = lib80211_ccmp_hdr(skb, hdr_len, NULL, 0, priv); in lib80211_ccmp_encrypt() 237 pos = skb->data + hdr_len + CCMP_HDR_LEN; in lib80211_ccmp_encrypt() 285 static int lib80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_ccmp_decrypt() argument [all …]
|
D | wext-core.c | 462 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() 587 event_len = hdr_len + extra_len; in wireless_send_event() 619 hdr_len - IW_EV_COMPAT_LCP_LEN); in wireless_send_event() 621 memcpy(((char *) compat_event) + hdr_len, in wireless_send_event() [all …]
|
/net/ipv6/ |
D | xfrm6_mode_ro.c | 45 int hdr_len; in xfrm6_ro_output() local 49 hdr_len = x->type->hdr_offset(x, skb, &prevhdr); in xfrm6_ro_output() 50 if (hdr_len < 0) in xfrm6_ro_output() 51 return hdr_len; in xfrm6_ro_output() 54 skb->transport_header = skb->network_header + hdr_len; in xfrm6_ro_output() 55 __skb_pull(skb, hdr_len); in xfrm6_ro_output() 56 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_ro_output()
|
D | xfrm6_mode_transport.c | 27 int hdr_len; in xfrm6_transport_output() local 32 hdr_len = x->type->hdr_offset(x, skb, &prevhdr); in xfrm6_transport_output() 33 if (hdr_len < 0) in xfrm6_transport_output() 34 return hdr_len; in xfrm6_transport_output() 37 skb->transport_header = skb->network_header + hdr_len; in xfrm6_transport_output() 38 __skb_pull(skb, hdr_len); in xfrm6_transport_output() 39 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_transport_output()
|
D | ah6.c | 477 int hdr_len = skb_network_header_len(skb); in ah6_input_done() local 484 auth_data = ah_tmp_auth(work_iph, hdr_len); in ah6_input_done() 494 memcpy(skb_network_header(skb), work_iph, hdr_len); in ah6_input_done() 495 __skb_pull(skb, ah_hlen + hdr_len); in ah6_input_done() 499 skb_set_transport_header(skb, -hdr_len); in ah6_input_done() 534 u16 hdr_len; in ah6_input() local 554 hdr_len = skb_network_header_len(skb); in ah6_input() 577 skb_push(skb, hdr_len); in ah6_input() 584 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, hdr_len + in ah6_input() 591 auth_data = ah_tmp_auth((u8 *)work_iph, hdr_len); in ah6_input() [all …]
|
D | xfrm6_mode_beet.c | 44 int optlen, hdr_len; in xfrm6_beet_output() local 46 hdr_len = 0; in xfrm6_beet_output() 49 hdr_len += IPV4_BEET_PHMAXLEN - (optlen & 4); in xfrm6_beet_output() 51 skb_set_network_header(skb, -x->props.header_len - hdr_len); in xfrm6_beet_output() 57 ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdr_len); in xfrm6_beet_output()
|
/net/802/ |
D | fc.c | 41 int hdr_len; in fc_header() local 51 hdr_len = sizeof(struct fch_hdr) + sizeof(struct fcllc); in fc_header() 52 fch = skb_push(skb, hdr_len); in fc_header() 61 hdr_len = sizeof(struct fch_hdr); in fc_header() 62 fch = skb_push(skb, hdr_len); in fc_header() 73 return hdr_len; in fc_header() 75 return -hdr_len; in fc_header()
|
/net/ipv4/ |
D | gre_demux.c | 71 int hdr_len; in gre_parse_header() local 81 hdr_len = gre_calc_hlen(tpi->flags); in gre_parse_header() 83 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header() 121 val = skb_header_pointer(skb, nhs + hdr_len, in gre_parse_header() 127 hdr_len += 4; in gre_parse_header() 129 tpi->hdr_len = hdr_len; in gre_parse_header() 130 return hdr_len; in gre_parse_header()
|
D | ip_gre.c | 194 !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len, in ipgre_err() 330 struct ip_tunnel_net *itn, int hdr_len, bool raw_proto) in __ipgre_rcv() argument 341 if (__iptunnel_pull_header(skb, hdr_len, tpi->proto, in __ipgre_rcv() 371 int hdr_len) in ipgre_rcv() argument 382 res = __ipgre_rcv(skb, tpi, itn, hdr_len, false); in ipgre_rcv() 388 res = __ipgre_rcv(skb, tpi, itn, hdr_len, true); in ipgre_rcv() 397 int hdr_len; in gre_rcv() local 407 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IP), 0); in gre_rcv() 408 if (hdr_len < 0) in gre_rcv() 412 if (erspan_rcv(skb, &tpi, hdr_len) == PACKET_RCVD) in gre_rcv() [all …]
|
D | ip_tunnel_core.c | 101 int __iptunnel_pull_header(struct sk_buff *skb, int hdr_len, in __iptunnel_pull_header() argument 104 if (unlikely(!pskb_may_pull(skb, hdr_len))) in __iptunnel_pull_header() 107 skb_pull_rcsum(skb, hdr_len); in __iptunnel_pull_header()
|
/net/core/ |
D | tso.c | 20 int hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in tso_build_hdr() local 23 memcpy(hdr, skb->data, hdr_len); in tso_build_hdr() 28 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr() 67 int hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in tso_start() local 75 tso->size = skb_headlen(skb) - hdr_len; in tso_start() 76 tso->data = skb->data + hdr_len; in tso_start()
|
D | sock_reuseport.c | 180 int hdr_len) in run_bpf() argument 193 if (!pskb_pull(skb, hdr_len)) { in run_bpf() 198 __skb_push(skb, hdr_len); in run_bpf() 221 int hdr_len) in reuseport_select_sock() argument 242 sk2 = run_bpf(reuse, socks, prog, skb, hdr_len); in reuseport_select_sock()
|
/net/sched/ |
D | sch_atm.c | 59 int hdr_len; member 202 int fd, error, hdr_len; in atm_tc_change() local 233 hdr_len = nla_len(tb[TCA_ATM_HDR]); in atm_tc_change() 236 hdr_len = RFC1483LLC_LEN; in atm_tc_change() 248 opt->nla_type, nla_len(opt), hdr_len); in atm_tc_change() 277 flow = kzalloc(sizeof(struct atm_flow_data) + hdr_len, GFP_KERNEL); in atm_tc_change() 305 flow->hdr_len = hdr_len; in atm_tc_change() 307 memcpy(flow->hdr, hdr, hdr_len); in atm_tc_change() 490 if (skb_headroom(skb) < flow->hdr_len) { in sch_atm_dequeue() 493 new = skb_realloc_headroom(skb, flow->hdr_len); in sch_atm_dequeue() [all …]
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 295 unsigned int hdr_len; in svc_rdma_xdr_decode_req() local 338 hdr_len = (unsigned long)p - (unsigned long)rdma_argp; in svc_rdma_xdr_decode_req() 339 rq_arg->head[0].iov_len -= hdr_len; in svc_rdma_xdr_decode_req() 340 rq_arg->len -= hdr_len; in svc_rdma_xdr_decode_req() 342 proc, be32_to_cpup(rdma_argp), hdr_len); in svc_rdma_xdr_decode_req() 343 return hdr_len; in svc_rdma_xdr_decode_req()
|
/net/batman-adv/ |
D | routing.c | 678 int res, hdr_len, ret = NET_RX_DROP; in batadv_route_unicast_packet() local 706 hdr_len = sizeof(struct batadv_unicast_4addr_packet); in batadv_route_unicast_packet() 709 hdr_len = sizeof(struct batadv_unicast_packet); in batadv_route_unicast_packet() 713 hdr_len = -1; in batadv_route_unicast_packet() 717 if (hdr_len > 0) in batadv_route_unicast_packet() 718 batadv_skb_set_priority(skb, hdr_len); in batadv_route_unicast_packet() 803 struct sk_buff *skb, int hdr_len) in batadv_check_unicast_ttvn() argument 814 if (!pskb_may_pull(skb, hdr_len + ETH_HLEN)) in batadv_check_unicast_ttvn() 822 vid = batadv_get_vid(skb, hdr_len); in batadv_check_unicast_ttvn() 823 ethhdr = (struct ethhdr *)(skb->data + hdr_len); in batadv_check_unicast_ttvn()
|
/net/l2tp/ |
D | l2tp_eth.c | 83 int ret = l2tp_xmit_skb(session, skb, session->hdr_len); in l2tp_eth_dev_xmit() 213 dev->needed_headroom += session->hdr_len; in l2tp_eth_adjust_mtu() 230 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()
|
D | l2tp_core.c | 1155 int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len) in l2tp_xmit_skb() argument 1173 uhlen + hdr_len; in l2tp_xmit_skb() 1180 session->build_header(session, __skb_push(skb, hdr_len)); in l2tp_xmit_skb() 1218 udp_len = uhlen + hdr_len + data_len; in l2tp_xmit_skb() 1770 session->hdr_len = 6; in l2tp_session_set_header_len() 1772 session->hdr_len += 4; in l2tp_session_set_header_len() 1774 session->hdr_len = 4 + session->cookie_len; in l2tp_session_set_header_len() 1775 session->hdr_len += l2tp_get_l2specific_len(session); in l2tp_session_set_header_len() 1777 session->hdr_len += 4; in l2tp_session_set_header_len()
|
D | l2tp_core.h | 90 u16 hdr_len; member 270 int hdr_len);
|
/net/mac80211/ |
D | tx.c | 2823 build.hdr_len = 24; in ieee80211_check_fast_xmit() 2831 build.hdr_len = 24; in ieee80211_check_fast_xmit() 2844 build.hdr_len = 30; in ieee80211_check_fast_xmit() 2852 build.hdr_len = 24; in ieee80211_check_fast_xmit() 2863 build.hdr_len = 30; in ieee80211_check_fast_xmit() 2873 build.hdr_len = 24; in ieee80211_check_fast_xmit() 2881 build.hdr_len += 2; in ieee80211_check_fast_xmit() 2909 (build.hdr + build.hdr_len)[3] = in ieee80211_check_fast_xmit() 2911 build.pn_offs = build.hdr_len; in ieee80211_check_fast_xmit() 2914 build.hdr_len += IEEE80211_CCMP_HDR_LEN; in ieee80211_check_fast_xmit() [all …]
|
D | mesh_hwmp.c | 114 int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.mesh_action) + in mesh_path_sel_frame_tx() local 118 hdr_len + in mesh_path_sel_frame_tx() 123 mgmt = skb_put_zero(skb, hdr_len); in mesh_path_sel_frame_tx() 245 int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.mesh_action) + in mesh_path_error_tx() local 254 hdr_len + in mesh_path_error_tx() 259 mgmt = skb_put_zero(skb, hdr_len); in mesh_path_error_tx()
|
/net/caif/ |
D | cfsrvl.c | 123 info->hdr_len = 1; in cfservl_modemcmd() 144 info->hdr_len = 1; in cfservl_modemcmd()
|
D | cfveil.c | 95 info->hdr_len = 1; in cfvei_transmit()
|
/net/tipc/ |
D | msg.c | 587 int hdr_len; in tipc_msg_reassemble() local 592 hdr_len = skb_headroom(skb) + msg_hdr_sz(buf_msg(skb)); in tipc_msg_reassemble() 593 _skb = __pskb_copy(skb, hdr_len, GFP_ATOMIC); in tipc_msg_reassemble()
|