• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/iputils/racoon/

Lines Matching defs:remote

155 	struct sockaddr_storage remote;
157 int remote_len = sizeof(remote);
166 MSG_PEEK, (struct sockaddr *)&remote, &remote_len,
177 plog(LLV_ERROR, LOCATION, (struct sockaddr *)&remote,
181 0, (struct sockaddr *)&remote, &remote_len)) < 0) {
194 0, (struct sockaddr *)&remote, &remote_len)) < 0) {
202 0, (struct sockaddr *)&remote, &remote_len,
212 plog(LLV_ERROR, LOCATION, (struct sockaddr *)&remote,
220 len, saddr2str((struct sockaddr *)&remote));
224 switch (remote.ss_family) {
226 port = ((struct sockaddr_in *)&remote)->sin_port;
230 port = ((struct sockaddr_in6 *)&remote)->sin6_port;
235 "invalid family: %d\n", remote.ss_family);
239 plog(LLV_ERROR, LOCATION, (struct sockaddr *)&remote,
247 if (check_recvdpkt((struct sockaddr *)&remote,
251 saddr2str((struct sockaddr *)&remote));
257 if (isakmp_main(buf, (struct sockaddr *)&remote,
273 isakmp_main(msg, remote, local)
275 struct sockaddr *remote, *local;
283 isakmp_printpacket(msg, remote, local, 0);
288 plog(LLV_ERROR, LOCATION, remote,
296 plog(LLV_ERROR, LOCATION, remote,
303 plog(LLV_ERROR, LOCATION, remote,
313 plog(LLV_ERROR, LOCATION, remote,
321 isakmp_info_send_nx(isakmp, remote, local,
323 plog(LLV_ERROR, LOCATION, remote,
334 plog(LLV_DEBUG, LOCATION, remote,
341 if (cmpsaddrstrict(iph1->remote, remote) != 0) {
344 saddr_db = strdup(saddr2str(iph1->remote));
345 saddr_act = strdup(saddr2str(remote));
347 plog(LLV_WARNING, LOCATION, remote,
348 "remote address mismatched. db=%s, act=%s\n",
367 plog(LLV_ERROR, LOCATION, remote,
386 plog(LLV_DEBUG, LOCATION, remote,
393 if (isakmp_ph1begin_r(msg, remote, local,
403 plog(LLV_DEBUG, LOCATION, remote,
417 plog(LLV_ERROR, LOCATION, iph1->remote,
427 plog(LLV_ERROR, LOCATION, iph1->remote,
436 plog(LLV_INFO, LOCATION, remote,
453 plog(LLV_ERROR, LOCATION, remote,
458 if (cmpsaddrstrict(iph1->remote, remote) != 0) {
459 plog(LLV_WARNING, LOCATION, remote,
460 "remote address mismatched. "
462 saddr2str(iph1->remote));
475 isakmp_info_send_nx(isakmp, remote, local,
477 plog(LLV_ERROR, LOCATION, remote,
487 plog(LLV_ERROR, LOCATION, remote,
510 plog(LLV_ERROR, LOCATION, iph1->remote,
522 plog(LLV_ERROR, LOCATION, remote,
534 isakmp->etype, saddr2str(remote));
565 plog(LLV_ERROR, LOCATION, iph1->remote,
595 plog(LLV_ERROR, LOCATION, iph1->remote,
625 && iph1->rmconf->ini_contact && !getcontacted(iph1->remote)) {
630 if (inscontacted(iph1->remote) == -1) {
631 plog(LLV_ERROR, LOCATION, iph1->remote,
671 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
679 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
709 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
727 isakmp_ph1begin_i(rmconf, remote)
729 struct sockaddr *remote;
753 if (copy_ph1addresses(iph1, rmconf, remote, NULL) < 0)
768 a, saddr2str(iph1->remote));
803 isakmp_ph1begin_r(msg, remote, local, etype)
805 struct sockaddr *remote, *local;
817 rmconf = getrmconf(remote);
819 plog(LLV_ERROR, LOCATION, remote,
828 plog(LLV_ERROR, LOCATION, remote,
851 /* copy remote address */
852 if (copy_ph1addresses(iph1, rmconf, remote, local) < 0)
864 a, saddr2str(iph1->remote));
881 plog(LLV_ERROR, LOCATION, remote,
966 iph2->dst = dupsaddr(iph1->remote);
1031 plog(LLV_ERROR, LOCATION, iph1->remote,
1050 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
1392 iph1->local, iph1->remote, lcconf->count_persend);
1492 dst = strdup(saddr2str(iph1->remote));
1540 dst = strdup(saddr2str(iph1->remote));
1714 plog(LLV_ERROR, LOCATION, iph2->ph1->remote,
1892 isakmp_newcookie(place, remote, local)
1894 struct sockaddr *remote;
1907 if (remote->sa_family != local->sa_family) {
1909 "address family mismatch, remote:%d local:%d\n",
1910 remote->sa_family, local->sa_family);
1913 switch (remote->sa_family) {
1916 sa1 = (caddr_t)&((struct sockaddr_in *)remote)->sin_addr;
1922 sa1 = (caddr_t)&((struct sockaddr_in6 *)remote)->sin6_addr;
1928 "invalid family: %d\n", remote->sa_family);
1944 port = ((struct sockaddr_in *)remote)->sin_port;
2276 copy_ph1addresses(iph1, rmconf, remote, local)
2279 struct sockaddr *remote, *local;
2283 /* address portion must be grabbed from real remote address "remote" */
2284 iph1->remote = dupsaddr(remote);
2285 if (iph1->remote == NULL) {
2291 * if remote has no port # (in case of initiator - from ACQUIRE msg)
2292 * - if remote.conf specifies port #, use that
2293 * - if remote.conf does not, use 500
2294 * if remote has port # (in case of responder - from recvfrom(2))
2295 * respect content of "remote".
2297 switch (iph1->remote->sa_family) {
2299 port = &((struct sockaddr_in *)iph1->remote)->sin_port;
2302 *port = ((struct sockaddr_in *)rmconf->remote)->sin_port;
2309 port = &((struct sockaddr_in6 *)iph1->remote)->sin6_port;
2312 *port = ((struct sockaddr_in6 *)rmconf->remote)->sin6_port;
2320 "invalid family: %d\n", iph1->remote->sa_family);
2325 iph1->local = getlocaladdr(iph1->remote);
2358 plog(LLV_ERROR, LOCATION, iph1->remote, "wrong state %u.\n",
2368 plog(LLV_ERROR, LOCATION, iph2->ph1->remote, "wrong state %u.\n",
2380 dst = strdup(saddr2str(iph1->remote));