Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 58) sorted by relevance

123

/net/core/
Dflow_dissector.c117 const void *data, int hlen) in __skb_flow_get_ports() argument
123 hlen = skb_headlen(skb); in __skb_flow_get_ports()
130 sizeof(_ports), data, hlen, &_ports); in __skb_flow_get_ports()
164 const void *data, int thoff, int hlen) in skb_flow_get_icmp_tci() argument
168 ih = __skb_header_pointer(skb, thoff, sizeof(_ih), data, hlen, &_ih); in skb_flow_get_icmp_tci()
191 int thoff, int hlen) in __skb_flow_dissect_icmp() argument
202 skb_flow_get_icmp_tci(skb, key_icmp, data, thoff, hlen); in __skb_flow_dissect_icmp()
414 int hlen, int lse_index, bool *entropy_label) in __skb_flow_dissect_mpls() argument
428 hlen, &_hdr); in __skb_flow_dissect_mpls()
472 int nhoff, int hlen) in __skb_flow_dissect_arp() argument
[all …]
Ddatagram.c749 int hlen, struct msghdr *msg) in skb_copy_and_csum_datagram_msg() argument
752 int chunk = skb->len - hlen; in skb_copy_and_csum_datagram_msg()
760 if (skb_copy_datagram_msg(skb, hlen, msg, chunk)) in skb_copy_and_csum_datagram_msg()
763 csum = csum_partial(skb->data, hlen, skb->csum); in skb_copy_and_csum_datagram_msg()
764 if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter, in skb_copy_and_csum_datagram_msg()
/net/ipv6/
Dnetfilter.c133 unsigned int mtu, hlen; in br_ip6_fragment() local
140 hlen = err; in br_ip6_fragment()
149 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment()
151 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment()
166 if (first_len - hlen > mtu || in br_ip6_fragment()
175 skb_headroom(frag2) < (hlen + hroom + sizeof(struct frag_hdr))) in br_ip6_fragment()
183 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in br_ip6_fragment()
215 ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, in br_ip6_fragment()
Dip6_output.c665 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument
674 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init()
682 iter->hlen = hlen; in ip6_fraglist_init()
686 __skb_pull(skb, hlen); in ip6_fraglist_init()
688 __skb_push(skb, hlen); in ip6_fraglist_init()
690 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init()
710 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local
716 __skb_push(frag, hlen); in ip6_fraglist_prepare()
718 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare()
719 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare()
[all …]
Draw.c632 int hlen = LL_RESERVED_SPACE(rt->dst.dev); in rawv6_send_hdrinc() local
645 length + hlen + tlen + 15, in rawv6_send_hdrinc()
649 skb_reserve(skb, hlen); in rawv6_send_hdrinc()
714 int hlen; member
723 rfv->hlen = 2; in rawv6_probe_proto_opt()
724 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
731 rfv->hlen = 4; in rawv6_probe_proto_opt()
732 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
744 if (offset < rfv->hlen) { in raw6_getfrag()
745 int copy = min(rfv->hlen - offset, len); in raw6_getfrag()
[all …]
Dip6_offload.c193 unsigned int hlen; in ipv6_gro_receive() local
199 hlen = off + sizeof(*iph); in ipv6_gro_receive()
201 if (skb_gro_header_hard(skb, hlen)) { in ipv6_gro_receive()
202 iph = skb_gro_header_slow(skb, hlen, off); in ipv6_gro_receive()
/net/ipv4/
Dgre_offload.c126 unsigned int hlen, grehlen; in gre_gro_receive() local
138 hlen = off + sizeof(*greh); in gre_gro_receive()
140 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive()
141 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
178 hlen = off + grehlen; in gre_gro_receive()
179 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive()
180 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
Dip_output.c597 unsigned int hlen, struct ip_fraglist_iter *iter) in ip_fraglist_init() argument
606 iter->hlen = hlen; in ip_fraglist_init()
618 unsigned int hlen = iter->hlen; in ip_fraglist_prepare() local
625 __skb_push(frag, hlen); in ip_fraglist_prepare()
627 memcpy(skb_network_header(frag), iph, hlen); in ip_fraglist_prepare()
632 iter->offset += skb->len - hlen; in ip_fraglist_prepare()
641 void ip_frag_init(struct sk_buff *skb, unsigned int hlen, in ip_frag_init() argument
648 state->hlen = hlen; in ip_frag_init()
652 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init()
653 state->ptr = hlen; /* Where to start from */ in ip_frag_init()
[all …]
Dtcp_offload.c190 unsigned int hlen; in tcp_gro_receive() local
196 hlen = off + sizeof(*th); in tcp_gro_receive()
198 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive()
199 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
208 hlen = off + thlen; in tcp_gro_receive()
209 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive()
210 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
Dip_tunnel.c284 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev() local
286 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev()
315 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev()
319 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev()
348 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create()
464 int hlen; in ip_tunnel_encap_setup() local
468 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup()
469 if (hlen < 0) in ip_tunnel_encap_setup()
470 return hlen; in ip_tunnel_encap_setup()
477 t->encap_hlen = hlen; in ip_tunnel_encap_setup()
[all …]
Draw.c85 int hlen; member
356 int hlen, tlen; in raw_send_hdrinc() local
369 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc()
372 length + hlen + tlen + 15, in raw_send_hdrinc()
376 skb_reserve(skb, hlen); in raw_send_hdrinc()
456 rfv->hlen = 2; in raw_probe_proto_opt()
458 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt()
473 if (offset < rfv->hlen) { in raw_getfrag()
474 int copy = min(rfv->hlen - offset, len); in raw_getfrag()
494 offset -= rfv->hlen; in raw_getfrag()
[all …]
Dip_gre.c637 int pull_len = tunnel->hlen + sizeof(struct iphdr); in ipgre_xmit()
763 tunnel->hlen = tunnel->hlen + len; in ipgre_link_update()
858 iph = skb_push(skb, t->hlen + sizeof(*iph)); in ipgre_header()
871 return t->hlen + sizeof(*iph); in ipgre_header()
873 return -(t->hlen + sizeof(*iph)); in ipgre_header()
964 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
965 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init()
1009 dev->hard_header_len = tunnel->hlen + sizeof(*iph); in ipgre_tunnel_init()
1015 dev->hard_header_len = tunnel->hlen + sizeof(*iph); in ipgre_tunnel_init()
1309 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen + in erspan_tunnel_init()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c35 unsigned int hlen, ll_rs, mtu; in nf_br_ip_fragment() local
52 hlen = iph->ihl * 4; in nf_br_ip_fragment()
53 frag_max_size -= hlen; in nf_br_ip_fragment()
62 if (first_len - hlen > mtu || in nf_br_ip_fragment()
71 skb_headroom(frag) < hlen + ll_rs) in nf_br_ip_fragment()
78 ip_fraglist_init(skb, iph, hlen, &iter); in nf_br_ip_fragment()
104 ip_frag_init(skb, hlen, ll_rs, frag_max_size, false, &state); in nf_br_ip_fragment()
/net/mac802154/
Diface.c372 int hlen; in ieee802154_header_create() local
404 hlen = ieee802154_hdr_push(skb, &hdr); in ieee802154_header_create()
405 if (hlen < 0) in ieee802154_header_create()
409 skb->mac_len = hlen; in ieee802154_header_create()
414 return hlen; in ieee802154_header_create()
438 int hlen; in mac802154_header_create() local
466 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create()
467 if (hlen < 0) in mac802154_header_create()
471 skb->mac_len = hlen; in mac802154_header_create()
476 return hlen; in mac802154_header_create()
Drx.c134 int hlen; in ieee802154_parse_frame_start() local
139 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start()
140 if (hlen < 0) in ieee802154_parse_frame_start()
143 skb->mac_len = hlen; in ieee802154_parse_frame_start()
/net/sched/
Dsch_frag.c52 unsigned int hlen = skb_network_offset(skb); in sch_frag_prepare_frag() local
65 data->l2_len = hlen; in sch_frag_prepare_frag()
66 memcpy(&data->l2_data, skb->data, hlen); in sch_frag_prepare_frag()
69 skb_pull(skb, hlen); in sch_frag_prepare_frag()
/net/ieee802154/
Dheader_ops.c309 int hlen = ieee802154_hdr_minlen(hdr); in ieee802154_max_payload() local
312 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload()
313 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload()
316 return IEEE802154_MTU - hlen - IEEE802154_MFR_SIZE; in ieee802154_max_payload()
Dsocket.c246 int hlen, tlen; in raw_sendmsg() local
280 hlen = LL_RESERVED_SPACE(dev); in raw_sendmsg()
282 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in raw_sendmsg()
287 skb_reserve(skb, hlen); in raw_sendmsg()
617 int hlen, tlen; in dgram_sendmsg() local
659 hlen = LL_RESERVED_SPACE(dev); in dgram_sendmsg()
661 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in dgram_sendmsg()
667 skb_reserve(skb, hlen); in dgram_sendmsg()
/net/tipc/
Dmsg.c625 int hlen, dlen; in tipc_msg_reverse() local
631 hlen = msg_hdr_sz(_hdr); in tipc_msg_reverse()
639 if (hlen == SHORT_H_SIZE) in tipc_msg_reverse()
640 hlen = BASIC_H_SIZE; in tipc_msg_reverse()
647 *skb = tipc_buf_acquire(hlen + dlen, GFP_ATOMIC); in tipc_msg_reverse()
651 memcpy((*skb)->data + hlen, msg_data(_hdr), dlen); in tipc_msg_reverse()
655 msg_set_hdr_sz(hdr, hlen); in tipc_msg_reverse()
663 msg_set_size(hdr, hlen + dlen); in tipc_msg_reverse()
/net/llc/
Dllc_sap.c51 int hlen = type == LLC_PDU_TYPE_U ? 3 : 4; in llc_alloc_frame() local
54 hlen += llc_mac_header_len(dev->type); in llc_alloc_frame()
55 skb = alloc_skb(hlen + data_size, GFP_ATOMIC); in llc_alloc_frame()
59 skb_reserve(skb, hlen); in llc_alloc_frame()
/net/ethernet/
Deth.c407 unsigned int hlen, off_eth; in eth_gro_receive() local
415 hlen = off_eth + sizeof(*eh); in eth_gro_receive()
417 if (skb_gro_header_hard(skb, hlen)) { in eth_gro_receive()
418 eh = skb_gro_header_slow(skb, hlen, off_eth); in eth_gro_receive()
/net/hsr/
Dhsr_device.c241 int hlen, tlen; in hsr_init_skb() local
243 hlen = LL_RESERVED_SPACE(master->dev); in hsr_init_skb()
250 sizeof(struct hsr_sup_payload) + hlen + tlen); in hsr_init_skb()
255 skb_reserve(skb, hlen); in hsr_init_skb()
/net/8021q/
Dvlan_core.c468 unsigned int hlen, off_vlan; in vlan_gro_receive() local
476 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive()
478 if (skb_gro_header_hard(skb, hlen)) { in vlan_gro_receive()
479 vhdr = skb_gro_header_slow(skb, hlen, off_vlan); in vlan_gro_receive()
/net/mctp/
Droute.c602 const unsigned int hlen = sizeof(struct mctp_hdr); in mctp_do_fragment_route() local
613 if (mtu < hlen + 1) { in mctp_do_fragment_route()
619 skb_pull(skb, hlen); in mctp_do_fragment_route()
623 size = min(mtu - hlen, skb->len - pos); in mctp_do_fragment_route()
625 skb2 = alloc_skb(MCTP_HEADER_MAXLEN + hlen + size, GFP_KERNEL); in mctp_do_fragment_route()
643 skb_put(skb2, hlen + size); in mctp_do_fragment_route()
644 skb2->transport_header = skb2->network_header + hlen; in mctp_do_fragment_route()
/net/ncsi/
Dncsi-cmd.c280 int hlen = LL_RESERVED_SPACE(dev); in ncsi_alloc_command() local
283 int len = hlen + tlen; in ncsi_alloc_command()
309 skb_reserve(skb, hlen); in ncsi_alloc_command()

123