version 1.2, 2010/01/27 22:22:16
|
version 1.14, 2010/08/06 15:33:03
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.10 |
RPL/2 (R) version 4.0.18 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 20
|
Line 20
|
*/ |
*/ |
|
|
|
|
#include "rpl.conv.h" |
#include "rpl-conv.h" |
|
|
|
|
/* |
/* |
Line 1914 instruction_target(struct_processus *s_e
|
Line 1914 instruction_target(struct_processus *s_e
|
.adresse_distante); |
.adresse_distante); |
|
|
if (((*((struct_socket *) (*s_objet_argument_1).objet)) |
if (((*((struct_socket *) (*s_objet_argument_1).objet)) |
.adresse_distante = malloc((strlen((unsigned char *) |
.adresse_distante = transliteration(s_etat_processus, |
(*s_objet_argument_2).objet) + 1) * sizeof(unsigned char))) |
(unsigned char *) (*s_objet_argument_2).objet, |
== NULL) |
d_locale, "UTF-8")) == NULL) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
liberation(s_etat_processus, s_objet_argument_1); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
|
return; |
return; |
} |
} |
|
|
strcpy((*((struct_socket *) (*s_objet_argument_1).objet)) |
|
.adresse_distante, (unsigned char *) |
|
(*s_objet_argument_2).objet); |
|
} |
} |
else if ((*s_objet_argument_2).type == LST) |
else if ((*s_objet_argument_2).type == LST) |
{ |
{ |
Line 2154 instruction_target(struct_processus *s_e
|
Line 2152 instruction_target(struct_processus *s_e
|
else if ((*((struct_socket *) (*s_objet_argument_1).objet)) |
else if ((*((struct_socket *) (*s_objet_argument_1).objet)) |
.domaine == PF_INET6) |
.domaine == PF_INET6) |
{ // Résolution du nom en IPv6 |
{ // Résolution du nom en IPv6 |
|
# ifdef IPV6 |
resolution_courante = resolution; |
resolution_courante = resolution; |
|
|
while(resolution_courante != NULL) |
while(resolution_courante != NULL) |
Line 2201 instruction_target(struct_processus *s_e
|
Line 2200 instruction_target(struct_processus *s_e
|
(*resolution_courante).ai_addr)).sin6_addr |
(*resolution_courante).ai_addr)).sin6_addr |
.s6_addr[i]); |
.s6_addr[i]); |
} |
} |
|
# else |
|
# endif |
} |
} |
else |
else |
{ |
{ |