Lines Matching refs:ip6
319 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum() argument
338 phu.ph.ph_src = ip6->ip6_src; in udp6_cksum()
339 phu.ph.ph_dst = ip6->ip6_dst; in udp6_cksum()
367 const struct ip6_hdr *ip6; in udpipaddr_print() local
370 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
372 ip6 = NULL; in udpipaddr_print()
374 if (ip6) { in udpipaddr_print()
375 if (ip6->ip6_nxt == IPPROTO_UDP) { in udpipaddr_print()
378 ip6addr_string(&ip6->ip6_src), in udpipaddr_print()
379 ip6addr_string(&ip6->ip6_dst)); in udpipaddr_print()
382 ip6addr_string(&ip6->ip6_src), in udpipaddr_print()
384 ip6addr_string(&ip6->ip6_dst), in udpipaddr_print()
429 register const struct ip6_hdr *ip6; in udp_print() local
438 ip6 = (struct ip6_hdr *)bp2; in udp_print()
440 ip6 = NULL; in udp_print()
528 ip6 != NULL); in udp_print()
585 if (IP_V(ip) == 6 && ip6->ip6_plen && vflag && !fragmented) { in udp_print()
589 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr)); in udp_print()
615 ip6 != NULL); in udp_print()