lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #52190] Allow LWIP_SOCKET_OFFSET with an external FD_S


From: Douglas
Subject: [lwip-devel] [bug #52190] Allow LWIP_SOCKET_OFFSET with an external FD_SET
Date: Fri, 13 Oct 2017 06:46:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #2, bug #52190 (project lwip):

Thank you, yes I would like to just get it working, with lwip using a subset
of the FD_SET range.

The only issue that I can spot relates to the semantics of the end of the set.
See lwip_select() tests the maxfdp1 against the (FD_SETSIZE +
LWIP_SOCKET_OFFSET).

It would appear that if this were changed when not using the lwip FD_SET to
compare to simply the FD_SETSIZE then it would work. Lwip would then use a sub
range of the FD_SET from LWIP_SOCKET_OFFSET to (LWIP_SOCKET_OFFSET +
NUM_SOCKETS - 1), rather than from zero to the (NUM_SOCKETS - 1).

A revised patch has been attached to consider.

(file #42137)
    _______________________________________________________

Additional Item Attachment:

File name: 0001-Allow-LWIP_SOCKET_OFFSET-with-an-external-FD_SET.patch Size:1
KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?52190>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]