| /linux/tools/testing/selftests/net/lib/ |
| H A D | xdp_native.bpf.c | 107 struct ipv6hdr *ipv6h; in filter_udphdr() local 109 err = bpf_xdp_pull_data(ctx, sizeof(*eth) + sizeof(*ipv6h) + in filter_udphdr() 117 ipv6h = data + sizeof(*eth); in filter_udphdr() 119 if (ipv6h + 1 > (struct ipv6hdr *)data_end || in filter_udphdr() 120 ipv6h->nexthdr != IPPROTO_UDP) in filter_udphdr() 123 udph = data + sizeof(*ipv6h) + sizeof(*eth); in filter_udphdr() 231 struct ipv6hdr *ipv6h; in xdp_mode_tx_handler() local 233 err = bpf_xdp_pull_data(ctx, sizeof(*eth) + sizeof(*ipv6h) + in xdp_mode_tx_handler() 241 ipv6h = data + sizeof(*eth); in xdp_mode_tx_handler() 243 if (ipv6h + 1 > (struct ipv6hdr *)data_end || in xdp_mode_tx_handler() [all …]
|
| /linux/include/net/ |
| H A D | dsfield.h | 22 static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h) in ipv6_get_dsfield() argument 24 return ntohs(*(__force const __be16 *)ipv6h) >> 4; in ipv6_get_dsfield() 44 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield() argument 47 __be16 *p = (__force __be16 *)ipv6h; in ipv6_change_dsfield()
|
| /linux/net/netfilter/ |
| H A D | xt_TCPMSS.c | 221 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpmss_tg6() local 227 nexthdr = ipv6h->nexthdr; in tcpmss_tg6() 228 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6() 234 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6() 238 ipv6h = ipv6_hdr(skb); in tcpmss_tg6() 239 oldlen = ipv6h->payload_len; in tcpmss_tg6() 244 ipv6h->payload_len = newlen; in tcpmss_tg6()
|
| H A D | xt_TCPOPTSTRIP.c | 98 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpoptstrip_tg6() local 103 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
|
| /linux/net/psp/ |
| H A D | psp_main.c | 333 struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + l2_hlen); in psp_dev_rcv() 335 is_udp = ipv6h->nexthdr == IPPROTO_UDP; in psp_dev_rcv() 388 struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + l2_hlen); 390 if (unlikely(ntohs(ipv6h->payload_len) < encap)) 393 ipv6h->nexthdr = psph->nexthdr; 394 ipv6h->payload_len = htons(ntohs(ipv6h->payload_len) - encap); 304 struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + l2_hlen); psp_dev_rcv() local 356 struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + l2_hlen); psp_dev_rcv() local
|
| /linux/net/tls/ |
| H A D | tls_device_fallback.c | 156 const struct ipv6hdr *ipv6h; in update_chksum() 170 ipv6h = ipv6_hdr(skb); in update_chksum() 171 th->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, in update_chksum() 159 const struct ipv6hdr *ipv6h; update_chksum() local
|
| /linux/net/sched/ |
| H A D | sch_cake.c | 971 const struct ipv6hdr *ipv6h; in cake_get_tcphdr() local 977 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in cake_get_tcphdr() 979 if (!ipv6h) in cake_get_tcphdr() 982 if (ipv6h->version == 4) { in cake_get_tcphdr() 983 iph = (struct iphdr *)ipv6h; in cake_get_tcphdr() 990 ipv6h = skb_header_pointer(skb, offset, in cake_get_tcphdr() 993 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 1002 } else if (ipv6h->version == 6) { in cake_get_tcphdr() 1003 if (ipv6h in cake_get_tcphdr() 1223 const struct ipv6hdr *ipv6h, *ipv6h_check; cake_ack_filter() local [all...] |
| H A D | sch_taprio.c | 422 const struct ipv6hdr *ipv6h; in get_tcp_tstamp() local 426 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in get_tcp_tstamp() 427 if (!ipv6h) in get_tcp_tstamp() 430 if (ipv6h->version == 4) { in get_tcp_tstamp() 431 iph = (struct iphdr *)ipv6h; in get_tcp_tstamp() 438 ipv6h = skb_header_pointer(skb, offset, in get_tcp_tstamp() 441 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in get_tcp_tstamp() 446 } else if (ipv6h->version == 6 && ipv6h in get_tcp_tstamp() [all...] |
| /linux/net/ipv6/netfilter/ |
| H A D | nf_conntrack_reasm.c | 129 static inline u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn() argument 131 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_rx.c | 573 struct ipv6hdr *ipv6h) in get_fixed_ipv6_csum() argument 575 __u8 nexthdr = ipv6h->nexthdr; in get_fixed_ipv6_csum() 584 temp = csum_add(hw_checksum, *(__wsum *)ipv6h); in get_fixed_ipv6_csum() 586 skb->csum = csum_add(temp, (__force __wsum)*(__be16 *)&ipv6h->nexthdr); in get_fixed_ipv6_csum()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_io.c | 1270 struct ipv6hdr *ipv6h; in qlcnic_process_lro() local 1322 ipv6h = (struct ipv6hdr *)skb->data; in qlcnic_process_lro() 1325 ipv6h->payload_len = htons(length); in qlcnic_process_lro() 1791 struct ipv6hdr *ipv6h; in qlcnic_83xx_process_lro() local 1843 ipv6h = (struct ipv6hdr *)skb->data; in qlcnic_83xx_process_lro() 1847 ipv6h->payload_len = htons(length); in qlcnic_83xx_process_lro()
|
| /linux/drivers/net/ethernet/freescale/dpaa/ |
| H A D | dpaa_eth.c | 1480 struct ipv6hdr *ipv6h = NULL; in dpaa_enable_tx_csum() local 1513 ipv6h = ipv6_hdr(skb); in dpaa_enable_tx_csum() 1514 WARN_ON(!ipv6h); in dpaa_enable_tx_csum() 1515 l4_proto = ipv6h->nexthdr; in dpaa_enable_tx_csum()
|