Commit Graph

2428 Commits

Author SHA1 Message Date
Steven Dake
f3cf1df94c Add flow control to amf.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@178 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
52a1621c74 Add support for flow control to ckpt library.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@177 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
fc94289e33 misc flow control changes.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@176 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
a697171df7 Add flow control to saRecvQueue function.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@175 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
ca88544979 Add flow control to checkpointing.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@174 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
907f902ba7 Add support to clm for flow control.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@173 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
9a1d1c0ec2 Add priority to poll abstraction
Higher priority items will be serviced first

(Logical change 1.54)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@172 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-14 09:25:33 +00:00
Steven Dake
101b05fea0 Priorites added to dispatch function. This is in prep for flow
control to allow dispatch functions that haven't been serviced
in awhile to be bumped up in priority when they are not serviced.

The priority of the dispatch handler is passed to the dispatch
function which can modify it in place.  The new priority will be
used the next time the poll system call is executed.

main.c:
  Add library accept handler at lowest priority
gmi.c:
  Make gmi highest priority when adding dispatch functions
aispoll.h, aispoll.c:
  Add priority to poll abstraction
  Higher priority items will be serviced first

BKrev: 411dda8dXGsq4glmjj36km40YZhjCA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@171 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-14 09:25:33 +00:00
Steven Dake
d99bf64410 Make gmi highest priority when adding dispatch functions
(Logical change 1.54)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@170 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-14 09:25:33 +00:00
Steven Dake
a5a3968cbc Add library accept handler at lowest priority
(Logical change 1.54)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@169 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-14 09:25:33 +00:00
Steven Dake
feb9d583bf gmi.c:
When 2 processors are part of the configuration, then one
  of the members leaves, then a new configuration occurs
  with 2 or more members, the "joined" list was not
  being properly passed to the rest of the executive
  services.  This bug fixed.

BKrev: 41185349SwUWKZU-QQ_K91jAnvqYpA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@168 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-10 04:47:05 +00:00
Steven Dake
ce76ee2d53 When 2 processors are part of the configuration, then one
of the members leaves, then a new configuration occurs
with 2 or more members, the "joined" list was not
being properly passed to the rest of the executive
services.  This bug fixed.

