/net/core/ |
D | flow_dissector.c | 83 void *data, int hlen) in __skb_flow_get_ports() argument 89 hlen = skb_headlen(skb); in __skb_flow_get_ports() 96 sizeof(_ports), data, hlen, &_ports); in __skb_flow_get_ports() 124 void *data, __be16 proto, int nhoff, int hlen, in __skb_flow_dissect() argument 140 hlen = skb_headlen(skb); in __skb_flow_dissect() 174 iph = __skb_header_pointer(skb, nhoff, sizeof(_iph), data, hlen, &_iph); in __skb_flow_dissect() 214 iph = __skb_header_pointer(skb, nhoff, sizeof(_iph), data, hlen, &_iph); in __skb_flow_dissect() 260 vlan = __skb_header_pointer(skb, nhoff, sizeof(_vlan), data, hlen, &_vlan); in __skb_flow_dissect() 282 hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr); in __skb_flow_dissect() 301 hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr); in __skb_flow_dissect() [all …]
|
D | datagram.c | 707 int hlen, struct msghdr *msg) in skb_copy_and_csum_datagram_msg() argument 710 int chunk = skb->len - hlen; in skb_copy_and_csum_datagram_msg() 718 if (skb_copy_datagram_msg(skb, hlen, msg, chunk)) in skb_copy_and_csum_datagram_msg() 721 csum = csum_partial(skb->data, hlen, skb->csum); in skb_copy_and_csum_datagram_msg() 722 if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter, in skb_copy_and_csum_datagram_msg()
|
/net/ipv4/ |
D | gre_offload.c | 125 unsigned int hlen, grehlen; in gre_gro_receive() local 137 hlen = off + sizeof(*greh); in gre_gro_receive() 139 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 140 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive() 177 hlen = off + grehlen; in gre_gro_receive() 178 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 179 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
|
D | tcp_offload.c | 188 unsigned int hlen; in tcp_gro_receive() local 194 hlen = off + sizeof(*th); in tcp_gro_receive() 196 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 197 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive() 206 hlen = off + thlen; in tcp_gro_receive() 207 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 208 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
|
D | ip_tunnel.c | 311 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev() local 313 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev() 341 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev() 345 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev() 449 int hlen = -EINVAL; in ip_encap_hlen() local 460 hlen = ops->encap_hlen(e); in ip_encap_hlen() 463 return hlen; in ip_encap_hlen() 502 int hlen; in ip_tunnel_encap_setup() local 506 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup() 507 if (hlen < 0) in ip_tunnel_encap_setup() [all …]
|
D | raw.c | 89 int hlen; member 350 int hlen, tlen; in raw_send_hdrinc() local 363 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc() 366 length + hlen + tlen + 15, in raw_send_hdrinc() 370 skb_reserve(skb, hlen); in raw_send_hdrinc() 446 rfv->hlen = 2; in raw_probe_proto_opt() 448 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt() 463 if (offset < rfv->hlen) { in raw_getfrag() 464 int copy = min(rfv->hlen - offset, len); in raw_getfrag() 484 offset -= rfv->hlen; in raw_getfrag() [all …]
|
D | ip_output.c | 544 unsigned int mtu, hlen, left, len, ll_rs; in ip_do_fragment() local 571 hlen = iph->ihl * 4; in ip_do_fragment() 572 mtu = mtu - hlen; /* Size of data space */ in ip_do_fragment() 586 if (first_len - hlen > mtu || in ip_do_fragment() 587 ((first_len - hlen) & 7) || in ip_do_fragment() 596 skb_headroom(frag) < hlen) in ip_do_fragment() 629 __skb_push(frag, hlen); in ip_do_fragment() 631 memcpy(skb_network_header(frag), iph, hlen); in ip_do_fragment() 637 offset += skb->len - hlen; in ip_do_fragment() 683 left = skb->len - hlen; /* Space per frame */ in ip_do_fragment() [all …]
|
D | fou.c | 130 optlen = guehdr->hlen << 2; in gue_udp_recv() 300 optlen = guehdr->hlen << 2; in gue_gro_receive() 363 if (guehdr->hlen && memcmp(&guehdr[1], &guehdr2[1], in gue_gro_receive() 364 guehdr->hlen << 2)) { in gue_gro_receive() 410 guehlen = sizeof(*guehdr) + (guehdr->hlen << 2); in gue_gro_complete() 875 guehdr->hlen = optlen >> 2; in gue_build_header()
|
D | ip_gre.c | 623 (tunnel->hlen + sizeof(struct iphdr)))) in ipgre_xmit() 631 skb_pull(skb, tunnel->hlen + sizeof(struct iphdr)); in ipgre_xmit() 745 iph = (struct iphdr *)skb_push(skb, t->hlen + sizeof(*iph)); in ipgre_header() 758 return t->hlen + sizeof(*iph); in ipgre_header() 760 return -(t->hlen + sizeof(*iph)); in ipgre_header() 851 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init() 853 t_hlen = tunnel->hlen + sizeof(struct iphdr); in __gre_tunnel_init()
|
D | ipconfig.c | 628 u8 hlen; /* HW address length */ member 822 int hlen = LL_RESERVED_SPACE(dev); in ic_bootp_send_if() local 826 skb = alloc_skb(sizeof(struct bootp_pkt) + hlen + tlen + 15, in ic_bootp_send_if() 830 skb_reserve(skb, hlen); in ic_bootp_send_if() 864 b->hlen = dev->addr_len; in ic_bootp_send_if()
|
/net/mac802154/ |
D | iface.c | 380 int hlen; in ieee802154_header_create() local 412 hlen = ieee802154_hdr_push(skb, &hdr); in ieee802154_header_create() 413 if (hlen < 0) in ieee802154_header_create() 417 skb->mac_len = hlen; in ieee802154_header_create() 422 return hlen; in ieee802154_header_create() 446 int hlen; in mac802154_header_create() local 474 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create() 475 if (hlen < 0) in mac802154_header_create() 479 skb->mac_len = hlen; in mac802154_header_create() 484 return hlen; in mac802154_header_create()
|
D | rx.c | 137 int hlen; in ieee802154_parse_frame_start() local 142 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start() 143 if (hlen < 0) in ieee802154_parse_frame_start() 146 skb->mac_len = hlen; in ieee802154_parse_frame_start()
|
D | llsec.c | 703 int rc, authlen, hlen; in mac802154_llsec_encrypt() local 707 hlen = ieee802154_hdr_pull(skb, &hdr); in mac802154_llsec_encrypt() 709 if (hlen < 0 || hdr.fc.type != IEEE802154_FC_TYPE_DATA) in mac802154_llsec_encrypt() 713 skb_push(skb, hlen); in mac802154_llsec_encrypt() 719 if (skb->len + hlen + authlen + IEEE802154_MFR_SIZE > IEEE802154_MTU) in mac802154_llsec_encrypt()
|
/net/ipv6/ |
D | ip6_output.c | 578 unsigned int mtu, hlen, left, len, nexthdr_offset; in ip6_fragment() local 587 hlen = err; in ip6_fragment() 613 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in ip6_fragment() 615 mtu -= hlen + sizeof(struct frag_hdr); in ip6_fragment() 630 if (first_len - hlen > mtu || in ip6_fragment() 631 ((first_len - hlen) & 7) || in ip6_fragment() 640 skb_headroom(frag) < (hlen + hroom + sizeof(struct frag_hdr))) in ip6_fragment() 660 tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fragment() 668 __skb_pull(skb, hlen); in ip6_fragment() 670 __skb_push(skb, hlen); in ip6_fragment() [all …]
|
D | raw.c | 628 int hlen = LL_RESERVED_SPACE(rt->dst.dev); in rawv6_send_hdrinc() local 641 length + hlen + tlen + 15, in rawv6_send_hdrinc() 645 skb_reserve(skb, hlen); in rawv6_send_hdrinc() 686 int hlen; member 695 rfv->hlen = 2; in rawv6_probe_proto_opt() 696 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt() 703 rfv->hlen = 4; in rawv6_probe_proto_opt() 704 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt() 716 if (offset < rfv->hlen) { in raw6_getfrag() 717 int copy = min(rfv->hlen - offset, len); in raw6_getfrag() [all …]
|
D | ip6_offload.c | 178 unsigned int hlen; in ipv6_gro_receive() local 184 hlen = off + sizeof(*iph); in ipv6_gro_receive() 186 if (skb_gro_header_hard(skb, hlen)) { in ipv6_gro_receive() 187 iph = skb_gro_header_slow(skb, hlen, off); in ipv6_gro_receive()
|
/net/ieee802154/ |
D | header_ops.c | 317 int hlen = ieee802154_hdr_minlen(hdr); in ieee802154_max_payload() local 320 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload() 321 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload() 324 return IEEE802154_MTU - hlen - IEEE802154_MFR_SIZE; in ieee802154_max_payload()
|
D | socket.c | 255 int hlen, tlen; in raw_sendmsg() local 285 hlen = LL_RESERVED_SPACE(dev); in raw_sendmsg() 287 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in raw_sendmsg() 292 skb_reserve(skb, hlen); in raw_sendmsg() 617 int hlen, tlen; in dgram_sendmsg() local 649 hlen = LL_RESERVED_SPACE(dev); in dgram_sendmsg() 651 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in dgram_sendmsg() 657 skb_reserve(skb, hlen); in dgram_sendmsg()
|
/net/ethernet/ |
D | eth.c | 407 unsigned int hlen, off_eth; in eth_gro_receive() local 413 hlen = off_eth + sizeof(*eh); in eth_gro_receive() 415 if (skb_gro_header_hard(skb, hlen)) { in eth_gro_receive() 416 eh = skb_gro_header_slow(skb, hlen, off_eth); in eth_gro_receive()
|
/net/llc/ |
D | llc_sap.c | 50 int hlen = type == LLC_PDU_TYPE_U ? 3 : 4; in llc_alloc_frame() local 53 hlen += llc_mac_header_len(dev->type); in llc_alloc_frame() 54 skb = alloc_skb(hlen + data_size, GFP_ATOMIC); in llc_alloc_frame() 58 skb_reserve(skb, hlen); in llc_alloc_frame()
|
/net/hsr/ |
D | hsr_device.c | 268 int hlen, tlen; in send_hsr_supervision_frame() local 273 hlen = LL_RESERVED_SPACE(master->dev); in send_hsr_supervision_frame() 275 skb = alloc_skb(hsr_pad(sizeof(struct hsr_sup_payload)) + hlen + tlen, in send_hsr_supervision_frame() 281 skb_reserve(skb, hlen); in send_hsr_supervision_frame()
|
/net/xfrm/ |
D | xfrm_input.c | 131 int hlen; in xfrm_parse_spi() local 135 hlen = sizeof(struct ip_auth_hdr); in xfrm_parse_spi() 140 hlen = sizeof(struct ip_esp_hdr); in xfrm_parse_spi() 154 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
|
/net/netfilter/ |
D | nfnetlink_queue.c | 305 unsigned int hlen = 0; in nfqnl_build_packet_message() local 360 hlen = skb_zerocopy_headlen(entskb); in nfqnl_build_packet_message() 361 hlen = min_t(unsigned int, hlen, data_len); in nfqnl_build_packet_message() 362 size += sizeof(struct nlattr) + hlen; in nfqnl_build_packet_message() 364 rem_len = data_len - hlen; in nfqnl_build_packet_message() 533 if (skb_tailroom(skb) < sizeof(*nla) + hlen) in nfqnl_build_packet_message() 540 if (skb_zerocopy(skb, entskb, data_len, hlen)) in nfqnl_build_packet_message()
|
/net/8021q/ |
D | vlan.c | 627 unsigned int hlen, off_vlan; in vlan_gro_receive() local 633 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive() 635 if (skb_gro_header_hard(skb, hlen)) { in vlan_gro_receive() 636 vhdr = skb_gro_header_slow(skb, hlen, off_vlan); in vlan_gro_receive()
|
/net/decnet/ |
D | dn_nsp_out.c | 301 …*dn_mk_ack_header(struct sock *sk, struct sk_buff *skb, unsigned char msgflag, int hlen, int other) in dn_mk_ack_header() argument 308 BUG_ON(hlen < 9); in dn_mk_ack_header() 325 ptr = dn_mk_common_header(scp, skb, msgflag, hlen); in dn_mk_ack_header()
|