Lines Matching refs:ipv6h
427 const struct ipv6hdr *ipv6h; in ip6gre_err() local
435 ipv6h = (const struct ipv6hdr *)skb->data; in ip6gre_err()
436 t = ip6gre_tunnel_lookup(skb->dev, &ipv6h->daddr, &ipv6h->saddr, in ip6gre_err()
495 const struct ipv6hdr *ipv6h; in ip6gre_rcv() local
498 ipv6h = ipv6_hdr(skb); in ip6gre_rcv()
500 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv()
531 const struct ipv6hdr *ipv6h; in ip6erspan_rcv() local
536 ipv6h = ipv6_hdr(skb); in ip6erspan_rcv()
541 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6erspan_rcv()
667 struct ipv6hdr *ipv6h; in prepare_ip6gre_xmit_ipv6() local
673 ipv6h = ipv6_hdr(skb); in prepare_ip6gre_xmit_ipv6()
692 *dsfield = ipv6_get_dsfield(ipv6h); in prepare_ip6gre_xmit_ipv6()
697 fl6->flowlabel |= ip6_flowlabel(ipv6h); in prepare_ip6gre_xmit_ipv6()
823 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ip6gre_xmit_ipv6() local
830 if (ipv6_addr_equal(&t->parms.raddr, &ipv6h->saddr)) in ip6gre_xmit_ipv6()
1381 struct ipv6hdr *ipv6h; in ip6gre_header() local
1384 ipv6h = skb_push(skb, t->hlen + sizeof(*ipv6h)); in ip6gre_header()
1385 ip6_flow_hdr(ipv6h, 0, ip6_make_flowlabel(dev_net(dev), skb, in ip6gre_header()
1388 ipv6h->hop_limit = t->parms.hop_limit; in ip6gre_header()
1389 ipv6h->nexthdr = NEXTHDR_GRE; in ip6gre_header()
1390 ipv6h->saddr = t->parms.laddr; in ip6gre_header()
1391 ipv6h->daddr = t->parms.raddr; in ip6gre_header()
1393 p = (__be16 *)(ipv6h + 1); in ip6gre_header()
1402 memcpy(&ipv6h->saddr, saddr, sizeof(struct in6_addr)); in ip6gre_header()
1404 memcpy(&ipv6h->daddr, daddr, sizeof(struct in6_addr)); in ip6gre_header()
1405 if (!ipv6_addr_any(&ipv6h->daddr)) in ip6gre_header()