Home | History | Annotate | Download | only in systat

Lines Matching refs:inp

218 	struct inpcb *inpcbp, *inp;
229 inp = (struct inpcb *)&in4pcb;
230 if (inp->inp_queue.tqe_prev != pprev) {
237 next = inp->inp_queue.tqe_next;
239 if (inp->inp_af != AF_INET)
241 if (!aflag && inet_lnaof(in4p_laddr(inp)) == INADDR_ANY)
243 if (nhosts && !checkhost(inp))
245 if (nports && !checkport(inp))
247 KREAD(inp->inp_socket, &sockb, sizeof (sockb));
249 KREAD(inp->inp_ppcb, &tcpcb, sizeof (tcpcb));
250 enter(inp, &sockb, tcpcb.t_state, "tcp");
252 enter(inp, &sockb, 0, "udp");
265 struct inpcb *inp, *inpcbp;
274 inp = (struct inpcb *)&in6pcb;
275 if (inp->inp_queue.tqe_prev != pprev) {
282 next = inp->inp_queue.tqe_next;
284 if (inp->inp_af != AF_INET6)
286 if (!aflag && IN6_IS_ADDR_UNSPECIFIED(&in6p_laddr(inp)))
288 if (nhosts && !checkhost(inp))
290 if (nports && !checkport(inp))
292 KREAD(inp->inp_socket, &sockb, sizeof (sockb));
294 KREAD(inp->inp_ppcb, &tcpcb, sizeof (tcpcb));
295 enter6(inp, &sockb, tcpcb.t_state, "tcp");
297 enter6(inp, &sockb, 0, "udp");
303 enter(struct inpcb *inp, struct socket *so, int state, const char *proto)
319 if (p->ni_lport != inp->inp_lport ||
320 p->ni_laddr.s_addr != in4p_laddr(inp).s_addr)
322 if (p->ni_faddr.s_addr == in4p_faddr(inp).s_addr &&
323 p->ni_fport == inp->inp_fport)
336 p->ni_laddr = in4p_laddr(inp);
337 p->ni_lport = inp->inp_lport;
338 p->ni_faddr = in4p_faddr(inp);
339 p->ni_fport = inp->inp_fport;
352 enter6(struct inpcb *inp, struct socket *so, int state, const char *proto)
368 if (p->ni_lport != inp->inp_lport ||
369 !IN6_ARE_ADDR_EQUAL(&p->ni_laddr6, &in6p_laddr(inp)))
371 if (IN6_ARE_ADDR_EQUAL(&p->ni_faddr6, &in6p_faddr(inp)) &&
372 p->ni_fport == inp->inp_fport)
385 p->ni_laddr6 = in6p_laddr(inp);
386 p->ni_lport = inp->inp_lport;
387 p->ni_faddr6 = in6p_faddr(inp);
388 p->ni_fport = inp->inp_fport;