Re: [PATCH v7 12/19] tools: add simple vchan-socket-proxy

2020-05-21 Thread Jason Andryuk
On Thu, May 21, 2020 at 7:09 AM Andrew Cooper wrote: > > On 19/05/2020 02:54, Jason Andryuk wrote: > > +static int connect_socket(const char *path_or_fd) { > > +int fd; > > +char *endptr; > > +struct sockaddr_un addr; > > + > > +fd = strtoll(path_or_fd, &endptr, 0); > > +if (*e

Re: [PATCH v7 12/19] tools: add simple vchan-socket-proxy

2020-05-21 Thread Andrew Cooper
On 19/05/2020 02:54, Jason Andryuk wrote: > +static int connect_socket(const char *path_or_fd) { > +int fd; > +char *endptr; > +struct sockaddr_un addr; > + > +fd = strtoll(path_or_fd, &endptr, 0); > +if (*endptr == '\0') { > +set_nonblocking(fd, 1); > +return fd

[PATCH v7 12/19] tools: add simple vchan-socket-proxy

2020-05-18 Thread Jason Andryuk
From: Marek Marczykowski-Górecki Add a simple proxy for tunneling socket connection over vchan. This is based on existing vchan-node* applications, but extended with socket support. vchan-socket-proxy serves both as a client and as a server, depending on parameters. It can be used to transparentl