Lines Matching refs:ip6h
240 struct ipv6hdr *ip6h; in parse_icmpv6() local
248 ip6h = data + off; in parse_icmpv6()
249 if (ip6h + 1 > data_end) in parse_icmpv6()
251 pckt->proto = ip6h->nexthdr; in parse_icmpv6()
253 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6()
254 memcpy(pckt->dstv6, ip6h->saddr.s6_addr32, 16); in parse_icmpv6()
337 struct ipv6hdr *ip6h; in process_packet() local
350 ip6h = data + off; in process_packet()
351 if (ip6h + 1 > data_end) in process_packet()
355 protocol = ip6h->nexthdr; in process_packet()
357 pkt_bytes = bpf_ntohs(ip6h->payload_len); in process_packet()
367 memcpy(pckt.srcv6, ip6h->saddr.s6_addr32, 16); in process_packet()
368 memcpy(pckt.dstv6, ip6h->daddr.s6_addr32, 16); in process_packet()