Lines Matching refs:ip6h
237 struct ipv6hdr *ip6h; in parse_icmpv6() local
245 ip6h = data + off; in parse_icmpv6()
246 if (ip6h + 1 > data_end) in parse_icmpv6()
248 pckt->proto = ip6h->nexthdr; in parse_icmpv6()
250 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6()
251 memcpy(pckt->dstv6, ip6h->saddr.s6_addr32, 16); in parse_icmpv6()
334 struct ipv6hdr *ip6h; in process_packet() local
347 ip6h = data + off; in process_packet()
348 if (ip6h + 1 > data_end) in process_packet()
352 protocol = ip6h->nexthdr; in process_packet()
354 pkt_bytes = bpf_ntohs(ip6h->payload_len); in process_packet()
364 memcpy(pckt.srcv6, ip6h->saddr.s6_addr32, 16); in process_packet()
365 memcpy(pckt.dstv6, ip6h->daddr.s6_addr32, 16); in process_packet()