[hipl-commit] [tiny] Rev 3593: Changed return value of hip_drop_packet to appropriate type.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 2 Mar 2010 12:33:18 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Tue Mar 02 11:31:25 2010 +0100
Revision: 3593
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Changed return value of hip_drop_packet to appropriate type.
  
  Each handle function has to return an int value.

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

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-03-01 09:27:42 +0000
+++ hipd/input.c        2010-03-02 10:31:25 +0000
@@ -1051,12 +1051,13 @@
     return err;
 }
 
-void hip_drop_packet(const uint32_t packet_type,
-                     const uint32_t ha_state,
-                     struct hip_packet_context *packet_ctx)
+int hip_drop_packet(const uint32_t packet_type,
+                    const uint32_t ha_state,
+                    struct hip_packet_context *packet_ctx)
 {
     HIP_ERROR("Received packet type %d in state: %s. Dropping.\n",
               packet_type, hip_state_str(ha_state));
+    return 0;
 }
 
 /**

=== modified file 'hipd/input.h'
--- hipd/input.h        2010-02-26 13:55:48 +0000
+++ hipd/input.h        2010-03-02 10:31:25 +0000
@@ -86,9 +86,9 @@
                                    struct in6_addr *daddr,
                                    hip_portpair_t *info);
 
-void hip_drop_packet(const uint32_t packet_type,
-                     const uint32_t ha_state,
-                     struct hip_packet_context *packet_ctx);
+int hip_drop_packet(const uint32_t packet_type,
+                    const uint32_t ha_state,
+                    struct hip_packet_context *packet_ctx);
 
 int hip_receive_bos(struct hip_common *bos, struct in6_addr *bos_saddr,
                     struct in6_addr *bos_daddr, hip_ha_t *entry, 
hip_portpair_t *bos_info);

Other related posts:

  • » [hipl-commit] [tiny] Rev 3593: Changed return value of hip_drop_packet to appropriate type. - Tim Just