aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/sa
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-03-02 09:56:30 +0000
committerMartin Willi <martin@strongswan.org>2006-03-02 09:56:30 +0000
commitaa5a35a0056a50c563af9fa1d7c808e1f869405c (patch)
tree2976803255d24e642b86147186eb774ff78c59f7 /Source/charon/sa
parent5d187bd234913b8b1004f3e21ca236d458949831 (diff)
downloadstrongswan-aa5a35a0056a50c563af9fa1d7c808e1f869405c.tar.bz2
strongswan-aa5a35a0056a50c563af9fa1d7c808e1f869405c.tar.xz
- comments and cleanups
Diffstat (limited to 'Source/charon/sa')
-rw-r--r--Source/charon/sa/child_sa.c2
-rw-r--r--Source/charon/sa/child_sa.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Source/charon/sa/child_sa.c b/Source/charon/sa/child_sa.c
index faadf27ce..adf4c62dd 100644
--- a/Source/charon/sa/child_sa.c
+++ b/Source/charon/sa/child_sa.c
@@ -550,7 +550,7 @@ static void destroy(private_child_sa_t *this)
*/
child_sa_t * child_sa_create(host_t *me, host_t* other)
{
- static u_int32_t reqid = 1;
+ static u_int32_t reqid = 0xc0000000;
private_child_sa_t *this = allocator_alloc_thing(private_child_sa_t);
/* public functions */
diff --git a/Source/charon/sa/child_sa.h b/Source/charon/sa/child_sa.h
index bd48c603c..a43ed0674 100644
--- a/Source/charon/sa/child_sa.h
+++ b/Source/charon/sa/child_sa.h
@@ -47,6 +47,8 @@ typedef struct child_sa_t child_sa_t;
* - B sends the updated proposal to A
* - A calls child_sa_t.update to update the already allocated SPIs with the chosen proposal
*
+ * Once SAs are set up, policies can be added using add_policies.
+ *
*
* @b Constructors:
* - child_sa_create()