#4914 closed defect (fixed)

libbsd/ipsec-tools: Problems with more than 64 open files (cloned)

Reported by: Christian Mauderer Owned by: Christian Mauderer <christian.mauderer@…>
Priority: normal Milestone: 5.4
Component: network/libbsd Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Cloned from #4913:


IPSec with racoon doesn't work if there are more than 64 open file descriptors in the system.

Change History (1)

comment:1 Changed on 05/31/23 at 06:06:15 by Christian Mauderer <christian.mauderer@…>

Owner: set to Christian Mauderer <christian.mauderer@…>
Resolution: fixed
Status: newclosed

In 484186e/rtems-libbsd:

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.

Close #4914

Note: See TracTickets for help on using tickets.