[RTEMS Project] #4913: libbsd/ipsec-tools: Problems with more than 64 open files

RTEMS trac trac at rtems.org
Wed May 31 06:03:37 UTC 2023


#4913: libbsd/ipsec-tools: Problems with more than 64 open files
--------------------------------+---------------------------------
 Reporter:  Christian Mauderer  |       Owner:  Christian Mauderer
     Type:  defect              |      Status:  assigned
 Priority:  normal              |   Milestone:  6.1
Component:  network/libbsd      |     Version:  6
 Severity:  normal              |  Resolution:
 Keywords:                      |  Blocked By:
 Blocking:                      |
--------------------------------+---------------------------------

Comment (by Christian Mauderer <christian.mauderer@…>):

 In [changeset:"8ed211f4a1940ba714ed1c43a302b1a2c622e102/rtems-libbsd"
 8ed211f/rtems-libbsd]:
 {{{
 #!CommitTicketReference repository="rtems-libbsd"
 revision="8ed211f4a1940ba714ed1c43a302b1a2c622e102"
 ipsec-tools: Fix copying fd_set prior to select

 The racoon session code copies an fd_set from one variable into another
 prior to calling select. That works well for simple structures.

 In libbsd we have to allocate fd_sets instead of using fixed structures
 to avoid a problem with file numbers bigger than FD_SETSIZE. The simple
 assignment didn't work in that case.

 This patch makes sure that a memcpy is used instead.

 Update #4913
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4913#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list