ipsec-tools-users:
 
1 I find a bug in proposal.c:
       
int set_proposal_from_proposal(iph2)
{
   ....
 
   for (pr = pp_peer->head; pr; pr = pr->next) {
 
   newpr = newsaproto();
   if (newpr == NULL) {
    plog(LLV_ERROR, LOCATION, NULL,
        "failed to allocate saproto.\n");
    goto end;
   }
   newpr->proto_id = pr->proto_id;
   newpr->spisize = pr->spisize;
   newpr->encmode = pr->encmode;
   newpr->spi = 0;
   newpr->spi_p = pr->spi; /* copy peer's SPI */
   newpr->reqid_in = 0;
   newpr->reqid_out = 0;

  }/* bug */
 
  if (set_satrnsbysainfo(newpr, iph2->sainfo) < 0) {
   plog(LLV_ERROR, LOCATION, NULL,
    "failed to get algorithms.\n");
   goto end;
  }
 
  inssaproto(pp0, newpr);
 
 } /* here should be for-end */

  inssaprop(&newpp, pp0);
 }
 
        ....
}

2 After fixed the bug above and used nested proposal ,  racoon can't add policy automaticall. why ?
 
 information list:
 
 2007-05-15 10:07:56: INFO: IPsec-SA established: ESP/Tunnel 11.11.11.2[0]->11.11.11.1[0] spi=193546915(0xb894aa3)
2007-05-15 10:07:56: DEBUG: ===
2007-05-15 10:07:56: DEBUG: get pfkey ADD message
2007-05-15 10:07:56: DEBUG2:
02030009 1b000000 8ee70e1c 4a4a0000 02000100 0000c29f 00010002 00000000
04000300 00000000 00000000 00000000 100e0000 00000000 00000000 00000000
04000400 00000000 00000000 00000000 400b0000 00000000 00000000 00000000
04000200 00000000 00000000 00000000 fc154946 00000000 00000000 00000000
03000500 00200000 02000000 0b0b0b02 00000000 00000000 03000600 00200000
02000000 0b0b0b01 00000000 00000000 03000700 ff000000 02000000 00000000
00000000 00000000 02001300 01000000 00000000 00000000
2007-05-15 10:07:56: INFO: IPsec-SA established: IPCOMP/Transport 11.11.11.2[0]->11.11.11.1[0] spi=49823(0xc29f)
2007-05-15 10:07:56: DEBUG: ===
2007-05-15 10:07:56: DEBUG: get pfkey X_SPDUPDATE message
2007-05-15 10:07:56: DEBUG2:
020d1600 02000000 00000000 4a4a0000
2007-05-15 10:07:56: ERROR: msg->sadb_msg_errno is 22
2007-05-15 10:07:56: ERROR: pfkey X_SPDUPDATE failed: Invalid argument
2007-05-15 10:07:56: DEBUG: get pfkey X_SPDUPDATE message
2007-05-15 10:07:56: DEBUG2:
020d1600 02000000 00000000 4a4a0000
2007-05-15 10:07:56: ERROR: msg->sadb_msg_errno is 22
2007-05-15 10:07:56: ERROR: pfkey X_SPDUPDATE failed: Invalid argument
2007-05-15 10:07:56: DEBUG: get pfkey X_SPDUPDATE message
2007-05-15 10:07:56: DEBUG2:
020d1600 02000000 00000000 4a4a0000
2007-05-15 10:07:56: ERROR: msg->sadb_msg_errno is 22
2007-05-15 10:07:56: ERROR: pfkey X_SPDUPDATE failed: Invalid argument
2007-05-15 10:09:25: INFO: caught signal 2
2007-05-15 10:09:25: DEBUG: get pfkey FLUSH message
2007-05-15 10:09:25: DEBUG2:
02090000 02000000 00000000 4a4a0000
2007-05-15 10:09:25: INFO: generated policy, deleting it.
2007-05-15 10:09:25: DEBUG: get a src address from ID payload 10.10.10.0[0] prefixlen=24 ul_proto=255
2007-05-15 10:09:25: DEBUG: get dst address from ID payload 12.12.12.0[0] prefixlen=24 ul_proto=255
2007-05-15 10:09:25: DEBUG: call pfkey_send_spddelete
2007-05-15 10:09:25: DEBUG: pfkey spddelete(inbound) sent.
2007-05-15 10:09:25: DEBUG: call pfkey_send_spddelete
2007-05-15 10:09:25: DEBUG: pfkey spddelete(forward) sent.
2007-05-15 10:09:25: DEBUG: call pfkey_send_spddelete
2007-05-15 10:09:25: DEBUG: pfkey spddelete(outbound) sent.
2007-05-15 10:09:25: DEBUG: an undead schedule has been deleted.
2007-05-15 10:09:25: DEBUG: get pfkey X_SPDDELETE message
2007-05-15 10:09:25: DEBUG2:
2007-05-15 10:09:25: DEBUG: an undead schedule has been deleted.
2007-05-15 10:09:25: DEBUG: get pfkey X_SPDDELETE message
2007-05-15 10:09:25: DEBUG2:
020f0200 02000000 00000000 4a4a0000
2007-05-15 10:09:25: ERROR: msg->sadb_msg_errno is 2
2007-05-15 10:09:25: ERROR: pfkey X_SPDDELETE failed: No such file or directory
2007-05-15 10:09:25: DEBUG: get pfkey X_SPDDELETE message
2007-05-15 10:09:25: DEBUG2:
020f0200 02000000 00000000 4a4a0000
2007-05-15 10:09:25: ERROR: msg->sadb_msg_errno is 2
2007-05-15 10:09:25: ERROR: pfkey X_SPDDELETE failed: No such file or directory
2007-05-15 10:09:25: DEBUG: get pfkey X_SPDDELETE message
2007-05-15 10:09:25: DEBUG2:
020f0200 02000000 00000000 4a4a0000
2007-05-15 10:09:25: ERROR: msg->sadb_msg_errno is 2
2007-05-15 10:09:25: ERROR: pfkey  X_SPDDELETE failed: No such file or directory
 
please give me help ,thank you!
 
jonathan
 
 
 



免费试玩2006中国最佳网络游戏--梦幻西游