[BACK]Return to isakmp.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / crypto / dist / ipsec-tools / src / racoon

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/isakmp.c between version 1.20.6.11 and 1.20.6.12

version 1.20.6.11, 2008/07/11 08:08:41 version 1.20.6.12, 2008/08/12 12:47:07
Line 798  ph1_main(iph1, msg)
Line 798  ph1_main(iph1, msg)
                             [iph1->side]                              [iph1->side]
                             [iph1->status])(iph1, msg);                              [iph1->status])(iph1, msg);
         if (error != 0) {          if (error != 0) {
 #if 0  
                 /* XXX                  /* XXX
                  * When an invalid packet is received on phase1, it should                   * When an invalid packet is received on phase1, it should
                  * be selected to process this packet.  That is to respond                   * be selected to process this packet.  That is to respond
                  * with a notify and delete phase 1 handler, OR not to respond                   * with a notify and delete phase 1 handler, OR not to respond
                  * and keep phase 1 handler.                   * and keep phase 1 handler. However, in PHASE1ST_START when
                    * acting as RESPONDER we must not keep phase 1 handler or else
                    * it will stay forever.
                  */                   */
                 plog(LLV_ERROR, LOCATION, iph1->remote,  
                         "failed to pre-process packet.\n");                  if (iph1->side == RESPONDER && iph1->status == PHASE1ST_START) {
                 return -1;                          plog(LLV_ERROR, LOCATION, iph1->remote,
 #else                                  "failed to pre-process packet.\n");
                 /* ignore the error and keep phase 1 handler */                          return -1;
                 return 0;                  } else {
 #endif                          /* ignore the error and keep phase 1 handler */
                           return 0;
                   }
         }          }
   
 #ifndef ENABLE_FRAG  #ifndef ENABLE_FRAG

Legend:
Removed from v.1.20.6.11  
changed lines
  Added in v.1.20.6.12

CVSweb <webmaster@jp.NetBSD.org>