[hipl-commit] [trunk] Rev 4738: firewall: mark/remove some more unused parameters.

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

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 09/06/2010 at 16:13:40
Revision: 4738
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  firewall: mark/remove some more unused parameters.

Modified:
  M  firewall/conntrack.c

=== modified file 'firewall/conntrack.c'
--- firewall/conntrack.c        2010-06-08 07:28:34 +0000
+++ firewall/conntrack.c        2010-06-09 13:13:23 +0000
@@ -401,10 +401,8 @@
  * initialize and store a new HIP/ESP connnection into the connection table
  *
  * @param data the connection-related data to be inserted
- * @param src source IP address from the packet
- * @param dst destination IP address from the packet
  */
-static void insert_new_connection(const struct hip_data *data, const struct 
in6_addr *src, const struct in6_addr *dst)
+static void insert_new_connection(const struct hip_data *data)
 {
     struct connection *connection = NULL;
 
@@ -888,7 +886,7 @@
 
 // first check signature then store hi
 static int handle_r1(struct hip_common *common, struct tuple *tuple,
-                     int verify_responder, const hip_fw_context_t *ctx)
+                     int verify_responder, UNUSED const hip_fw_context_t *ctx)
 {
     struct in6_addr hit;
     struct hip_host_id *host_id = NULL;
@@ -1444,11 +1442,11 @@
  *
  * @return one if packet was processed successfully or zero otherwise
  */
-static int handle_close(const struct in6_addr *ip6_src,
-                        const struct in6_addr *ip6_dst,
-                        const struct hip_common *common,
+static int handle_close(UNUSED const struct in6_addr *ip6_src,
+                        UNUSED const struct in6_addr *ip6_dst,
+                        UNUSED const struct hip_common *common,
                         struct tuple *tuple,
-                        const hip_fw_context_t *ctx)
+                        UNUSED const hip_fw_context_t *ctx)
 {
     int err = 1;
 
@@ -1482,11 +1480,11 @@
  *
  * @return one if packet was processed successfully or zero otherwise
  */
-static int handle_close_ack(const struct in6_addr *ip6_src,
-                            const struct in6_addr *ip6_dst,
-                            const struct hip_common *common,
+static int handle_close_ack(UNUSED const struct in6_addr *ip6_src,
+                            UNUSED const struct in6_addr *ip6_dst,
+                            UNUSED const struct hip_common *common,
                             struct tuple *tuple,
-                            const hip_fw_context_t *ctx)
+                            UNUSED const hip_fw_context_t *ctx)
 {
     int err = 1;
 
@@ -1607,7 +1605,7 @@
             }
 #endif
 
-            insert_new_connection(data, ip6_src, ip6_dst);
+            insert_new_connection(data);
 
             // TODO call free for all pointer members of data - comment by Rene
             free(data);

Other related posts:

  • » [hipl-commit] [trunk] Rev 4738: firewall: mark/remove some more unused parameters. - Mircea Gherzan