Home
last modified time | relevance | path

Searched refs:ipv6h (Results 1 – 20 of 20) sorted by relevance

/linux/tools/testing/selftests/net/lib/
H A Dxdp_native.bpf.c107 struct ipv6hdr *ipv6h; in filter_udphdr()
109 err = bpf_xdp_pull_data(ctx, sizeof(*eth) + sizeof(*ipv6h) +
117 ipv6h = data + sizeof(*eth); in xdp_mode_pass()
119 if (ipv6h + 1 > (struct ipv6hdr *)data_end || in xdp_mode_pass()
120 ipv6h->nexthdr != IPPROTO_UDP) in xdp_mode_pass()
123 udph = data + sizeof(*ipv6h) + sizeof(*eth); in xdp_mode_drop_handler()
231 struct ipv6hdr *ipv6h; in update_pkt()
233 err = bpf_xdp_pull_data(ctx, sizeof(*eth) + sizeof(*ipv6h) + in update_pkt()
241 ipv6h = data + sizeof(*eth); in update_pkt()
243 if (ipv6h in update_pkt()
88 struct ipv6hdr *ipv6h = data + sizeof(*eth); filter_udphdr() local
182 struct ipv6hdr *ipv6h = data + sizeof(*eth); xdp_mode_tx_handler() local
238 struct ipv6hdr *ipv6h = data + sizeof(*eth); update_pkt() local
[all...]
/linux/include/net/
H A Ddsfield.h22 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/ipv6/
H A Dip6_tunnel.c398 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)raw; in ip6_tnl_parse_tlv_enc_lim() local
400 unsigned int off = nhoff + sizeof(*ipv6h); in ip6_tnl_parse_tlv_enc_lim()
401 u8 nexthdr = ipv6h->nexthdr; in ip6_tnl_parse_tlv_enc_lim()
473 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6_tnl_err() local
489 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err()
541 len = sizeof(*ipv6h) + ntohs(ipv6h->payload_len); in ip6_tnl_err()
723 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate() argument
726 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate()
731 return IP6_ECN_decapsulate(ipv6h, skb); in ip4ip6_dscp_ecn_decapsulate()
735 const struct ipv6hdr *ipv6h, in ip6ip6_dscp_ecn_decapsulate() argument
[all …]
H A Dip6_gre.c391 const struct ipv6hdr *ipv6h; in ip6gre_err() local
399 ipv6h = (const struct ipv6hdr *)skb->data; in ip6gre_err()
400 t = ip6gre_tunnel_lookup(skb->dev, &ipv6h->daddr, &ipv6h->saddr, in ip6gre_err()
459 const struct ipv6hdr *ipv6h; in ip6gre_rcv() local
462 ipv6h = ipv6_hdr(skb); in ip6gre_rcv()
464 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv()
495 const struct ipv6hdr *ipv6h; in ip6erspan_rcv() local
503 ipv6h = ipv6_hdr(skb); in ip6erspan_rcv()
508 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6erspan_rcv()
638 struct ipv6hdr *ipv6h; in prepare_ip6gre_xmit_ipv6() local
[all …]
H A Dip6_vti.c298 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vti6_input_proto() local
301 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_input_proto()
313 ipv6h = ipv6_hdr(skb); in vti6_input_proto()
314 if (!ip6_tnl_rcv_ctl(t, &ipv6h->daddr, &ipv6h->saddr)) { in vti6_input_proto()
H A Dtcp_ipv6.c992 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset() local
1034 key.md5_key = tcp_v6_md5_do_lookup(sk, &ipv6h->saddr, l3index); in tcp_v6_send_reset()
1049 sk1 = inet6_lookup_listener(net, NULL, 0, &ipv6h->saddr, th->source, in tcp_v6_send_reset()
1050 &ipv6h->daddr, ntohs(th->source), in tcp_v6_send_reset()
1060 key.md5_key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr, l3index); in tcp_v6_send_reset()
1095 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset()
1107 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset()
1113 ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK, in tcp_v6_send_reset()
H A Dexthdrs.c235 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() local
262 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao()
276 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
282 swap(ipv6h->saddr, hao->addr); in ipv6_dest_hao()
/linux/net/netfilter/
H A Dxt_TCPMSS.c221 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 Dxt_TCPOPTSTRIP.c98 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 Dpsp_main.c304 struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + l2_hlen); in psp_dev_rcv() local
306 is_udp = ipv6h->nexthdr == IPPROTO_UDP; in psp_dev_rcv()
356 struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + l2_hlen); in psp_dev_rcv() local
358 ipv6h->nexthdr = psph->nexthdr; in psp_dev_rcv()
359 ipv6h->payload_len = htons(ntohs(ipv6h->payload_len) - encap); in psp_dev_rcv()
/linux/net/tls/
H A Dtls_device_fallback.c156 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 Dsch_cake.c971 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->nexthdr != IPPROTO_TCP) in cake_get_tcphdr()
1223 const struct ipv6hdr *ipv6h, *ipv6h_check; in cake_ack_filter() local
[all …]
H A Dsch_taprio.c422 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->nexthdr != IPPROTO_TCP) { in get_tcp_tstamp()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_rx.c522 struct ipv6hdr *ipv6h = (struct ipv6hdr *)iph; in resync_update_sn() local
525 th = (void *)ipv6h + sizeof(struct ipv6hdr); in resync_update_sn()
527 sk = __inet6_lookup_established(net, &ipv6h->saddr, th->source, in resync_update_sn()
528 &ipv6h->daddr, ntohs(th->dest), in resync_update_sn()
/linux/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c129 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 Den_rx.c573 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 Dqlcnic_io.c1270 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/wangxun/libwx/
H A Dwx_lib.c1316 struct ipv6hdr *ipv6h; in wx_tso() local
1346 ipv6h = enc ? inner_ipv6_hdr(skb) : ipv6_hdr(skb); in wx_tso()
1348 ipv6h->payload_len = 0; in wx_tso()
1349 tcph->check = ~csum_ipv6_magic(&ipv6h->saddr, in wx_tso()
1350 &ipv6h->daddr, 0, in wx_tso()
/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c1480 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()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.c3342 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in idpf_rx_rsc() local
3348 ~tcp_v6_check(len, &ipv6h->saddr, &ipv6h->daddr, 0); in idpf_rx_rsc()