Lines Matching refs:ip6
2446 pr_iph(struct ip6_hdr *ip6) in pr_iph() argument
2448 u_int32_t flow = ip6->ip6_flow & IPV6_FLOWLABEL_MASK; in pr_iph()
2452 tc = *(&ip6->ip6_vfc + 1); /* XXX */ in pr_iph()
2454 tc |= (ip6->ip6_vfc << 4); in pr_iph()
2458 (ip6->ip6_vfc & IPV6_VERSION_MASK) >> 4, tc, (u_int32_t)ntohl(flow), in pr_iph()
2459 ntohs(ip6->ip6_plen), ip6->ip6_nxt, ip6->ip6_hlim); in pr_iph()
2460 if (!inet_ntop(AF_INET6, &ip6->ip6_src, ntop_buf, sizeof(ntop_buf))) in pr_iph()
2463 if (!inet_ntop(AF_INET6, &ip6->ip6_dst, ntop_buf, sizeof(ntop_buf))) in pr_iph()
2493 pr_retip(struct ip6_hdr *ip6, u_char *end) in pr_retip() argument
2495 u_char *cp = (u_char *)ip6, nh; in pr_retip()
2498 if (end - (u_char *)ip6 < (intptr_t)sizeof(*ip6)) { in pr_retip()
2502 pr_iph(ip6); in pr_retip()
2503 hlen = sizeof(*ip6); in pr_retip()
2505 nh = ip6->ip6_nxt; in pr_retip()