(Logical change 1.53)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@167 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-10 04:47:05 +00:00
Steven Dake
88e8d9a370 Add encryption and authentication to GMI.
(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@166 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
d3b0a80c17 Add encryption and authentication to all messages so that messages are secret
and are always known to come from a source that knows the private key.

SECURITY:
  Describe latest security system using SOBER, SHA1, and HMAC.
QUICKSTART:
  Add details to creating security key to quickstart guide.
LICENSE:
  Add libtomcrypt's license text for crypto.c and crypto.h
Makefile:
  Add crytpo features to makefile
gmi.h:
  Add ability to pass key and keylen to gmi_init.
  Add ability to set security logging value.
gmi.c:
  Add encryption and authentication to GMI.

BKrev: 4117ed75MEkDZv2CoCUYGolBNHy17Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@165 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
075a81b820 Add details to creating security key to quickstart guide.
(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@164 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
d379732558 Add ability to pass key and keylen to gmi_init.
Add ability to set security logging value.

(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@163 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
d6d2d32ea7 Add libtomcrypt's license text for crypto.c and crypto.h
(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@162 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
e9f8672337 Add crytpo features to makefile
(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@161 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
57969a835f (Logical change 1.52)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@160 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
6089c11fb7 Describe latest security system using SOBER, SHA1, and HMAC.
(Logical change 1.52)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@159 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:32:37 +00:00
Steven Dake
b70fdf8555 keygen.c, crypto.h, crypto.c:
New files for cryptography support.

BKrev: 4117ecc6HWTXJ7DG7UZ3E01aKajTBA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@158 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:29:42 +00:00
Steven Dake
b04d69d381 (Logical change 1.51)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@157 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:29:42 +00:00
Steven Dake
0c282269e0 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@156 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-09 21:29:41 +00:00
Mark Haverkamp
21f537641e Fix compiler warning
(Logical change 1.50)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@155 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-30 17:51:32 +00:00
Mark Haverkamp
518441dcb3 Fix compiler warning
BKrev: 410a8aa45tOLcJaeS6TU0H7l55hYiQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@154 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-30 17:51:32 +00:00
Mark Haverkamp
aa5a8389ef Fix queue items memory leak.
(Logical change 1.49)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@153 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-30 17:49:14 +00:00
Mark Haverkamp
b6aef62e74 Fix queue items memory leak.
BKrev: 410a8a1arpYlwWZY9PRvbEkRYy7zkQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@152 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-30 17:49:14 +00:00
Steven Dake
26a054685d Change RecvQueue to use a stack structure for receiving the
response instead of passing in the maximum sized value for a
response message.

(Logical change 1.48)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@151 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 23:00:43 +00:00
Steven Dake
ec5406aafc Clean up RecvQueue users and pass in actual buffer instead
of "overly large" buffer which has changed because of changes
to util.c
Also cleaned up memory leak in the dispatch function.

(Logical change 1.48)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@150 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 23:00:43 +00:00
Steven Dake
daeb5bfbbd util.c:
Change RecvQueue to use a stack structure for receiving the
  response instead of passing in the maximum sized value for a
  response message.
ckpt.c:
  Change all RecvQueue users to use RecvRetry since there is no
  reason to queue out of order messages.
amf.c:
  Clean up RecvQueue users and pass in actual buffer instead
  of "overly large" buffer which has changed because of changes
  to util.c
  Also cleaned up memory leak in the dispatch function.

BKrev: 4109819b_adTTm4cCZmfLJcsYb9hyA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@149 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 23:00:43 +00:00
Steven Dake
92eeea1335 Change all RecvQueue users to use RecvRetry since there is no
reason to queue out of order messages.

(Logical change 1.48)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@148 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 23:00:43 +00:00
Steven Dake
97649da204 (Logical change 1.47)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@147 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 19:53:46 +00:00
Steven Dake
0385d9ba49 Add function in exec/clm to get the full cluster node information
for any node in the cluster membership

(Logical change 1.47)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@146 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 19:53:46 +00:00
Mark Haverkamp
02b4016105 Merge bk://bk.osdl.org/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_stage

2004/07/29 12:26:46-07:00 mvista.com!sdake
clm.c:
  Add function in exec/clm to get the full cluster node information
  for any node in the cluster membership

BKrev: 410955capPzVdVwzpMJetS80seWS7g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@145 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 19:53:46 +00:00
Mark Haverkamp
b04e9c5d16 Added event code and dependencies.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@144 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
f6bad576fa added event message types and associated data structures.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@143 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
170efe67d4 Event service data types.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@142 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
36563bbf7c This adds the start of the AIS event service code. The library code
is mostly complete.  The aisexec part just has placeholders for now
and will be filled in later.

BKrev: 410944e7-oXL5OZSJvizPPH9dGS2GA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@141 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
ad6301d50d Added event library and depend target.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@140 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
3cdfc4a3ec added event service handler.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@139 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
7f9da22767 added event service.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@138 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
6da8305de8 Added clustTimeNow to get current time in nanoseconds.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@137 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
1f60d9b56e Added event test program and depend target.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@136 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
cba04f10c5 (Logical change 1.46)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@135 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
9dc4b066ad Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@134 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:42 +00:00
Steven Dake
4b6839b96e README.devmap:
Document new changes to exec handler function prototype
  and recommend using the source_addr for deferring requests
  instead of recording the ip address in the message itself.
main.c, handlers.h, clm.c, ckpt.c, amf.c:
  Add source_addr to exec message handler for event service.

BKrev: 41082a5cY6cLQK7NG_rxZrkb7lERfw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@133 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-28 22:36:12 +00:00
Steven Dake
48601c8797 Document new changes to exec handler function prototype
and recommend using the source_addr for deferring requests
instead of recording the ip address in the message itself.

(Logical change 1.45)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@132 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-28 22:36:12 +00:00
Steven Dake
9783e8d172 Add source_addr to exec message handler for event service.
(Logical change 1.45)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@131 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-28 22:36:12 +00:00
Steven Dake
71bf042ce9 Major cleanup and use hdb.c abstracted out functions
now instead of internal hacked together stuff that was
there previously.

(Logical change 1.44)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@130 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
21d72de996 Remove "old-style" handle database code from aispoll.c and include
instead hdb.c/hdb.h.  These files are copies of the handle database
code used for the library without mutexes.

This work for Mark Haverkamp to use the handle database functionality
as part of the event service.

BKrev: 4106e5a7ANCdXqe3zoIfO1tcYyrQhQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@129 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00