------------------------------------------------------------
revno: 4933
committer: Rene Hummen <[email protected]>
branch nick: ipsec_esp
timestamp: Fri 2010-09-10 16:29:43 +0200
message:
replaced magic numbers by defines
modified:
modules/user_ipsec/hipd/user_ipsec_sadb_api.c
--
lp:~rene-hummen/hipl/ipsec_esp
https://code.launchpad.net/~rene-hummen/hipl/ipsec_esp
Your team HIPL core team is subscribed to branch lp:~rene-hummen/hipl/ipsec_esp.
To unsubscribe from this branch go to
https://code.launchpad.net/~rene-hummen/hipl/ipsec_esp/+edit-subscription
=== modified file 'modules/user_ipsec/hipd/user_ipsec_sadb_api.c'
--- modules/user_ipsec/hipd/user_ipsec_sadb_api.c 2010-09-10 14:26:44 +0000
+++ modules/user_ipsec/hipd/user_ipsec_sadb_api.c 2010-09-10 14:29:43 +0000
@@ -48,6 +48,8 @@
#include "user_ipsec_hipd_msg.h"
#include "user_ipsec_sadb_api.h"
+#define NEW_IPSEC_SA 0
+#define UPDATE_IPSEC_SA 1
/** generic send function used to send the below created messages
*
@@ -176,7 +178,7 @@
&ctx->hadb_entry->auth_in,
ctx->hadb_entry->retrans_state,
HIP_SPI_DIRECTION_IN,
- 0,
+ NEW_IPSEC_SA,
ctx->hadb_entry),
-1, "Failed to setup inbound SA");
@@ -191,7 +193,7 @@
&ctx->hadb_entry->auth_out,
ctx->hadb_entry->retrans_state,
HIP_SPI_DIRECTION_OUT,
- 0,
+ NEW_IPSEC_SA,
ctx->hadb_entry),
-1, "Failed to setup outbound SA");
_______________________________________________
Mailing list: https://launchpad.net/~hipl-core
Post to : [email protected]
Unsubscribe : https://launchpad.net/~hipl-core
More help : https://help.launchpad.net/ListHelp