[hipl-commit] [trunk] Rev 3946: Compilation fix to r3943 with --disable-debug

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 15 Mar 2010 14:36:34 +0200

Committer: Miika Komu <miika@xxxxxx>
Date: Mon Mar 15 14:36:32 2010 +0200
Revision: 3946
Revision-id: miika@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Compilation fix to r3943 with --disable-debug

Modified:
  M  firewall/conntrack.c

=== modified file 'firewall/conntrack.c'
--- firewall/conntrack.c        2010-03-14 15:12:47 +0000
+++ firewall/conntrack.c        2010-03-15 12:36:32 +0000
@@ -880,7 +880,6 @@
                                  const hip_fw_context_t *ctx)
 {
     struct iphdr *iph = (struct iphdr *) ctx->ipq_packet->payload;
-    struct udphdr *udph = (struct udphdr *) ((uint8_t *) iph + iph->ihl * 4);
     struct hip_relay_to *relay_to = NULL; /* same format as relay_from */
     struct tuple *tuple, *reverse_tuple;
     int err = 0;
@@ -897,10 +896,6 @@
 
     HIP_DEBUG_IN6ADDR("relay_to_addr", &relay_to->address);
 
-    HIP_DEBUG("relay_to_port=%d udp_src=%d\n",
-              (relay_to ? htons(relay_to->port) : -1),
-              htons(udph->source));
-
     HIP_IFEL(!((ctx->ip_version == 4) &&
                (iph->protocol == IPPROTO_UDP)), 0,
              "Not a relay packet, ignore\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 3946: Compilation fix to r3943 with --disable-debug - Miika Komu