Lines Matching refs:xip
237 struct xinpcb *xip = NULL; in fetchnetstat_sysctl() local
276 xip = (struct xinpcb *)cur; in fetchnetstat_sysctl()
277 plen = xip->xi_len; in fetchnetstat_sysctl()
282 xip = &xtp->xt_inp; in fetchnetstat_sysctl()
284 xip = (struct xinpcb *)cur; in fetchnetstat_sysctl()
289 if (xip->inp_vflag & INP_IPV4) { in fetchnetstat_sysctl()
290 if (xip->inp_laddr.s_addr == INADDR_ANY) in fetchnetstat_sysctl()
294 else if (xip->inp_vflag & INP_IPV6) { in fetchnetstat_sysctl()
295 if (memcmp(&xip->in6p_laddr, in fetchnetstat_sysctl()
302 if (nhosts && !checkhost(&xip->inp_inc)) in fetchnetstat_sysctl()
304 if (nports && !checkport(&xip->inp_inc)) in fetchnetstat_sysctl()
307 enter_sysctl(xip, &xip->xi_socket, in fetchnetstat_sysctl()
310 enter_sysctl(xip, &xip->xi_socket, 0, "udp"); in fetchnetstat_sysctl()
328 enter_sysctl(struct xinpcb *xip, struct xsocket *so, int state, in enter_sysctl() argument
333 if ((p = enter(&xip->inp_inc, xip->inp_vflag, state, proto)) != NULL) { in enter_sysctl()