[hipl-commit] [trunk] Rev 4729: hipd: update some invocations to fit new signatures.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 9 Jun 2010 02:32:36 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 09/06/2010 at 02:32:36
Revision: 4729
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: update some invocations to fit new signatures.

Modified:
  M  hipd/init.c
  M  hipd/input.c

=== modified file 'hipd/init.c'
--- hipd/init.c 2010-06-01 13:26:07 +0000
+++ hipd/init.c 2010-06-08 23:31:25 +0000
@@ -980,7 +980,7 @@
     HIP_IFEL(hip_create_lock_file(HIP_DAEMON_LOCK_FILE, killold), -1,
              "locking failed\n");
 
-    hip_init_hostid_db(NULL);
+    hip_init_hostid_db();
 
     hip_set_os_dep_variables();
 

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-06-08 22:10:30 +0000
+++ hipd/input.c        2010-06-08 23:31:25 +0000
@@ -745,7 +745,7 @@
               str,
               len,
               hip_get_param_host_id_hostname(peer_host_id));
-    HIP_IFE(hip_init_peer(ctx->hadb_entry, ctx->input_msg, peer_host_id),
+    HIP_IFE(hip_init_peer(ctx->hadb_entry, peer_host_id),
             -EINVAL);
 
 #ifdef CONFIG_HIP_PERFORMANCE
@@ -1425,7 +1425,7 @@
      if (!ctx->hadb_entry) {
          HIP_DEBUG("No HIP association found. Creating a new one.\n");
 
-         HIP_IFEL(!(ctx->hadb_entry = hip_hadb_create_state(0)),
+         HIP_IFEL(!(ctx->hadb_entry = hip_hadb_create_state()),
                   -ENOMEM,
                   "Out of memory when allocating memory for a new HIP " \
                   "association. Dropping the I2 packet.\n");
@@ -1606,7 +1606,7 @@
                 hip_get_param_total_len(host_id_in_enc));
 
     /* Store peer's public key and HIT to HA */
-     HIP_IFE(hip_init_peer(ctx->hadb_entry, ctx->input_msg, host_id_in_enc), 
-EINVAL);
+     HIP_IFE(hip_init_peer(ctx->hadb_entry, host_id_in_enc), -EINVAL);
      /* Validate signature */
  #ifdef CONFIG_HIP_PERFORMANCE
      HIP_DEBUG("Start PERF_VERIFY(2)\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 4729: hipd: update some invocations to fit new signatures. - Mircea Gherzan