Lines Matching refs:ihdr
556 struct rt0_hdr *phdr, *ihdr; in ipv6_build_rthdr() local
559 ihdr = (struct rt0_hdr *) opt; in ipv6_build_rthdr()
561 phdr = (struct rt0_hdr *) skb_put(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_build_rthdr()
562 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_build_rthdr()
564 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_build_rthdr()
567 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_build_rthdr()
647 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr() local
650 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr()
652 phdr = (struct rt0_hdr *) skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr()
653 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr()
655 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr()
658 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr()
662 *addr_p = ihdr->addr; in ipv6_push_rthdr()