mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 13:46:33 +00:00
Print VSOCK warning only with VSOCK-LISTEN
This commit is contained in:
parent
e78e911cbb
commit
e9c055b750
3 changed files with 13 additions and 12 deletions
10
xio-vsock.c
10
xio-vsock.c
|
@ -139,6 +139,16 @@ static int xioopen_vsock_listen(int argc, const char *argv[], struct opt *opts,
|
|||
return ret;
|
||||
}
|
||||
|
||||
{
|
||||
unsigned int cid;
|
||||
if (Ioctl(xfd->fd, IOCTL_VM_SOCKETS_GET_LOCAL_CID, &cid) < 0) {
|
||||
Warn2("ioctl(%d, IOCTL_VM_SOCKETS_GET_LOCAL_CID, ...): %s",
|
||||
xfd->fd, strerror(errno));
|
||||
} else {
|
||||
Notice1("VSOCK CID=%u", cid);
|
||||
}
|
||||
}
|
||||
|
||||
opts0 = copyopts(opts, GROUP_ALL);
|
||||
|
||||
ret = retropt_bind(opts, pf, socktype, protocol, (struct sockaddr *)&sa_bind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue