Lines Matching refs:socket
53 #include <sys/socket.h>
94 * on the corresponding divert socket, while the rule number is passed
97 * Packets written to the divert socket carry in sin_addr a
125 static int div_output_inbound(int fmaily, struct socket *so, struct mbuf *m,
127 static int div_output_outbound(int family, struct socket *so, struct mbuf *m);
185 * Divert a packet by passing it up to the divert socket at port 'port'.
195 struct socket *sa;
273 * into the divert socket. Theoretically if the daemon saves
282 /* Put packet on socket queue, if any */
286 /* XXX why does only one socket match? */
321 div_output(struct socket *so, struct mbuf *m, struct sockaddr_in *sin,
427 div_output_outbound(int family, struct socket *so, struct mbuf *m)
475 * Just in case socket options were specified on the
476 * divert socket, we duplicate them. This is done
486 ("multicast options set on a divert socket"));
530 div_output_inbound(int family, struct socket *so, struct mbuf *m,
584 div_attach(struct socket *so, int proto, struct thread *td)
615 div_detach(struct socket *so)
629 div_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
659 div_shutdown(struct socket *so)
672 div_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
836 * socket open request could be spinning on the lock and then