[hipl-commit] [tiny] Rev 3570: Handling NOTIFY packets now uses libmodularization.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 24 Feb 2010 16:59:58 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Wed Feb 24 15:59:13 2010 +0100
Revision: 3570
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Handling NOTIFY packets now uses libmodularization.

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

=== modified file 'hipd/init.c'
--- hipd/init.c 2010-02-24 14:47:08 +0000
+++ hipd/init.c 2010-02-24 14:59:13 +0000
@@ -499,6 +499,13 @@
 #endif
 #endif
 
+    hip_register_handle_function(HIP_NOTIFY, HIP_STATE_I1_SENT,     
&hip_handle_notify, 0);
+    hip_register_handle_function(HIP_NOTIFY, HIP_STATE_I2_SENT,     
&hip_handle_notify, 0);
+    hip_register_handle_function(HIP_NOTIFY, HIP_STATE_R2_SENT,     
&hip_handle_notify, 0);
+    hip_register_handle_function(HIP_NOTIFY, HIP_STATE_ESTABLISHED, 
&hip_handle_notify, 0);
+    hip_register_handle_function(HIP_NOTIFY, HIP_STATE_CLOSING,     
&hip_handle_notify, 0);
+    hip_register_handle_function(HIP_NOTIFY, HIP_STATE_CLOSED,      
&hip_handle_notify, 0);
+
     return err;
 }
 

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-02-24 14:43:38 +0000
+++ hipd/input.c        2010-02-24 14:59:13 +0000
@@ -601,9 +601,7 @@
     case HIP_R2:
         break;
     case HIP_NOTIFY:
-        HIP_IFCS(ctx.hadb_entry, err = hip_handle_notify(type, state, &ctx));
         break;
-
     case HIP_BOS:
         err = hip_handle_bos(type, state, &ctx);
 
@@ -2537,7 +2535,7 @@
            "Received a NOTIFY packet with illegal controls: 0x%x, ignoring " \
            "the packet.\n", notify_controls);
 
-    /* Loop through all the parameters in the received I1 packet. */
+    /* Loop through all the parameters in the received packet. */
     while ((current_param =
                 hip_get_next_param(ctx->msg, current_param)) != NULL) {
         param_type = hip_get_param_type(current_param);

Other related posts:

  • » [hipl-commit] [tiny] Rev 3570: Handling NOTIFY packets now uses libmodularization. - Tim Just