This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: AF_HYPERV address family not supported
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Thu, 4 Jul 2019 12:50:32 -0600
- Subject: Re: AF_HYPERV address family not supported
- References: <CALK-3mKwcNXkhn5GxKc0r=3seOM5S7jx3_L8CkjSkxd9qVE-=g@mail.gmail.com>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
On 2019-07-04 11:23, Biswapriyo Nath wrote:
> Here is the sample code that I've tried.
>
> #include <sys/socket.h>
> #include <stdio.h>
> #include <errno.h>
>
> #ifndef AF_HYPERV
> #define AF_HYPERV 34
> #endif
>
> int main(void)
> {
> int s = socket(AF_HYPERV, SOCK_STREAM, 0);
> if (s > 0)
> printf("success\n");
> else
> printf("%s\n", strerror(errno));
> }
>
> Is this by-design? Or am I doing anything wrong?
That's a Windows API - the Linux equivalent is AF_VSOCK: please feel free to
submit support patches to cygwin-patches to support AF_VSOCK using AF_HYPERV or
newlib to support AF_VSOCK.
https://cygwin.com/acronyms/#SHTDI
You could check to see if the Windows oriented mingw or msys projects support
AF_HYPERV yet.
These interfaces are fairly new and OS specific so there is not yet a facility
abstraction to support.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple