• Home
  • Raw
  • Download

Lines Matching refs:remote

212 	struct sockaddr_storage remote;  local
214 unsigned int remote_len = sizeof(remote);
222 MSG_PEEK, (struct sockaddr *)&remote, &remote_len,
236 0, (struct sockaddr *)&remote, &remote_len)) != 1) {
279 plog(LLV_ERROR, LOCATION, (struct sockaddr *)&remote,
284 0, (struct sockaddr *)&remote, &remote_len)) < 0) {
297 0, (struct sockaddr *)&remote, &remote_len)) < 0) {
312 0, (struct sockaddr *)&remote, &remote_len)) < 0) {
321 0, (struct sockaddr *)&remote, &remote_len,
343 plog(LLV_ERROR, LOCATION, (struct sockaddr *)&remote,
353 (struct sockaddr *)&remote,
358 if (extract_port((struct sockaddr *)&remote) == 0) {
359 plog(LLV_ERROR, LOCATION, (struct sockaddr *)&remote,
369 res=check_recvdpkt((struct sockaddr *)&remote,(struct sockaddr *)&local, buf);
373 saddr2str((struct sockaddr *)&remote), res);
379 if (isakmp_main(buf, (struct sockaddr *)&remote,
397 isakmp_main(msg, remote, local) in isakmp_main() argument
399 struct sockaddr *remote, *local;
407 isakmp_printpacket(msg, remote, local, 0);
412 plog(LLV_ERROR, LOCATION, remote,
425 plog(LLV_ERROR, LOCATION, remote,
432 plog(LLV_ERROR, LOCATION, remote,
443 plog(LLV_ERROR, LOCATION, remote,
451 isakmp_info_send_nx(isakmp, remote, local,
453 plog(LLV_ERROR, LOCATION, remote,
464 plog(LLV_DEBUG, LOCATION, remote,
474 ((cmpsaddrstrict(iph1->remote, remote) != 0) ||
478 racoon_free(iph1->remote);
480 iph1->remote = NULL;
484 iph1->remote = dupsaddr(remote);
485 if (iph1->remote == NULL) {
486 plog(LLV_ERROR, LOCATION, iph1->remote,
494 plog(LLV_ERROR, LOCATION, iph1->remote,
509 saddr2str_fromto ("%s<->%s", iph1->remote, iph1->local));
516 if (cmpsaddrstrict(iph1->remote, remote) != 0) {
519 saddr_db = racoon_strdup(saddr2str(iph1->remote));
520 saddr_act = racoon_strdup(saddr2str(remote));
524 plog(LLV_WARNING, LOCATION, remote,
546 plog(LLV_ERROR, LOCATION, remote,
565 plog(LLV_DEBUG, LOCATION, remote,
572 if (isakmp_ph1begin_r(msg, remote, local,
582 plog(LLV_DEBUG, LOCATION, remote,
596 plog(LLV_ERROR, LOCATION, iph1->remote,
606 return frag_handler(iph1, msg, remote, local);
611 plog(LLV_ERROR, LOCATION, iph1->remote,
620 plog(LLV_INFO, LOCATION, remote,
637 plog(LLV_ERROR, LOCATION, remote,
642 if (cmpsaddrstrict(iph1->remote, remote) != 0) {
643 plog(LLV_WARNING, LOCATION, remote,
646 saddr2str(iph1->remote));
652 return frag_handler(iph1, msg, remote, local);
664 isakmp_info_send_nx(isakmp, remote, local,
666 plog(LLV_ERROR, LOCATION, remote,
682 return frag_handler(iph1, msg, remote, local);
687 plog(LLV_ERROR, LOCATION, remote,
716 plog(LLV_ERROR, LOCATION, iph1->remote,
728 plog(LLV_ERROR, LOCATION, remote,
736 return frag_handler(iph1, msg, remote, local);
748 isakmp->etype, saddr2str(remote));
754 return frag_handler(iph1, msg, remote, local);
765 isakmp->etype, saddr2str(remote));
796 plog(LLV_ERROR, LOCATION, iph1->remote,
815 plog(LLV_ERROR, LOCATION, iph1->remote,
843 plog(LLV_ERROR, LOCATION, iph1->remote,
897 && iph1->rmconf->ini_contact && !getcontacted(iph1->remote)) {
902 if (inscontacted(iph1->remote) == -1) {
903 plog(LLV_ERROR, LOCATION, iph1->remote,
968 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
976 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
1004 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
1022 isakmp_ph1begin_i(rmconf, remote, local) in isakmp_ph1begin_i() argument
1024 struct sockaddr *remote, *local;
1063 if (copy_ph1addresses(iph1, rmconf, remote, local) < 0) {
1082 a, saddr2str(iph1->remote));
1117 isakmp_ph1begin_r(vchar_t *msg, struct sockaddr *remote, in isakmp_ph1begin_r() argument
1129 rmconf = getrmconf(remote); in isakmp_ph1begin_r()
1131 plog(LLV_ERROR, LOCATION, remote, in isakmp_ph1begin_r()
1140 plog(LLV_ERROR, LOCATION, remote, in isakmp_ph1begin_r()
1183 if (copy_ph1addresses(iph1, rmconf, remote, local) < 0) { in isakmp_ph1begin_r()
1198 a, saddr2str(iph1->remote)); in isakmp_ph1begin_r()
1218 plog(LLV_ERROR, LOCATION, remote, in isakmp_ph1begin_r()
1241 return isakmp_main(msg, remote, local); in isakmp_ph1begin_r()
1331 iph2->dst = dupsaddr(iph1->remote); /* XXX should be considered */
1376 plog(LLV_ERROR, LOCATION, iph1->remote,
1395 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
1838 saddr2str_fromto("from %s to %s", iph1->local, iph1->remote));
1851 iph1->local, iph1->remote, lcconf->count_persend);
1893 EVT_PUSH(iph1->local, iph1->remote,
1903 EVT_PUSH(iph1->local, iph1->remote,
1998 dst = racoon_strdup(saddr2str(iph1->remote));
2047 dst = racoon_strdup(saddr2str(iph1->remote));
2054 EVT_PUSH(iph1->local, iph1->remote, EVTT_PHASE1_DOWN, NULL);
2180 set_port(iph2->dst, extract_port(iph1->remote));
2247 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
2334 plog(LLV_DEBUG2, LOCATION, NULL, "iph1->remote: %s\n", saddr2str(iph1->remote));
2339 set_port(iph2->dst, extract_port(iph1->remote));
2461 isakmp_newcookie(place, remote, local) in isakmp_newcookie() argument
2463 struct sockaddr *remote;
2476 if (remote->sa_family != local->sa_family) {
2479 remote->sa_family, local->sa_family);
2482 switch (remote->sa_family) {
2485 sa1 = (caddr_t)&((struct sockaddr_in *)remote)->sin_addr;
2491 sa1 = (caddr_t)&((struct sockaddr_in6 *)remote)->sin6_addr;
2497 "invalid family: %d\n", remote->sa_family);
2513 port = ((struct sockaddr_in *)remote)->sin_port;
2855 copy_ph1addresses(iph1, rmconf, remote, local) in copy_ph1addresses() argument
2858 struct sockaddr *remote, *local;
2863 iph1->remote = dupsaddr(remote);
2864 if (iph1->remote == NULL)
2874 if (extract_port(iph1->remote) == 0) {
2875 port = extract_port(rmconf->remote);
2878 set_port(iph1->remote, port);
2882 iph1->local = getlocaladdr(iph1->remote);
2906 plog(LLV_ERROR, LOCATION, iph1->remote, "wrong state %u.\n",
2916 plog(LLV_ERROR, LOCATION, iph2->ph1->remote, "wrong state %u.\n",
2928 dst = racoon_strdup(saddr2str(iph1->remote));
2937 EVT_PUSH(iph1->local, iph1->remote, EVTT_PHASE1_UP, NULL);
2939 EVT_PUSH(iph1->local, iph1->remote, EVTT_NO_ISAKMP_CFG, NULL);
3020 frag_handler(iph1, msg, remote, local) in frag_handler() argument
3023 struct sockaddr *remote;
3030 plog(LLV_ERROR, LOCATION, remote,
3034 return isakmp_main(newmsg, remote, local);
3080 if (iph1->remote != NULL) {
3081 sin = (struct sockaddr_in *)iph1->remote;
3207 new_iph1 = getph1byaddr(iph1->local, iph1->remote, 1);
3261 if ((CMPSADDR(iph1->local, src) || CMPSADDR(iph1->remote, dst)) &&
3262 (CMPSADDR(iph1->local, dst) || CMPSADDR(iph1->remote, src))) {