Home | History | Annotate | Download | only in racoon

Lines Matching defs:local

213 	struct sockaddr_storage local;
215 unsigned int local_len = sizeof(local);
223 (struct sockaddr *)&local, &local_len)) < 0) {
322 (struct sockaddr *)&local, &local_len)) < 0) {
354 (struct sockaddr *)&local));
369 res=check_recvdpkt((struct sockaddr *)&remote,(struct sockaddr *)&local, buf);
380 (struct sockaddr *)&local) != 0) goto end;
397 isakmp_main(msg, remote, local)
399 struct sockaddr *remote, *local;
407 isakmp_printpacket(msg, remote, local, 0);
451 isakmp_info_send_nx(isakmp, remote, local,
475 (cmpsaddrstrict(iph1->local, local) != 0)))
479 racoon_free(iph1->local);
481 iph1->local = NULL;
492 iph1->local = dupsaddr(local);
493 if (iph1->local == NULL) {
509 saddr2str_fromto ("%s<->%s", iph1->remote, iph1->local));
572 if (isakmp_ph1begin_r(msg, remote, local,
606 return frag_handler(iph1, msg, remote, local);
652 return frag_handler(iph1, msg, remote, local);
664 isakmp_info_send_nx(isakmp, remote, local,
682 return frag_handler(iph1, msg, remote, local);
736 return frag_handler(iph1, msg, remote, local);
754 return frag_handler(iph1, msg, remote, local);
895 /* don't anything if local test mode. */
1022 isakmp_ph1begin_i(rmconf, remote, local)
1024 struct sockaddr *remote, *local;
1063 if (copy_ph1addresses(iph1, rmconf, remote, local) < 0) {
1077 a = racoon_strdup(saddr2str(iph1->local));
1118 struct sockaddr *local, u_int8_t etype)
1178 if(extract_port(local) == lcconf->port_isakmp_natt)
1183 if (copy_ph1addresses(iph1, rmconf, remote, local) < 0) {
1193 a = racoon_strdup(saddr2str(iph1->local));
1241 return isakmp_main(msg, remote, local);
1336 iph2->src = dupsaddr(iph1->local); /* XXX should be considered */
1832 s = getsockmyaddr(iph1->local);
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,
1997 src = racoon_strdup(saddr2str(iph1->local));
2046 src = racoon_strdup(saddr2str(iph1->local));
2054 EVT_PUSH(iph1->local, iph1->remote, EVTT_PHASE1_DOWN, NULL);
2180 set_port(iph2->src, extract_port(iph1->local));
2334 plog(LLV_DEBUG2, LOCATION, NULL, "iph1->local: %s\n", saddr2str(iph1->local));
2339 set_port(iph2->src, extract_port(iph1->local));
2462 isakmp_newcookie(place, remote, local)
2465 struct sockaddr *local;
2477 if (remote->sa_family != local->sa_family) {
2479 "address family mismatch, remote:%d local:%d\n",
2480 remote->sa_family, local->sa_family);
2487 sa2 = (caddr_t)&((struct sockaddr_in *)local)->sin_addr;
2493 sa2 = (caddr_t)&((struct sockaddr_in6 *)local)->sin6_addr;
2521 port = ((struct sockaddr_in *)local)->sin_port;
2856 copy_ph1addresses(iph1, rmconf, remote, local)
2859 struct sockaddr *remote, *local;
2882 if (local == NULL)
2883 iph1->local = getlocaladdr(iph1->remote);
2885 iph1->local = dupsaddr(local);
2886 if (iph1->local == NULL)
2889 if (extract_port(iph1->local) == 0)
2890 set_port(iph1->local, PORT_ISAKMP);
2893 if (extract_port(iph1->local) == lcconf->port_isakmp_natt) {
2928 src = racoon_strdup(saddr2str(iph1->local));
2938 EVT_PUSH(iph1->local, iph1->remote, EVTT_PHASE1_UP, NULL);
2940 EVT_PUSH(iph1->local, iph1->remote, EVTT_NO_ISAKMP_CFG, NULL);
3021 frag_handler(iph1, msg, remote, local)
3025 struct sockaddr *local;
3035 return isakmp_main(newmsg, remote, local);
3065 /* local address */
3066 sin = (struct sockaddr_in *)iph1->local;
3208 new_iph1 = getph1byaddr(iph1->local, iph1->remote, 1);
3259 * Select only SAs where src == local and dst == remote (outgoing)
3260 * or src == remote and dst == local (incoming).
3262 if ((CMPSADDR(iph1->local, src) || CMPSADDR(iph1->remote, dst)) &&
3263 (CMPSADDR(iph1->local, dst) || CMPSADDR(iph1->remote, src))) {