Lines Matching refs:inp

48 udp_abort(inp)
49 struct inpcb *inp; variable
51 struct socket *so = inp->inp_socket;
53 in_pcbdisconnect(inp, (int(*)())0);
60 int udp_binding_used(inp, lport, lsaddr, reuselocal) in udp_binding_used() argument
61 struct inpcb *inp; in udp_binding_used()
76 if (i != inp)
86 char *udp_conn_used(inp, lport, lsaddr, fport, fsaddr) in udp_conn_used() argument
87 struct inpcb *inp; in udp_conn_used()
101 if (i != inp)
119 struct inpcb *inp; variable
123 inp = sotoinpcb(so);
134 if (inp == NULL && req != PRU_ATTACH)
144 if (inp != NULL)
158 if (inp == NULL)
163 in_pcbdetach(inp, (int (*)())0);
167 error = in_pcbbind(inp, nam, &udp_advice);
175 if (inp->inp_faddr.s_addr != INADDR_ANY)
180 if (inp->inp_lport == 0)
182 error = in_pcbbind(inp, (struct mbuf *)0, &udp_advice);
186 error = in_pcbconnect(inp, nam, udp_conn_used);
196 if (inp->inp_faddr.s_addr == INADDR_ANY)
201 in_pcbdisconnect(inp, (int(*)())0);
215 laddr = inp->inp_laddr;
216 if (inp->inp_faddr.s_addr != INADDR_ANY)
221 if (inp->inp_lport == 0)
223 if (error = in_pcbbind(inp, (struct mbuf *)0, &udp_advice))
226 error = in_pcbconnect(inp, nam, udp_conn_used);
232 if (inp->inp_faddr.s_addr == INADDR_ANY)
238 error = udp_output(inp, m);
242 in_pcbdisconnect(inp, (int(*))0);
243 inp->inp_laddr = laddr;
249 in_pcbdetach(inp, (int (*)())0);
254 error = ip_ioctl (inp, (int) m, (caddr_t) nam);
258 in_setsockaddr(inp, nam);
287 struct inpcb *inp; local
290 inp = (struct inpcb *)udp_conn_used ((struct inpcb *) 0,
294 if (inp)
296 inp->inp_socket->so_error = error;
297 udp_abort(inp);
306 struct inpcb *inp; local
309 inp = (struct inpcb *)udp_conn_used ((struct inpcb *) 0,
313 if (inp)
317 so = inp->inp_socket;
323 udp_abort(inp);
337 struct inpcb *inp; local
340 inp = (struct inpcb *)udp_conn_used ((struct inpcb *) 0,
344 if (inp)
345 icmp_redirect_inp(inp, (struct icmp *) arg,