Lines Matching refs:ip6
294 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum() argument
297 return (nextproto6_cksum(ip6, (const u_int8_t *)(void *)up, len, in udp6_cksum()
306 const struct ip6_hdr *ip6; in udpipaddr_print() local
309 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
311 ip6 = NULL; in udpipaddr_print()
313 if (ip6) { in udpipaddr_print()
314 if (ip6->ip6_nxt == IPPROTO_UDP) { in udpipaddr_print()
317 ip6addr_string(&ip6->ip6_src), in udpipaddr_print()
318 ip6addr_string(&ip6->ip6_dst)); in udpipaddr_print()
321 ip6addr_string(&ip6->ip6_src), in udpipaddr_print()
323 ip6addr_string(&ip6->ip6_dst), in udpipaddr_print()
368 register const struct ip6_hdr *ip6; in udp_print() local
377 ip6 = (struct ip6_hdr *)bp2; in udp_print()
379 ip6 = NULL; in udp_print()
467 ip6 != NULL); in udp_print()
555 else if (IP_V(ip) == 6 && ip6->ip6_plen) { in udp_print()
558 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr)); in udp_print()
589 ip6 != NULL); in udp_print()