| /net/ipv6/ |
| A D | seg6_iptunnel.c | 135 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 D | exthdrs.c | 1265 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 D | ip6_flowlabel.c | 339 opt_space->tot_len = fopt->tot_len; in fl6_merge_options() 405 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create()
|
| A D | calipso.c | 788 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 D | tcp_ipv6.c | 872 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 D | ipv6_sockglue.c | 367 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 D | ping.c | 128 opt.tot_len = sizeof(opt); in ping_v6_sendmsg()
|
| /net/ipv4/netfilter/ |
| A D | nf_reject_ipv4.c | 27 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 D | xfrm4_input.c | 62 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 D | af_inet.c | 1364 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 D | fou_core.c | 62 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 D | ipconfig.c | 845 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 D | ip_fragment.c | 439 iph->tot_len = htons(len); in ip_frag_reasm() 525 len = ntohs(iph.tot_len); in ip_check_defrag()
|
| A D | ipmr.c | 610 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 D | ip_output.c | 610 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 D | esp4_offload.c | 349 ip_hdr(skb)->tot_len = htons(skb->len); in esp_xmit()
|
| A D | ah4.c | 207 top_iph->tot_len = htons(skb->len); in ah_output()
|
| /net/sched/ |
| A D | act_csum.c | 401 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 D | tso.c | 19 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr()
|
| A D | selftests.c | 134 ihdr->tot_len = htons(iplen); in net_test_get_skb()
|
| A D | netpoll.c | 455 put_unaligned(htons(ip_len), &iph->tot_len); in push_ipv4()
|
| /net/netfilter/ |
| A D | nf_nat_helper.c | 59 ip_hdr(skb)->tot_len = htons(skb->len); in mangle_contents()
|
| A D | nfnetlink_osf.c | 180 ctx->totlen = ntohs(ip->tot_len); in nf_osf_hdr_ctx_init()
|
| /net/xfrm/ |
| A D | xfrm_input.c | 216 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 D | l2tp_ip6.c | 594 opt->tot_len = sizeof(struct ipv6_txoptions); in l2tp_ip6_sendmsg()
|