Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/crypto/dist/ipsec-tools/src/racoon/nattraversal.c between versions 1.6 and 1.6.6.1

version 1.6, 2006/09/09 16:22:09 version 1.6.6.1, 2009/04/20 13:27:12
Line 319  natt_handle_vendorid (struct ph1handle * Line 319  natt_handle_vendorid (struct ph1handle *
       iph1->natt_flags |= NAT_ANNOUNCED;        iph1->natt_flags |= NAT_ANNOUNCED;
 }  }
   
   static void
   natt_keepalive_delete (struct natt_ka_addrs *ka)
   {
     TAILQ_REMOVE (&ka_tree, ka, chain);
     racoon_free (ka->src);
     racoon_free (ka->dst);
     racoon_free (ka);
   }
   
 /* NAT keepalive functions */  /* NAT keepalive functions */
 static void  static void
 natt_keepalive_send (void *param)  natt_keepalive_send (void *param)
Line 333  natt_keepalive_send (void *param) Line 342  natt_keepalive_send (void *param)
           
     s = getsockmyaddr(ka->src);      s = getsockmyaddr(ka->src);
     if (s == -1) {      if (s == -1) {
       TAILQ_REMOVE (&ka_tree, ka, chain);        natt_keepalive_delete(ka);
       racoon_free (ka);  
       continue;        continue;
     }      }
     plog (LLV_DEBUG, LOCATION, NULL, "KA: %s\n",       plog (LLV_DEBUG, LOCATION, NULL, "KA: %s\n", 
Line 435  natt_keepalive_remove (struct sockaddr * Line 443  natt_keepalive_remove (struct sockaddr *
   
       plog (LLV_DEBUG, LOCATION, NULL, "KA removing this one...\n");        plog (LLV_DEBUG, LOCATION, NULL, "KA removing this one...\n");
   
       TAILQ_REMOVE (&ka_tree, ka, chain);        natt_keepalive_delete (ka);
       racoon_free (ka);  
       /* Should we break here? Every pair of addresses should         /* Should we break here? Every pair of addresses should 
          be inserted only once, but who knows :-) Lets traverse            be inserted only once, but who knows :-) Lets traverse 
          the whole list... */           the whole list... */

Removed from v.1.6  
changed lines
  Added in v.1.6.6.1


CVSweb <webmaster@jp.NetBSD.org>