Re: WinSocket support?

Johannes Thoma <johannes-YfaajirXv20X1w8DT5LEVAC/[email protected]> Tue, 1 Mar 2022 16:27:40 +0100
Newsgroups gmane.os.reactos.kernel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8425151110429543165==
Content-Type: multipart/alternative;
 boundary="------------n0tlxve7rMCDv2lC0eR4VjyB"

This is a multi-part message in MIME format.
--------------n0tlxve7rMCDv2lC0eR4VjyB
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Thomas,

Thank you for your fast answer. I now got WinDRBD running without networking
support (which is just a proof of concept, DRBD is a network storage replication
driver) but at least the driver loads and does something.

I couldn't find a way to create paritions on an empty disk, I tried diskpart but it
failed to create the partition (there is no partition table on the disk yet). What is
the ReactOS way to create paritions (I also tried fdisk but it didn't exist)?

Best regards,

- Johannes

Am 01.03.22 um 02:25 schrieb Thomas Faber:
> Hi Johannes,
>
> ReactOS does not currently support WSK, nor is any work on it in progress or planned.
> Our network stack is unfortunately unstable enough even with just TDI,
> so any efforts in networking typically go towards stabilization.
>
> TDI itself is supported, so if you were to work on a library that implements the WSK interface on top of TDI, you might have a chance of it working. However, the kernel-mode interface is not particularly well tested, as AFD (which implements user mode sockets) is currently the only consumer. So even if you get it to work in Windows Server 2003, you're likely to encounter bugs in ReactOS.
> We'd of course be happy to get any reports of bugs you run into.
>
> Best,
> Thomas
>
>
>
> On 2022-02-28 15:05, johannes-YfaajirXv20X1w8DT5LEVAC/[email protected] wrote:
>> Dear ReactOS developers,
>>
>> I am working on WinDRBD (https://github.com/LINBIT/windrbd), which is a
>> port of the Linux DRBD 9 driver to the Windows family of operating systems.
>> Technically it is a compatibility layer for the Linux kernel functions that DRBD
>> uses.
>>
>> I am currently researching if WinDRBD can be ported to Windows Server 2003
>> and also to ReactOS and found that the networking API we are using (WinSocket)
>> is only supported by Windows Vista (0x600) and up. Porting WinDRBD to ReactOS
>> would require using the TDI interface instead (everything else "should" work,
>> however I couldn't test it because it does not load currently into ReactOS).
>>
>> My question is is there any ongoing effort to implement a WinSocket API?
>> If yes what is the status of this implementation?
>>
>> Thanks for any insights,
>>
>> Best regards,
>>
>> - Johannes
>> _______________________________________________
>> Ros-dev mailing list
>> [email protected]
>> http://reactos.org/mailman/listinfo/ros-dev

--------------n0tlxve7rMCDv2lC0eR4VjyB
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Thomas,<br>
    <br>
    Thank you for your fast answer. I now got WinDRBD running without
    networking<br>
    support (which is just a proof of concept, DRBD is a network storage
    replication<br>
    driver) but at least the driver loads and does something. <br>
    <br>
    I couldn't find a way to create paritions on an empty disk, I tried
    diskpart but it<br>
    failed to create the partition (there is no partition table on the
    disk yet). What is<br>
    the ReactOS way to create paritions (I also tried fdisk but it
    didn't exist)?<br>
    <br>
    Best regards,<br>
    <br>
    - Johannes<br>
    <br>
    <div class="moz-cite-prefix">Am 01.03.22 um 02:25 schrieb Thomas
      Faber:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6c781e21-529b-6ba7-93f9-1eb894a22a6c-td3rRX5TIkhAfugRpC6u6w@public.gmane.org">Hi
      Johannes,
      <br>
      <br>
      ReactOS does not currently support WSK, nor is any work on it in
      progress or planned.
      <br>
      Our network stack is unfortunately unstable enough even with just
      TDI,
      <br>
      so any efforts in networking typically go towards stabilization.
      <br>
      <br>
      TDI itself is supported, so if you were to work on a library that
      implements the WSK interface on top of TDI, you might have a
      chance of it working. However, the kernel-mode interface is not
      particularly well tested, as AFD (which implements user mode
      sockets) is currently the only consumer. So even if you get it to
      work in Windows Server 2003, you're likely to encounter bugs in
      ReactOS.
      <br>
      We'd of course be happy to get any reports of bugs you run into.
      <br>
      <br>
      Best,
      <br>
      Thomas
      <br>
      <br>
      <br>
      <br>
      On 2022-02-28 15:05, <a class="moz-txt-link-abbreviated" href="mailto:johannes-YfaajirXv20X1w8DT5LEVAC/[email protected]">johannes-YfaajirXv20X1w8DT5LEVAC/[email protected]</a> wrote:
      <br>
      <blockquote type="cite">Dear ReactOS developers,
        <br>
        <br>
        I am working on WinDRBD (<a class="moz-txt-link-freetext" href="https://github.com/LINBIT/windrbd">https://github.com/LINBIT/windrbd</a>),
        which is a
        <br>
        port of the Linux DRBD 9 driver to the Windows family of
        operating systems.
        <br>
        Technically it is a compatibility layer for the Linux kernel
        functions that DRBD
        <br>
        uses.
        <br>
        <br>
        I am currently researching if WinDRBD can be ported to Windows
        Server 2003
        <br>
        and also to ReactOS and found that the networking API we are
        using (WinSocket)
        <br>
        is only supported by Windows Vista (0x600) and up. Porting
        WinDRBD to ReactOS
        <br>
        would require using the TDI interface instead (everything else
        "should" work,
        <br>
        however I couldn't test it because it does not load currently
        into ReactOS).
        <br>
        <br>
        My question is is there any ongoing effort to implement a
        WinSocket API?
        <br>
        If yes what is the status of this implementation?
        <br>
        <br>
        Thanks for any insights,
        <br>
        <br>
        Best regards,
        <br>
        <br>
        - Johannes
        <br>
        _______________________________________________
        <br>
        Ros-dev mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://reactos.org/mailman/listinfo/ros-dev">http://reactos.org/mailman/listinfo/ros-dev</a>
        <br>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>

--------------n0tlxve7rMCDv2lC0eR4VjyB--


--===============8425151110429543165==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ros-dev mailing list
[email protected]
http://reactos.org/mailman/listinfo/ros-dev

--===============8425151110429543165==--