[hipl-commit] [trunk] Rev 4560: hipd: fix shadowing in the SADP API code.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 18 May 2010 15:45:36 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 18/05/2010 at 15:45:36
Revision: 4560
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: fix shadowing in the SADP API code.

Modified:
  M  hipd/user_ipsec_sadb_api.c

=== modified file 'hipd/user_ipsec_sadb_api.c'
--- hipd/user_ipsec_sadb_api.c  2010-04-09 16:24:44 +0000
+++ hipd/user_ipsec_sadb_api.c  2010-05-18 12:45:12 +0000
@@ -27,18 +27,18 @@
  */
 static int hip_userspace_ipsec_send_to_fw(const struct hip_common *msg)
 {
-    struct sockaddr_in6 hip_firewall_addr;
+    struct sockaddr_in6 hip_fw_addr;
     struct in6_addr loopback = in6addr_loopback;
     int err                  = 0;
 
     HIP_ASSERT(msg != NULL);
 
     // destination is firewall
-    hip_firewall_addr.sin6_family = AF_INET6;
-    hip_firewall_addr.sin6_port   = htons(HIP_FIREWALL_PORT);
-    ipv6_addr_copy(&hip_firewall_addr.sin6_addr, &loopback);
+    hip_fw_addr.sin6_family = AF_INET6;
+    hip_fw_addr.sin6_port   = htons(HIP_FIREWALL_PORT);
+    ipv6_addr_copy(&hip_fw_addr.sin6_addr, &loopback);
 
-    err = hip_sendto_user(msg, (struct sockaddr *) &hip_firewall_addr);
+    err = hip_sendto_user(msg, (struct sockaddr *) &hip_fw_addr);
     if (err < 0) {
         HIP_ERROR("sending of message to firewall failed\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 4560: hipd: fix shadowing in the SADP API code. - Mircea Gherzan