[hipl-commit] [tiny] Rev 3611: Renamed hip_xmit_r1 to hip_send_r1 for consistency reasons.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 4 Mar 2010 16:15:03 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Thu Mar 04 15:14:22 2010 +0100
Revision: 3611
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Renamed hip_xmit_r1 to hip_send_r1 for consistency reasons.

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

=== modified file 'hipd/init.c'
--- hipd/init.c 2010-03-04 13:44:35 +0000
+++ hipd/init.c 2010-03-04 14:14:22 +0000
@@ -410,38 +410,38 @@
     HIP_DEBUG("Initialize handle functions.\n");
 
     hip_register_handle_function(HIP_I1, HIP_STATE_UNASSOCIATED, 
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_UNASSOCIATED, &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_UNASSOCIATED, &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_I1_SENT,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_I1_SENT,      &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_I1_SENT,      &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_I2_SENT,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_I2_SENT,      &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_I2_SENT,      &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_R2_SENT,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_R2_SENT,      &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_R2_SENT,      &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_ESTABLISHED,  
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_ESTABLISHED,  &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_ESTABLISHED,  &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_CLOSING,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_CLOSING,      &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_CLOSING,      &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_CLOSED,       
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_CLOSED,       &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_CLOSED,       &hip_send_r1, 
1100);
     hip_register_handle_function(HIP_I1, HIP_STATE_NONE,         
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_I1, HIP_STATE_NONE,         &hip_xmit_r1, 
1100);
+    hip_register_handle_function(HIP_I1, HIP_STATE_NONE,         &hip_send_r1, 
1100);
 
     hip_register_handle_function(HIP_DATA, HIP_STATE_UNASSOCIATED, 
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_UNASSOCIATED, 
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_UNASSOCIATED, 
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_I1_SENT,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_I1_SENT,      
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_I1_SENT,      
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_I2_SENT,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_I2_SENT,      
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_I2_SENT,      
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_R2_SENT,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_R2_SENT,      
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_R2_SENT,      
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_ESTABLISHED,  
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_ESTABLISHED,  
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_ESTABLISHED,  
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSING,      
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSING,      
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSING,      
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSED,       
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSED,       
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSED,       
&hip_send_r1, 1100);
     hip_register_handle_function(HIP_DATA, HIP_STATE_NONE,         
&hip_handle_i1, 1000);
-    hip_register_handle_function(HIP_DATA, HIP_STATE_NONE,         
&hip_xmit_r1, 1100);
+    hip_register_handle_function(HIP_DATA, HIP_STATE_NONE,         
&hip_send_r1, 1100);
 
     hip_register_handle_function(HIP_I2, HIP_STATE_UNASSOCIATED, 
&hip_handle_i2, 1000);
     hip_register_handle_function(HIP_I2, HIP_STATE_I1_SENT,      
&hip_handle_i2, 1000);

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-03-04 13:44:35 +0000
+++ hipd/input.c        2010-03-04 14:14:22 +0000
@@ -2367,20 +2367,20 @@
  * Handles an incoming I1 packet and parses @c FROM or @c RELAY_FROM parameter
  * from the packet. If a @c FROM or a @c RELAY_FROM parameter is found, there 
must
  * also be a @c RVS_HMAC parameter present. This hmac is first verified. If the
- * verification fails, a negative error value is returned and hip_xmit_r1() is
+ * verification fails, a negative error value is returned and hip_send_r1() is
  * not invoked. If verification succeeds,
  * <ol>
  * <li>and a @c FROM parameter is found, the IP address obtained from the
- * parameter is passed to hip_xmit_r1() as the destination IP address. The
- * source IP address of the received I1 packet is passed to hip_xmit_r1() as
+ * parameter is passed to hip_send_r1() as the destination IP address. The
+ * source IP address of the received I1 packet is passed to hip_send_r1() as
  * the IP of RVS.</li>
  * <li>and a @c RELAY_FROM parameter is found, the IP address and
- * port number obtained from the parameter is passed to hip_xmit_r1() as the
+ * port number obtained from the parameter is passed to hip_send_r1() as the
  * destination IP address and destination port. The source IP address and 
source
- * port of the received I1 packet is passed to hip_xmit_r1() as the IP and port
+ * port of the received I1 packet is passed to hip_send_r1() as the IP and port
  * of RVS.</li>
  * <li>If no @c FROM or @c RELAY_FROM parameters are found, this function does
- * nothing else but calls hip_xmit_r1().</li>
+ * nothing else but calls hip_send_r1().</li>
  * </ol>
  *
  * @param i1       a pointer to the received I1 HIP packet common header with

=== modified file 'hipd/output.c'
--- hipd/output.c       2010-03-04 13:44:35 +0000
+++ hipd/output.c       2010-03-04 14:14:22 +0000
@@ -734,7 +734,7 @@
  * @param rvs_count     number of addresses in @c traversed_rvs.
  * @return              zero on success, or negative error value on error.
  */
-int hip_xmit_r1(const uint32_t packet_type,
+int hip_send_r1(const uint32_t packet_type,
                 const uint32_t ha_state,
                 struct hip_packet_context *ctx)
 {

=== modified file 'hipd/output.h'
--- hipd/output.h       2010-03-04 13:44:35 +0000
+++ hipd/output.h       2010-03-04 14:14:22 +0000
@@ -51,7 +51,7 @@
                                  const struct hip_host_id *host_id_pub,
                                  int cookie_k);
 
-int hip_xmit_r1(const uint32_t packet_type,
+int hip_send_r1(const uint32_t packet_type,
                 const uint32_t ha_state,
                 struct hip_packet_context *ctx);

Other related posts:

  • » [hipl-commit] [tiny] Rev 3611: Renamed hip_xmit_r1 to hip_send_r1 for consistency reasons. - Tim Just