Lines Matching refs:ip6
283 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum() argument
286 return nextproto6_cksum(ip6, (const uint8_t *)(void *)up, len, len, in udp6_cksum()
295 const struct ip6_hdr *ip6; in udpipaddr_print() local
298 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
300 ip6 = NULL; in udpipaddr_print()
302 if (ip6) { in udpipaddr_print()
303 if (ip6->ip6_nxt == IPPROTO_UDP) { in udpipaddr_print()
306 ip6addr_string(ndo, &ip6->ip6_src), in udpipaddr_print()
307 ip6addr_string(ndo, &ip6->ip6_dst))); in udpipaddr_print()
310 ip6addr_string(ndo, &ip6->ip6_src), in udpipaddr_print()
312 ip6addr_string(ndo, &ip6->ip6_dst), in udpipaddr_print()
357 register const struct ip6_hdr *ip6; in udp_print() local
366 ip6 = (struct ip6_hdr *)bp2; in udp_print()
368 ip6 = NULL; in udp_print()
459 ip6 != NULL); in udp_print()
549 else if (IP_V(ip) == 6 && ip6->ip6_plen) { in udp_print()
552 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr)); in udp_print()
583 ip6 != NULL); in udp_print()