Home
last modified time | relevance | path

Searched refs:first_len (Results 1 – 6 of 6) sorted by relevance

/net/sctp/
Dchunk.c152 size_t len, first_len, max_data, remaining; in sctp_datamsg_from_user() local
208 first_len = max_data; in sctp_datamsg_from_user()
220 first_len -= SCTP_PAD4(sizeof(struct sctp_sack_chunk)); in sctp_datamsg_from_user()
224 first_len -= SCTP_ARBITRARY_COOKIE_ECHO_LEN; in sctp_datamsg_from_user()
227 if (msg_len >= first_len) { in sctp_datamsg_from_user()
229 if (msg_len > first_len) in sctp_datamsg_from_user()
234 first_len = msg_len; in sctp_datamsg_from_user()
244 len = first_len; in sctp_datamsg_from_user()
/net/ipv6/
Dnetfilter.c154 unsigned int first_len = skb_pagelen(skb); in br_ip6_fragment() local
158 if (first_len - hlen > mtu || in br_ip6_fragment()
Dip6_output.c678 unsigned int first_len; in ip6_fraglist_init() local
706 first_len = skb_pagelen(skb); in ip6_fraglist_init()
707 skb->data_len = first_len - skb_headlen(skb); in ip6_fraglist_init()
708 skb->len = first_len; in ip6_fraglist_init()
709 ipv6_hdr(skb)->payload_len = htons(first_len - sizeof(struct ipv6hdr)); in ip6_fraglist_init()
894 unsigned int first_len = skb_pagelen(skb); in ip6_fragment() local
898 if (first_len - hlen > mtu || in ip6_fragment()
899 ((first_len - hlen) & 7) || in ip6_fragment()
/net/ipv4/
Dip_output.c602 unsigned int first_len = skb_pagelen(skb); in ip_fraglist_init() local
611 skb->data_len = first_len - skb_headlen(skb); in ip_fraglist_init()
612 skb->len = first_len; in ip_fraglist_init()
613 iph->tot_len = htons(first_len); in ip_fraglist_init()
820 unsigned int first_len = skb_pagelen(skb); in ip_do_fragment() local
822 if (first_len - hlen > mtu || in ip_do_fragment()
823 ((first_len - hlen) & 7) || in ip_do_fragment()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c58 unsigned int first_len = skb_pagelen(skb); in nf_br_ip_fragment() local
62 if (first_len - hlen > mtu || in nf_br_ip_fragment()
/net/xdp/
Dxsk.c130 u64 first_len = PAGE_SIZE - (addr - page_start); in __xsk_rcv_memcpy() local
132 memcpy(to_buf, from_buf, first_len); in __xsk_rcv_memcpy()
133 memcpy(next_pg_addr, from_buf + first_len, in __xsk_rcv_memcpy()
134 len + metalen - first_len); in __xsk_rcv_memcpy()