summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/ipsec.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-06-09 13:01:45 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-06-09 13:01:45 +0000
commit67572ed40357f3f8a91dd88cfcad59207d3c8089 (patch)
tree9548f2f590ee6e34e82991505e555e74493b7358 /sbin/isakmpd/ipsec.c
parent82133f1681395b3a0105db1912e5d7892ec66d1a (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