#4913 closed defect (fixed)

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

Reported by: Christian Mauderer Owned by: Christian Mauderer
Priority: normal Milestone: 6.1
Component: network/libbsd Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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

Change History (3)

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

In dfb2144/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.

Update #4913

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

In 8ed211f/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.

Update #4913

comment:3 Changed on 05/31/23 at 06:04:26 by Christian Mauderer

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.