Home
last modified time | relevance | path

Searched refs:tot_len (Results 1 – 25 of 38) sorted by relevance

12

/net/ipv6/
A Dseg6_iptunnel.c135 int hdrlen, tot_len, err; in __seg6_do_srh_encap() local
139 tot_len = hdrlen + sizeof(*hdr); in __seg6_do_srh_encap()
141 err = skb_cow_head(skb, tot_len + dst_dev_overhead(cache_dst, skb)); in __seg6_do_srh_encap()
148 skb_push(skb, tot_len); in __seg6_do_srh_encap()
197 skb_postpush_rcsum(skb, hdr, tot_len); in __seg6_do_srh_encap()
224 int tot_len, err; in seg6_do_srh_encap_red() local
240 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
242 err = skb_cow_head(skb, tot_len + dst_dev_overhead(cache_dst, skb)); in seg6_do_srh_encap_red()
249 skb_push(skb, tot_len); in seg6_do_srh_encap_red()
324 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap_red()
A Dexthdrs.c1265 int tot_len = 0; in ipv6_renew_options() local
1271 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
1273 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
1275 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
1277 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
1281 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options()
1283 if (!tot_len) in ipv6_renew_options()
1286 tot_len += sizeof(*opt2); in ipv6_renew_options()
1287 opt2 = sock_kmalloc(sk, tot_len, GFP_ATOMIC); in ipv6_renew_options()
1291 memset(opt2, 0, tot_len); in ipv6_renew_options()
[all …]
A Dip6_flowlabel.c339 opt_space->tot_len = fopt->tot_len; in fl6_merge_options()
405 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create()
A Dcalipso.c788 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_opt_update()
1232 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1269 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
A Dtcp_ipv6.c872 unsigned int tot_len = sizeof(struct tcphdr); in tcp_v6_send_response() local
883 tot_len += TCPOLEN_TSTAMP_ALIGNED; in tcp_v6_send_response()
885 tot_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_v6_send_response()
887 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response()
894 tot_len += sizeof(__be32); in tcp_v6_send_response()
904 t1 = skb_push(buff, tot_len); in tcp_v6_send_response()
911 t1->doff = tot_len / 4; in tcp_v6_send_response()
A Dipv6_sockglue.c367 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in ipv6_set_opt_hdr()
838 opt->tot_len = sizeof(*opt) + optlen; in do_ipv6_setsockopt()
856 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt()
A Dping.c128 opt.tot_len = sizeof(opt); in ping_v6_sendmsg()
/net/ipv4/netfilter/
A Dnf_reject_ipv4.c27 len = ntohs(iph->tot_len); in nf_reject_iphdr_validate()
67 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_tcp_reset()
100 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nf_reject_skb_v4_unreach()
132 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_unreach()
298 niph->tot_len = htons(nskb->len); in nf_send_reset()
/net/ipv4/
A Dxfrm4_input.c62 iph->tot_len = htons(skb->len); in xfrm4_transport_finish()
133 iph->tot_len = htons(ntohs(iph->tot_len) - len); in __xfrm4_udp_encap_rcv()
A Daf_inet.c1364 int proto, tot_len; in inet_gso_segment() local
1425 tot_len = skb->len - nhoff; in inet_gso_segment()
1433 tot_len = skb_shinfo(skb)->gso_size + in inet_gso_segment()
1437 tot_len = skb->len - nhoff; in inet_gso_segment()
1441 tot_len = skb->len - nhoff; in inet_gso_segment()
1443 iph->tot_len = htons(tot_len); in inet_gso_segment()
1594 __be16 totlen = iph->tot_len; in inet_gro_complete()
1604 csum_replace2(&iph->check, totlen, iph->tot_len); in inet_gro_complete()
A Dfou_core.c62 ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len); in fou_recv_pull()
183 ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len); in gue_udp_recv()
A Dipconfig.c845 h->tot_len = htons(sizeof(struct bootp_pkt)); in ic_bootp_send_if()
1024 if (skb->len < ntohs(h->tot_len)) in ic_bootp_recv()
1033 if (ntohs(h->tot_len) < ntohs(b->udph.len) + sizeof(struct iphdr)) in ic_bootp_recv()
1076 u8 *end = (u8 *) b + ntohs(b->iph.tot_len); in ic_bootp_recv()
A Dip_fragment.c439 iph->tot_len = htons(len); in ip_frag_reasm()
525 len = ntohs(iph.tot_len); in ip_check_defrag()
A Dipmr.c610 encap->tot_len == 0 || in __pim_rcv()
611 ntohs(encap->tot_len) + pimlen > skb->len) in __pim_rcv()
1081 ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(pkt)->tot_len) + in ipmr_cache_report()
1100 ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */ in ipmr_cache_report()
1811 iph->tot_len = htons(skb->len); in ip_encap()
A Dip_output.c610 iph->tot_len = htons(first_len); in ip_fraglist_init()
630 iph->tot_len = htons(frag->len); in ip_fraglist_prepare()
744 iph->tot_len = htons(len + state->hlen); in ip_frag_next()
A Desp4_offload.c349 ip_hdr(skb)->tot_len = htons(skb->len); in esp_xmit()
A Dah4.c207 top_iph->tot_len = htons(skb->len); in ah_output()
/net/sched/
A Dact_csum.c401 ntohs(iph->tot_len))) in tcf_csum_ipv4()
407 ntohs(iph->tot_len))) in tcf_csum_ipv4()
413 ntohs(iph->tot_len))) in tcf_csum_ipv4()
419 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4()
425 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4()
430 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
/net/core/
A Dtso.c19 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr()
A Dselftests.c134 ihdr->tot_len = htons(iplen); in net_test_get_skb()
A Dnetpoll.c455 put_unaligned(htons(ip_len), &iph->tot_len); in push_ipv4()
/net/netfilter/
A Dnf_nat_helper.c59 ip_hdr(skb)->tot_len = htons(skb->len); in mangle_contents()
A Dnfnetlink_osf.c180 ctx->totlen = ntohs(ip->tot_len); in nf_osf_hdr_ctx_init()
/net/xfrm/
A Dxfrm_input.c216 iph->tot_len = htons(skb->len); in xfrm4_remove_beet_encap()
403 ip_hdr(skb)->tot_len = htons(skb->len + ihl); in xfrm4_transport_input()
/net/l2tp/
A Dl2tp_ip6.c594 opt->tot_len = sizeof(struct ipv6_txoptions); in l2tp_ip6_sendmsg()

Completed in 96 milliseconds

12