From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114713 invoked by alias); 4 Jul 2019 18:50:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 114704 invoked by uid 89); 4 Jul 2019 18:50:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=Nath, nath, Biswapriyo, biswapriyo X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Jul 2019 18:50:35 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id j6oShSbJQSrVcj6oThATgC; Thu, 04 Jul 2019 12:50:33 -0600 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: AF_HYPERV address family not supported To: cygwin@cygwin.com References: From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <4c32d33c-eab3-c031-52dd-c7ca7ab050f4@SystematicSw.ab.ca> Date: Thu, 04 Jul 2019 18:50:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00023.txt.bz2 On 2019-07-04 11:23, Biswapriyo Nath wrote: > Here is the sample code that I've tried. > > #include > #include > #include > > #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