Lines Matching refs:xip
646 struct xinpcb *xip; in gather_inet() local
713 xip = &xtp->xt_inp; in gather_inet()
720 xip = (struct xinpcb *)xig; in gather_inet()
721 if (!check_ksize(xip->xi_len, struct xinpcb)) in gather_inet()
727 so = &xip->xi_socket; in gather_inet()
728 if ((xip->inp_vflag & vflag) == 0) in gather_inet()
730 if (xip->inp_vflag & INP_IPV4) { in gather_inet()
731 if ((xip->inp_fport == 0 && !opt_l) || in gather_inet()
732 (xip->inp_fport != 0 && !opt_c)) in gather_inet()
737 (__IN_IS_ADDR_LOOPBACK(&xip->inp_faddr) || in gather_inet()
738 __IN_IS_ADDR_LOOPBACK(&xip->inp_laddr))) in gather_inet()
741 } else if (xip->inp_vflag & INP_IPV6) { in gather_inet()
742 if ((xip->inp_fport == 0 && !opt_l) || in gather_inet()
743 (xip->inp_fport != 0 && !opt_c)) in gather_inet()
746 (IN6_IS_ADDR_LOOPBACK(&xip->in6p_faddr) || in gather_inet()
747 IN6_IS_ADDR_LOOPBACK(&xip->in6p_laddr))) in gather_inet()
751 warnx("invalid vflag 0x%x", xip->inp_vflag); in gather_inet()
764 sock->inp_gencnt = xip->inp_gencnt; in gather_inet()
766 if (xip->inp_vflag & INP_IPV4) { in gather_inet()
769 &xip->inp_laddr, xip->inp_lport); in gather_inet()
771 &xip->inp_faddr, xip->inp_fport); in gather_inet()
772 } else if (xip->inp_vflag & INP_IPV6) { in gather_inet()
775 &xip->in6p_laddr, xip->inp_lport); in gather_inet()
777 &xip->in6p_faddr, xip->inp_fport); in gather_inet()
785 sock->vflag = xip->inp_vflag; in gather_inet()