diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-09 13:01:45 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-09 13:01:45 +0000 |
commit | 67572ed40357f3f8a91dd88cfcad59207d3c8089 (patch) | |
tree | 9548f2f590ee6e34e82991505e555e74493b7358 /sbin/isakmpd/ipsec.c | |
parent | 82133f1681395b3a0105db1912e5d7892ec66d1a (diff) |
move to a dynamically allocated struct pollfd array.
we used a ststic one with OPEN_MAX entries, which is a rather arbitary limit
as OPEN_MAX is _not_ the max # of open fds we can have, but just a default
for that setting.
in the same move we have to allocate the peer_l array, basically there
for pfd-index to peer pointers to prevent peer list scans all time,
dynamiccaly to. we overallocate a little and use that reserve until we
have to realloc again later to prevent reallocs for every single control
connection or a single flapping peer.
help & ok claudio
Diffstat (limited to 'sbin/isakmpd/ipsec.c')
0 files changed, 0 insertions, 0 deletions