Lines Matching refs:inpcb
82 static void enter_kvm(struct inpcb *, struct socket *, int, const char *);
174 struct inpcb *next; in fetchnetstat_kvm()
177 struct inpcb inpcb; in fetchnetstat_kvm() local
202 KREAD(next, &inpcb, sizeof (inpcb)); in fetchnetstat_kvm()
203 next = &inpcb; in fetchnetstat_kvm()
205 if (inpcb.inp_vflag & INP_IPV4) { in fetchnetstat_kvm()
206 if (inpcb.inp_laddr.s_addr == INADDR_ANY) in fetchnetstat_kvm()
210 else if (inpcb.inp_vflag & INP_IPV6) { in fetchnetstat_kvm()
211 if (memcmp(&inpcb.in6p_laddr, in fetchnetstat_kvm()
217 if (nhosts && !checkhost(&inpcb.inp_inc)) in fetchnetstat_kvm()
219 if (nports && !checkport(&inpcb.inp_inc)) in fetchnetstat_kvm()
222 KREAD(inpcb.inp_socket, &sockb, sizeof (sockb)); in fetchnetstat_kvm()
223 KREAD(inpcb.inp_ppcb, &tcpcb, sizeof (tcpcb)); in fetchnetstat_kvm()
224 enter_kvm(&inpcb, &sockb, tcpcb.t_state, "tcp"); in fetchnetstat_kvm()
226 enter_kvm(&inpcb, &sockb, 0, "udp"); in fetchnetstat_kvm()
322 enter_kvm(struct inpcb *inp, struct socket *so, int state, const char *proto) in enter_kvm()